LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
POTSummary.h
Go to the documentation of this file.
1 #ifndef LARCOREOBJ_SUMMARYDATA_POTSUMMARY_H
9 #define LARCOREOBJ_SUMMARYDATA_POTSUMMARY_H
10 
11 namespace sumdata {
12 
13  class POTSummary {
14  public:
15  double totpot = 0.0;
16  double totgoodpot = 0.0;
17 
18  int totspills = 0;
19  int goodspills = 0;
20 
21  POTSummary() = default;
22 
23  void aggregate(POTSummary const& other);
24  };
25 
26  template <typename Stream>
27  Stream& operator<<(Stream&& o, POTSummary const& a);
28 
29 } // namespace sumdata
30 
31 //----------------------------------------------------------------------------
32 template <typename Stream>
33 Stream& sumdata::operator<<(Stream&& o, POTSummary const& a)
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)
42 
43 #endif //LARCOREOBJ_SUMMARYDATA_POTSUMMARY_H
std::ostream & operator<<(std::ostream &, GeometryConfigurationInfo const &)
void aggregate(POTSummary const &other)
Definition: POTSummary.cxx:14