PMTQuality.h
Go to the documentation of this file.
1 #ifndef _sevt_PMTQuality_h_
2 #define _sevt_PMTQuality_h_
3 
4 #include <utl/ShadowPtr_fwd.h>
5 
6 
7 namespace sevt {
8 
9  class PMT;
10 
11 
25  class PMTQuality {
26  public:
27  // this should go away with FatBastard
28 
29  bool IsTubeOk() const { return fIsTubeOk; }
30 
31  bool HasAnode() const { return fHasAnode; }
32 
33  bool IsRaining() const { return fIsRaining; }
34 
35  short GetVersion() const { return fVersion; }
36 
37  void SetIsTubeOk(const bool ok) { fIsTubeOk = ok; }
38  void SetHasAnode(const bool ok) { fHasAnode = ok; }
39  void SetIsRaining(const bool ok) { fIsRaining = ok; }
40  void SetVersion(const short v) { fVersion = v; }
41 
42  private:
43  PMTQuality() = default;
44  ~PMTQuality() = default;
45 
46  short fVersion = 0;
47  bool fIsTubeOk = true;
48  bool fHasAnode = true;
49  bool fIsRaining = false;
50 
51  friend class PMT;
52  friend class utl::ShadowPtr<PMTQuality>;
53  };
54 
55 }
56 
57 
58 #endif
pointer with built-in initialization, deletion, deep copying
Definition: ShadowPtr.h:163
class to hold data at PMT level
Definition: SEvent/PMT.h:28
short GetVersion() const
Definition: PMTQuality.h:35
bool ok(bool okay)
Definition: testlib.cc:89
void SetIsRaining(const bool ok)
Definition: PMTQuality.h:39
void SetHasAnode(const bool ok)
Definition: PMTQuality.h:38
~PMTQuality()=default
void SetIsTubeOk(const bool ok)
Definition: PMTQuality.h:37
Online Calibration data.
Definition: PMTQuality.h:25
PMTQuality()=default
bool IsTubeOk() const
Definition: PMTQuality.h:29
bool HasAnode() const
Definition: PMTQuality.h:31
void SetVersion(const short v)
Definition: PMTQuality.h:40
bool IsRaining() const
Definition: PMTQuality.h:33

, generated on Tue Sep 26 2023.