Newer
Older
// HMS calorimeter hit class for calibration.
Double_t ADCpos, ADCneg; // pedestal subtracted ADC signals.
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Double_t Epos, Eneg;
UInt_t BlkNumber;
public:
THcShHit();
THcShHit(Double_t adc_pos, Double_t adc_neg,
UInt_t blk_number);
~THcShHit();
void SetADCpos(Double_t sig) {ADCpos = sig;}
void SetADCneg(Double_t sig) {ADCneg = sig;}
void SetEpos(Double_t e) {Epos = e;}
void SetEneg(Double_t e) {Eneg = e;}
void SetBlkNumber(UInt_t n) {BlkNumber = n;}
Double_t GetADCpos() {return ADCpos;}
Double_t GetADCneg() {return ADCneg;}
Double_t GetEpos() {return Epos;}
Double_t GetEneg() {return Eneg;}
UInt_t GetBlkNumber() {return BlkNumber;}
void Print();
};
THcShHit::THcShHit() {
ADCpos = -99999.;
ADCneg = -99999.;
Epos = -99999.;
Eneg = -99999.;
BlkNumber = 99999;
};
THcShHit::THcShHit(Double_t adc_pos, Double_t adc_neg,
UInt_t blk_number) {
ADCpos = adc_pos;
ADCneg = adc_neg;
Epos = 0.;
Eneg = 0.;
BlkNumber = blk_number;
};
THcShHit::~THcShHit() { };
void THcShHit::Print() {
cout << "Hit: ADCpos =" << ADCpos << " ADCneg =" << ADCneg
<< " Epos =" << Epos << " Eneg =" << Eneg
<< " BlkNumber=" << BlkNumber << endl;
};
struct pmt_hit {Double_t signal; UInt_t channel;};