All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
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 &)
 
template<typename Stream >
Streamoperator<< (Stream &&o, POTSummary const &a)
 

Function Documentation

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

Definition at line 19 of file GeometryConfigurationInfo.cxx.

20 {
21 
22  if (!info.isDataValid())
23  return out << "Invalid geometry configuration information" << std::endl;
24 
25  out << "Geometry information version: " << info.dataVersion;
26 
28  {
29  out
30  << "\nDetector name: '" << info.detectorName << "'"
31  ;
32  } // version >= 1
33 
35  {
36  out
37  << "\nFull configuration:"
38  << "\n" << std::string(80, '-')
39  << "\n" << info.geometryServiceConfiguration
40  << "\n" << std::string(80, '-')
41  ;
42  }
43 
45  out
46  << "\n[this version of code can't fully decode further information]";
47  }
48 
49  return out;
50 } // sumdata::operator<< (GeometryConfigurationInfo const&)
unsigned int DataVersion_t
Type used for the version of data.
template<typename Stream >
Stream & sumdata::operator<< ( Stream &&  o,
POTSummary const &  a 
)

Definition at line 37 of file POTSummary.h.

38 {
39  o << "This sub run has " << a.totspills
40  << " total spills with an exposure of " << a.totpot << " POT"
41  <<"\n with cuts on beam quality, there are " << a.goodspills
42  << " good spills with an exposure of " << a.totgoodpot
43  << "\n";
44 
45  return o;
46 } // sumdata::operator<< (POTSummary)
process_name gaushit a