Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
JMuonGandalfParameters_t.cc
Go to the documentation of this file.
1#include <istream>
2#include <ostream>
3
8
9/**
10 * Read fit parameters from input.
11 *
12 * \param in input stream
13 * \param parameters fit parameters
14 * \return input stream
15 */
16std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JMuonGandalfParameters_t& parameters)
17{
18 using namespace JPP;
19
20 JStringStream is(in);
21
22 JRootReader(is, JEquationParameters(), JRootDictionary::getInstance()).get(parameters);
23
24 return in;
25}
26
27
28/**
29 * Write fit parameters to output.
30 *
31 * \param out output stream
32 * \param parameters fit parameters
33 * \return output stream
34 */
35std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JMuonGandalfParameters_t& parameters)
36{
37 using namespace JPP;
38
39 JRootWriter(out, JEquationParameters(), JRootDictionary::getInstance()).put(parameters);
40
41 return out;
42}
std::ostream & operator<<(std::ostream &out, const JRECONSTRUCTION::JMuonGandalfParameters_t &parameters)
Write fit parameters to output.
std::istream & operator>>(std::istream &in, JRECONSTRUCTION::JMuonGandalfParameters_t &parameters)
Read fit parameters from input.
ASCII I/O of objects with ROOT dictionary.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Wrapper class around STL stringstream class to facilitate optional loading of data from file.
Implementation for ASCII input of objects with ROOT dictionary.
JRootReader & get(T &object)
Read object according equation format.
Implementation for ASCII output of objects with ROOT dictionary.
JRootWriter & put(const T &object)
Write object according equation format.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).