StationQualityCut.h
Go to the documentation of this file.
1 #ifndef _sdet_PMTQualityCut_h_
2 #define _sdet_PMTQualityCut_h_
3 
4 
5 namespace sdet {
6 
16  public:
18 
19  PMTQualityCut(const int stationId, const int mask)
20  : fStationId(stationId), fMask(mask) { }
21 
22  void SetStationId(const int stationId)
23  { fStationId = stationId; }
24 
25  void SetMask(const int mask)
26  { fMask = mask; }
27 
28  bool IsPMTDisabled(const int pmt) const
29  { return fMask & (1 << (pmt-1)); }
30 
31  bool IsLGDisabled(const int pmt) const
32  { return fMask & (1 << (pmt-1 + 3)); }
33 
34  private:
35  int fStationId = 0;
36  int fMask = 0;
37  };
38 
39 }
40 
41 
42 #endif
void SetMask(const int mask)
PMTQualityCut(const int stationId, const int mask)
bool IsPMTDisabled(const int pmt) const
void SetStationId(const int stationId)
bool IsLGDisabled(const int pmt) const

, generated on Tue Sep 26 2023.