Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JFitParameters.cc File Reference

Go to the source code of this file.

Functions

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.
 

Function Documentation

◆ operator>>()

std::istream & operator>> ( std::istream & in,
JACOUSTICS::JFitParameters & parameters )

Read parameters from input stream.

Parameters
ininput stream
parametersparameters
Returns
input stream

Definition at line 15 of file JFitParameters.cc.

16{
17 using namespace JPP;
18
19 JStringStream is(in);
20
21 if (getFileStatus(is.str().c_str())) {
22 is.load();
23 }
24
25 JRootReader(is, JEquationParameters(), JRootDictionary::getInstance()).get(parameters);
26
27 return in;
28}
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.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).

◆ operator<<()

std::ostream & operator<< ( std::ostream & out,
const JACOUSTICS::JFitParameters & parameters )

Write parameters to output stream.

Parameters
outoutput stream
parametersparameters
Returns
output stream

Definition at line 38 of file JFitParameters.cc.

39{
40 using namespace JPP;
41
42 const size_t n = out.precision(6);
43
44 JRootWriter(out, JEquationParameters(), JRootDictionary::getInstance()).put(parameters);
45
46 out.precision(n);
47
48 return out;
49}
Implementation for ASCII output of objects with ROOT dictionary.
JRootWriter & put(const T &object)
Write object according equation format.
const int n
Definition JPolint.hh:791