Classes | Functions
gar::sumdata Namespace Reference

Classes

struct  GeometryConfigurationInfo
 Description of the current configuration of detector geometry. More...
 
class  POTSummary
 
class  RunData
 

Functions

std::ostream & operator<< (std::ostream &, GeometryConfigurationInfo const &)
 
std::ostream & operator<< (std::ostream &o, POTSummary const &a)
 

Function Documentation

std::ostream & gar::sumdata::operator<< ( std::ostream &  out,
GeometryConfigurationInfo const &  info 
)

Definition at line 6 of file GeometryConfigurationInfo.cxx.

7 {
8  if (!info.isDataValid())
9  return out << "Invalid geometry configuration information" << std::endl;
10 
11  out << "Geometry information version: " << info.dataVersion;
12 
14  out << "\nDetector name: '" << info.detectorName << "'";
15 
17  {
18  out << "\nFull configuration:"
19  << "\n" << std::string(80, '-')
20  << "\n" << info.geometryServiceConfiguration
21  << "\n" << std::string(80, '-');
22  }
23 
25  out << "\n[this version of code can't fully decode further information]";
26  }
27 
28  return out;
29 } // operator<< (GeometryConfigurationInfo const&)
std::string string
Definition: nybbler.cc:12
unsigned int DataVersion_t
Type used for the version of data.
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
std::ostream& gar::sumdata::operator<< ( std::ostream &  o,
POTSummary const &  a 
)

Definition at line 25 of file POTSummary.cxx.

26  {
27  o << "This sub run has " << a.totspills
28  << " total spills with an exposure of "
29  << a.totpot << " POT" <<std::endl
30  <<" with cuts on beam quality, there are " << a.goodspills
31  <<" good spills with an exposure of " << a.totgoodpot
32  <<std::endl;
33 
34  return o;
35  }
const double a
QTextStream & endl(QTextStream &s)