Diana Software
QiMuonChannel.hh
Go to the documentation of this file.
1 
8 #ifndef _QIMUONCHANNEL_HH_
9 #define _QIMUONCHANNEL_HH_
10 
11 #include "QDiana.hh"
12 #include "QObject.hh"
13 
14 
15 class QiMuonChannel : public Diana::QObject {
16 
17  public:
18 
22  virtual ~QiMuonChannel() {};
23 
25  const int& GetChannelId() const {return fChannelId;}
27  const unsigned short& GetTDC() const {return fTDC;}
29  const unsigned short& GetQDC() const {return fQDC;}
31  const bool& GetTDCIsValid() const {return fTDCIsValid;}
33  const bool& GetTDCIsSaturatedLow() const {return fTDCIsSaturatedLow;}
35  const bool& GetTDCIsSaturatedHigh() const {return fTDCIsSaturatedHigh;}
37  const bool& GetQDCIsSaturatedLow() const {return fQDCIsSaturatedLow;}
39  const bool& GetQDCIsSaturatedHigh() const {return fQDCIsSaturatedHigh;}
40 
42  void SetChannelId(const int& channelId) {fChannelId = channelId;}
44  void SetTDC(const unsigned short& tDC) {fTDC = tDC;}
46  void SetQDC(const unsigned short& qDC) {fQDC = qDC;}
48  void SetTDCIsValid(const bool& isValid) {fTDCIsValid = isValid;}
50  void SetTDCIsSaturatedLow(const bool& isSaturatedLow) {fTDCIsSaturatedLow = isSaturatedLow;}
52  void SetTDCIsSaturatedHigh(const bool& isSaturatedHigh) {fTDCIsSaturatedHigh = isSaturatedHigh;}
54  void SetQDCIsSaturatedLow(const bool& isSaturatedLow) {fQDCIsSaturatedLow = isSaturatedLow;}
56  void SetQDCIsSaturatedHigh(const bool& isSaturatedHigh) {fQDCIsSaturatedHigh = isSaturatedHigh;}
57 
59  void Clear();
60 
61  private:
62 
66  unsigned short fTDC;
68  unsigned short fQDC;
79 
80 
82 
83 };
84 
85 
86 
87 #endif
Cuoricino Muon Veto data.
bool fTDCIsValid
TDC validity flag.
QObjectDef(QiMuonChannel, 1)
void SetQDC(const unsigned short &qDC)
Set QDC.
const bool & GetTDCIsSaturatedHigh() const
Get TDCIsSaturatedHigh.
void SetTDC(const unsigned short &tDC)
Set TDC.
void SetQDCIsSaturatedHigh(const bool &isSaturatedHigh)
Set QDCIsSaturatedHigh.
const bool & GetTDCIsValid() const
Get TDCIsValid.
bool fQDCIsSaturatedHigh
QDC high saturation.
unsigned short fTDC
Time relative to the gate 0 - 4096.
bool fQDCIsSaturatedLow
QDC low saturation.
void SetChannelId(const int &channelId)
Set ChannelId.
const bool & GetTDCIsSaturatedLow() const
Get TDCIsSaturatedLow.
const unsigned short & GetTDC() const
Get TDC.
unsigned short fQDC
Integrated charge value 0 - 4096.
const unsigned short & GetQDC() const
Get QDC.
void SetTDCIsSaturatedLow(const bool &isSaturatedLow)
Set TDCIsSaturatedLow.
void SetTDCIsSaturatedHigh(const bool &isSaturatedHigh)
Set TSCIsSaturatedHigh.
void SetQDCIsSaturatedLow(const bool &isSaturatedLow)
Set QDC IsSaturatedLow.
bool fTDCIsSaturatedHigh
TDC high saturation.
const int & GetChannelId() const
Get ChannelId.
const bool & GetQDCIsSaturatedLow() const
Get QDCIsSaturatedLow.
QiMuonChannel()
default constructor
virtual ~QiMuonChannel()
default destructor
void SetTDCIsValid(const bool &isValid)
Set IsValid.
int fChannelId
Scintillator channel.
bool fTDCIsSaturatedLow
TDC low saturation.
const bool & GetQDCIsSaturatedHigh() const
Get QDCIsSaturatedHigh.