POTSummary.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file POTSummary.h
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 #ifndef POTSUM_H
10 #define POTSUM_H
11 
12 #include <iostream>
13 
14 namespace gar{
15  namespace sumdata {
16 
17  class POTSummary {
18  public:
19 
20  POTSummary() = default;
21  void aggregate(POTSummary const& other);
22 
23  public:
24  double totpot;
25  double totgoodpot;
26  unsigned int totspills;
27  unsigned int goodspills;
28 
29 #ifndef __GCCXML__
30 
31  friend std::ostream& operator<< (std::ostream& o, POTSummary const& a);
32 
33  public:
34  double const& TotalPOT() const;
35  unsigned int const& TotalSpills() const;
36 #endif
37 
38  };
39 
40  } // namespace sumdata
41 } // namespace gar
42 
43 #ifndef __GCCXML__
44 
45 inline double const& gar::sumdata::POTSummary::TotalPOT() const { return totpot; }
46 inline unsigned int const& gar::sumdata::POTSummary::TotalSpills() const { return totspills; }
47 
48 #endif
49 
50 #endif //POTSUM_H
51 
52 
53 
54 
55 
56 
unsigned int totspills
Definition: POTSummary.h:26
void aggregate(POTSummary const &other)
Definition: POTSummary.cxx:17
double const & TotalPOT() const
Definition: POTSummary.h:45
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.
unsigned int const & TotalSpills() const
Definition: POTSummary.h:46