LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 >
Stream & operator<< (Stream &&o, POTSummary const &a)
 

Function Documentation

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

Definition at line 17 of file GeometryConfigurationInfo.cxx.

References sumdata::GeometryConfigurationInfo::dataVersion, and sumdata::GeometryConfigurationInfo::isDataValid().

18 {
19 
20  if (!info.isDataValid()) return out << "Invalid geometry configuration information" << std::endl;
21 
22  out << "Geometry information version: " << info.dataVersion;
23 
24  if (info.dataVersion >= sumdata::GeometryConfigurationInfo::DataVersion_t{1}) {
25  out << "\nDetector name: '" << info.detectorName << "'";
26  } // version >= 1
27 
28  if (info.dataVersion >= sumdata::GeometryConfigurationInfo::DataVersion_t{2}) {
29  out << "\nFull configuration:"
30  << "\n"
31  << std::string(80, '-') << "\n"
32  << info.geometryServiceConfiguration << "\n"
33  << std::string(80, '-');
34  }
35 
36  if (info.dataVersion > sumdata::GeometryConfigurationInfo::DataVersion_t{2}) {
37  out << "\n[this version of code can't fully decode further information]";
38  }
39 
40  return out;
41 } // 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 33 of file POTSummary.h.

References sumdata::POTSummary::goodspills, sumdata::POTSummary::totgoodpot, sumdata::POTSummary::totpot, and sumdata::POTSummary::totspills.

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