Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef ROOT_THcRawAdcHit
#define ROOT_THcRawAdcHit
#include "TObject.h"
class THcRawAdcHit : public TObject {
public:
THcRawAdcHit();
THcRawAdcHit& operator=(const THcRawAdcHit& right);
virtual ~THcRawAdcHit();
virtual void Clear(Option_t* opt="");
void SetData(Int_t data);
void SetSample(Int_t data);
void SetDataTimePedestalPeak(
Int_t data, Int_t time, Int_t pedestal, Int_t peak
);
Int_t GetRawData(UInt_t iPulse=0);
Int_t GetAdcTime(UInt_t iPulse=0);
Int_t GetAdcPedestal(UInt_t iPulse=0);
Int_t GetAdcPeak(UInt_t iPulse=0);
Int_t GetSample(UInt_t iSample);
UInt_t GetNPulses();
UInt_t GetNSamples();
Bool_t HasMulti();
protected:
static const UInt_t fMaxNPulses = 4;
static const UInt_t fMaxNSamples = 160;
Int_t fAdc[fMaxNPulses];
Int_t fAdcTime[fMaxNPulses];
Int_t fAdcPedestal[fMaxNPulses];
Int_t fAdcPeak[fMaxNPulses];
Int_t fAdcSample[fMaxNSamples];
Bool_t fHasMulti;
UInt_t fNPulses;
UInt_t fNSamples;
private:
ClassDef(THcRawAdcHit, 0)
};
#endif // ROOT_THcRawAdcHit