Jpp 21.0.1
the software that should make you happy
Loading...
Searching...
No Matches
JFitParameters.cc
Go to the documentation of this file.
5
6
7/**
8 * Read parameters from input stream.
9 *
10 * \param in input stream
11 * \param parameters parameters
12 * \return input stream
13 */
14std::istream& operator>>(std::istream& in, JACOUSTICS::JFitParameters& parameters)
15{
16 using namespace JPP;
17
18 JStringStream is(in);
19
20 JRootReader(is, JEquationParameters(), JRootDictionary::getInstance()).get(parameters);
21
22 return in;
23}
24
25
26/**
27 * Write parameters to output stream.
28 *
29 * \param out output stream
30 * \param parameters parameters
31 * \return output stream
32 */
33std::ostream& operator<<(std::ostream& out, const JACOUSTICS::JFitParameters& parameters)
34{
35 using namespace JPP;
36
37 const size_t n = out.precision(6);
38
39 JRootWriter(out, JEquationParameters(), JRootDictionary::getInstance()).put(parameters);
40
41 out.precision(n);
42
43 return out;
44}
std::istream & operator>>(std::istream &in, JACOUSTICS::JFitParameters &parameters)
Read parameters from input stream.
std::ostream & operator<<(std::ostream &out, const JACOUSTICS::JFitParameters &parameters)
Write parameters to output stream.
Acoustic fit parameters.
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).