GRUTinizer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TJanusHit.h
Go to the documentation of this file.
1 #ifndef _TJANUSDETECTORHIT_H_
2 #define _TJANUSDETECTORHIT_H_
3 
4 #include "TDetectorHit.h"
5 
6 class TJanusHit : public TDetectorHit {
7 public:
8  TJanusHit() { }
9 
10  void Clear(Option_t* opt = "");
11  void Copy(TObject& obj) const;
12 
13  void SetAnalogChannel(int chan) { fChannel = chan; }
14  void SetOverflowBit(bool bit) { fOverflowBit = bit; }
15  void SetUnderflowBit(bool bit) { fUnderflowBit = bit; }
16  void SetEntryType(char type) { fEntryType = type; }
17  void SetTimestamp(long ts) { fTimestamp = ts; }
18  void SetCharge(int chg) { fCharge = chg; }
19 
20  virtual Int_t Charge() const { return fCharge; }
21  int GetAnalogChannel() const { return fChannel; }
22  bool GetOverflowBit() const { return fOverflowBit; }
23  bool GetUnderflowBit() const { return fUnderflowBit;}
24  char GetEntryType() const { return fEntryType; }
25  long GetTimestamp() const { return fTimestamp; }
26 
27  bool IsValid() const { return fEntryType == 0; } //CAEN_ADC::EntryType::Event
28 
29 private:
30  long fTimestamp;
31  short fEntryType;
32  int fChannel;
33  int fCharge;
36 
38 };
39 
40 #endif /* _TJANUSDETECTORHIT_H_ */