Hall C ROOT/C++ Analyzer (hcana)
Loading...
Searching...
No Matches
THcRawTdcHit.h
Go to the documentation of this file.
1#ifndef ROOT_THcRawTdcHit
2#define ROOT_THcRawTdcHit
3
4#include "TObject.h"
5
6
7class THcRawTdcHit : public TObject {
8 public:
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 Int_t
unsigned int UInt_t
uint32_t time
bool Bool_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Class representing a single raw TDC hit.
Definition THcRawTdcHit.h:7
Int_t GetRefTime() const
Gets reference time. In channels.
Int_t fRefDiffTime
Int_t GetTimeRaw(UInt_t iHit=0) const
Gets raw TDC time. In channels.
static const UInt_t fMaxNHits
void SetRefDiffTime(Int_t refDiffTime)
THcRawTdcHit()
Constructor.
void SetRefTime(Int_t refTime)
Sets reference time. In channels.
THcRawTdcHit & operator=(const THcRawTdcHit &right)
Assignment operator.
Int_t GetTime(UInt_t iHit=0) const
Gets TDC time. In channels.
virtual ~THcRawTdcHit()
Destructor.
Double_t fChannelToTimeFactor
UInt_t GetNHits() const
Gets the number of set hits.
Int_t fTime[fMaxNHits]
Bool_t HasRefTime() const
Queries whether reference time has been set.
void SetTime(Int_t time)
Sets raw TDC time from the modules. In channels.
Int_t GetRefDiffTime() const
Bool_t fHasRefTime
virtual void Clear(Option_t *opt="")
Clears variables before next event.