POTSummary.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file POTSummary.cxx
3 ///
4 /// Definition of object to store pot related information
5 ///
6 /// \version $Id: RunData.h,v 1.1.1.1 2011/03/03 00:19:49 brebel Exp $
7 /// \author brebel@fnal.gov
8 ////////////////////////////////////////////////////////////////////////
9 
10 
12 
13 namespace gar {
14  namespace sumdata{
15 
16  //----------------------------------------------------------------------------
18  totpot += other.totpot ;
19  totgoodpot += other.totgoodpot;
20  totspills += other.totspills ;
21  goodspills += other.goodspills;
22  } // POTSummary::aggregate()
23 
24  //----------------------------------------------------------------------------
25  std::ostream& operator<< (std::ostream &o, POTSummary const& a)
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  }
36 
37  } // sumdata
38 }// end namespace
unsigned int totspills
Definition: POTSummary.h:26
void aggregate(POTSummary const &other)
Definition: POTSummary.cxx:17
const double a
friend std::ostream & operator<<(std::ostream &o, POTSummary const &a)
Definition: POTSummary.cxx:25
unsigned int goodspills
Definition: POTSummary.h:27
General GArSoft Utilities.
QTextStream & endl(QTextStream &s)