StationCalibData.h
Go to the documentation of this file.
1 #ifndef _sevt_StationCalibData_h_
2 #define _sevt_StationCalibData_h_
3 
4 #include <vector>
5 #include <utl/ShadowPtr_fwd.h>
6 
7 
8 namespace sevt {
9 
22 
23  public:
25  int GetVersion() const { return fVersion; }
27  unsigned int GetStartSecond() const { return fStartSecond; }
29  unsigned int GetEndSecond() const { return fEndSecond; }
31  unsigned int GetNT1() const { return fNT1; }
33  unsigned int GetNT2() const { return fNT2; }
35  unsigned int GetNTot() const { return fNTot; }
37  unsigned int GetNTubesOk() const { return fNTubesOk; }
39  const std::vector<int>& GetMuonChargeHisto() const
40  { return fMuonChargeHisto; }
43  { return fMuonChargeHistoOffset; }
44 
46  void SetVersion(const int version) { fVersion = version; }
48  void SetStartSecond(const unsigned int ss) { fStartSecond = ss; }
50  void SetEndSecond(const unsigned int es) { fEndSecond = es; }
52  void SetNT1(const unsigned int nt1) { fNT1 = nt1; }
54  void SetNT2(const unsigned int nt2) { fNT2 = nt2; }
56  void SetNTot(const unsigned int ntot) { fNTot = ntot; }
58  void SetNTubesOk(const unsigned int nTubesOk) { fNTubesOk = nTubesOk; }
60  void SetMuonChargeHisto(const std::vector<int>& mch, const int offset)
61  { fMuonChargeHisto = mch; fMuonChargeHistoOffset = offset; }
62 
63  private:
64  StationCalibData() = default;
65  ~StationCalibData() = default;
66 
67  int fVersion = 0;
68  unsigned int fStartSecond = 0;
69  unsigned int fEndSecond = 0;
70  unsigned int fNT1 = 0;
71  unsigned int fNT2 = 0;
72  unsigned int fNTot = 0;
73  unsigned int fNTubesOk = 0;
74  std::vector<int> fMuonChargeHisto;
76 
77  friend class Station;
79 
80  };
81 
82 }
83 
84 
85 #endif
pointer with built-in initialization, deletion, deep copying
Definition: ShadowPtr.h:163
void SetNTot(const unsigned int ntot)
total number of triggers recevied during calibration
unsigned int GetNTubesOk() const
get numbers of tubes with calibration
const std::vector< int > & GetMuonChargeHisto() const
histogram of the sum of muon charges (not really used anywhere)
unsigned int GetNT1() const
number of T1 received during calibration
std::vector< int > fMuonChargeHisto
unsigned int GetNT2() const
number of T2 received during calibration
void SetNTubesOk(const unsigned int nTubesOk)
get numbers of tubes with calibration
class to hold data at Station level
int GetMuonChargeHistoOffset() const
x axis offset of the combined charge histogram
void SetVersion(const int version)
version of the onboard calibration
Station Calibration data
unsigned int GetNTot() const
total number of triggers recevied during calibration
void SetMuonChargeHisto(const std::vector< int > &mch, const int offset)
histogram of the sum of muon charges
void SetNT1(const unsigned int nt1)
number of T1 received during calibration
unsigned int GetStartSecond() const
GPS second of start of calibration.
unsigned int GetEndSecond() const
GPS second of end of calibration.
void SetNT2(const unsigned int nt2)
number of T2 received during calibration
void SetStartSecond(const unsigned int ss)
GPS second of start of calibration.
int GetVersion() const
version of the onboard calibration
void SetEndSecond(const unsigned int es)
GPS second of end of calibration.

, generated on Tue Sep 26 2023.