Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
Classes | Namespaces | Functions
JMuonSimplexParameters_t.hh File Reference
#include <TROOT.h>
#include <TObject.h>

Go to the source code of this file.

Classes

struct  JRECONSTRUCTION::JMuonSimplexParameters_t
 Data structure for fit parameters. More...
 

Namespaces

 JRECONSTRUCTION
 Model fits to data.
 
 JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

std::istream & operator>> (std::istream &in, JRECONSTRUCTION::JMuonSimplexParameters_t &parameters)
 Read fit parameters from input. More...
 
std::ostream & operator<< (std::ostream &out, const JRECONSTRUCTION::JMuonSimplexParameters_t &parameters)
 Write fit parameters to output. More...
 

Function Documentation

◆ operator>>()

std::istream& operator>> ( std::istream &  in,
JRECONSTRUCTION::JMuonSimplexParameters_t parameters 
)

Read fit parameters from input.

Parameters
ininput stream
parametersfit parameters
Returns
input stream

Definition at line 17 of file JMuonSimplexParameters_t.cc.

18 {
19  using namespace std;
20  using namespace JPP;
21 
22  JStringStream is(in);
23 
24  if (getFileStatus(is.str().c_str())) {
25  is.load();
26  }
27 
29 
30  return in;
31 }
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.
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static JStat getFileStatus
Function object for file status.
Definition: JStat.hh:173
Definition: JSTDTypes.hh:14

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const JRECONSTRUCTION::JMuonSimplexParameters_t parameters 
)

Write fit parameters to output.

Parameters
outoutput stream
parametersfit parameters
Returns
output stream

Definition at line 41 of file JMuonSimplexParameters_t.cc.

42 {
43  using namespace JPP;
44 
46 
47  return out;
48 }
Implementation for ASCII output of objects with ROOT dictionary.
JRootWriter & put(const T &object)
Write object according equation format.
static data_type & getInstance()
Get unique instance of template class.
Definition: JSingleton.hh:27