Hall C ROOT/C++ Analyzer (hcana)
THcRawTdcHit.h
Go to the documentation of this file.
1 #ifndef ROOT_THcRawTdcHit
2 #define ROOT_THcRawTdcHit
3 
4 #include "TObject.h"
5 
6 
7 class THcRawTdcHit : public TObject {
8  public:
9  THcRawTdcHit();
10  THcRawTdcHit& operator=(const THcRawTdcHit& right);
11  virtual ~THcRawTdcHit();
12 
13  virtual void Clear(Option_t* opt="");
14 
15  void SetTime(Int_t time);
16  void SetRefTime(Int_t refTime);
17  void SetRefDiffTime(Int_t refDiffTime);
18 
19  Int_t GetTimeRaw(UInt_t iHit=0) const;
20  Int_t GetTime(UInt_t iHit=0) const;
21  Int_t GetRefTime() const;
22  Int_t GetRefDiffTime() const;
23 
24  Bool_t HasRefTime() const;
25 
26  UInt_t GetNHits() const;
27 
28  protected:
29  static const UInt_t fMaxNHits = 128;
30 
32 
36 
39 
40  private:
42 };
43 
44 
45 #endif // ROOT_THcRawTdcHit
Int_t GetTimeRaw(UInt_t iHit=0) const
Gets raw TDC time. In channels.
Double_t fChannelToTimeFactor
Definition: THcRawTdcHit.h:31
const char Option_t
Int_t fRefTime
Definition: THcRawTdcHit.h:34
Int_t fRefDiffTime
Definition: THcRawTdcHit.h:35
UInt_t fNHits
Definition: THcRawTdcHit.h:38
int Int_t
bool Bool_t
UInt_t GetNHits() const
Gets the number of set hits.
Class representing a single raw TDC hit.
Definition: THcRawTdcHit.h:7
void SetTime(Int_t time)
Sets raw TDC time from the modules. In channels.
THcRawTdcHit()
Constructor.
#define ClassDef(name, id)
virtual void Clear(Option_t *opt="")
Clears variables before next event.
void SetRefTime(Int_t refTime)
Sets reference time. In channels.
THcRawTdcHit & operator=(const THcRawTdcHit &right)
Assignment operator.
Int_t GetRefDiffTime() const
Bool_t HasRefTime() const
Queries whether reference time has been set.
unsigned int UInt_t
Bool_t fHasRefTime
Definition: THcRawTdcHit.h:37
double Double_t
Int_t GetTime(UInt_t iHit=0) const
Gets TDC time. In channels.
Int_t GetRefTime() const
Gets reference time. In channels.
void SetRefDiffTime(Int_t refDiffTime)
virtual ~THcRawTdcHit()
Destructor.
static const UInt_t fMaxNHits
Definition: THcRawTdcHit.h:29
Int_t fTime[fMaxNHits]
Definition: THcRawTdcHit.h:33