POTSum.h
Go to the documentation of this file.
1 /////////////////////////////////////////////////////////////////
2 /// \brief Lightweight module that calculates total POT
3 /// \author vahle@wm.edu
4 /// \date
5 /////////////////////////////////////////////////////////////////
6 #ifndef POTSUM_H
7 #define POTSUM_H
8
9 #include <iostream>
10
11 namespace sumdata {
12
13  class POTSum {
14  public:
15  POTSum();
16  ~POTSum();
17
18 #ifndef __GCCXML__
19  POTSum(double totPOT,
20  double totgoodPOT,
21  int totSpills,
22  int goodSpills);
23 #endif
24
25  void Print(std::ostream &stream);
26
27  double totpot; ///< normalized by 10^12 POT
28  double totgoodpot; ///< normalized by 10^12 POT
29
30  int totspills;
32
33  void operator +=(sumdata::POTSum const& b);
34  };
35
36 }
37
39 {
40  this->totpot += b.totpot;
41  this->totgoodpot += b.totgoodpot;
42  this->totspills += b.totspills;
43  this->goodspills += b.goodspills;
44
45  return;
46 }
47
48 #endif //POTSUM_H
49 /////////////////////////////////////////////////////////////////////////////
50
51
52
53
void Print(std::ostream &stream)
Definition: POTSum.cxx:37
void operator+=(sumdata::POTSum const &b)
Definition: POTSum.h:38
int goodspills
Definition: POTSum.h:31
const hit & b
Definition: hits.cxx:21
TODO.
int totspills
Definition: POTSum.h:30
double totgoodpot
normalized by 10^12 POT
Definition: POTSum.h:28
double totpot
normalized by 10^12 POT
Definition: POTSum.h:27