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

Acoustic fit parameters. More...

#include <istream>
#include <ostream>
#include <iomanip>
#include <limits>
#include <TROOT.h>
#include <TObject.h>
#include "JFit/JMEstimator.hh"

Go to the source code of this file.

Classes

struct  JACOUSTICS::JFitParameters
 Fit parameters. More...
 

Namespaces

namespace  JACOUSTICS
 Auxiliary classes and methods for acoustic position calibration.
 
namespace  JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

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.
 

Detailed Description

Acoustic fit parameters.

Author
mdejong

Definition in file JFitParameters.hh.

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