]>
Commit | Line | Data |
---|---|---|
209a4703 | 1 | //insert copyright |
2 | ||
3 | #ifndef ALIHLTPHOSDIGIT_H | |
4 | #define ALIHLTPHOSDIGIT_H | |
5 | ||
6 | #include "TObject.h" | |
7 | //#include "AliHLTPHOSAltroConfig.h" | |
8 | #include "AliHLTPHOSBase.h" | |
9 | ||
10 | //class AliHLTPHOSDigit : public TObject, public AliHLTPHOSAltroConfig | |
11 | class AliHLTPHOSDigit : public TObject, public AliHLTPHOSBase | |
12 | { | |
13 | ||
14 | public: | |
15 | AliHLTPHOSDigit(); | |
16 | virtual ~AliHLTPHOSDigit(); | |
17 | ||
18 | void SetX(Int_t x) { fX = x; } | |
19 | void SetZ(Int_t z) { fZ = z; } | |
20 | ||
21 | ||
22 | void SetAmplitude(Float_t amp) { fAmplitude = amp; } | |
23 | void SetTime(Float_t time) { fTime = time; } | |
24 | void SetEnergy(Float_t energy) { fEnergy = energy; } | |
25 | void SetGain(Int_t gain) { fGain = gain; } | |
26 | ||
ab38011b | 27 | void SetRawData(Int_t* rawData); |
209a4703 | 28 | |
29 | void SetCrazyness(Int_t crazyness) { fCrazyness = crazyness; } | |
30 | void SetBaseline(Float_t baseline) { fBaseline = baseline; } | |
31 | ||
32 | void SetSamples(Int_t samples) { fSamples = samples; } | |
33 | void SetPreSamples(Int_t presamples) { fPreSamples = presamples; } | |
34 | ||
ab38011b | 35 | void ResetDigit(); |
36 | ||
209a4703 | 37 | void SetDebugVar(Int_t val) { fDebugVar = val; } |
38 | ||
39 | Int_t GetX() { return fX; } | |
40 | Int_t GetZ() { return fZ; } | |
41 | Float_t GetAmplitude() { return fAmplitude; } | |
42 | Float_t GetTime() { return fTime; } | |
43 | Float_t GetEnergy() { return fEnergy; } | |
44 | Int_t GetGain() { return fGain; } | |
45 | ||
46 | Int_t* GetRawData() { return fData; } | |
47 | ||
48 | Int_t GetCrazyness() {return fCrazyness; } | |
49 | Float_t GetBaseline() { return fBaseline; } | |
50 | ||
51 | Int_t GetSamples() { return fSamples; } | |
52 | Int_t GetPreSamples() { return fPreSamples; } | |
53 | Int_t GetTotalSamples(){ return fNTotalSamples;} | |
54 | ||
55 | Int_t GetDebugVar() { return fDebugVar; } | |
56 | ||
57 | ||
58 | private: | |
59 | ||
ab38011b | 60 | Int_t fX; //comment |
61 | Int_t fZ; //comment | |
62 | Float_t fAmplitude; //comment | |
63 | Float_t fTime; //comment | |
64 | Float_t fEnergy; //comment | |
65 | Int_t fGain; //comment | |
66 | Int_t fSamples; //comment | |
67 | Int_t fPreSamples; //comment | |
68 | Int_t fTotalSamples; //comment | |
209a4703 | 69 | |
70 | Int_t fDebugVar; //can be anything, not intended for use in analysis | |
71 | ||
72 | Int_t *fData; //[fTotalSamples] | |
73 | ||
ab38011b | 74 | Int_t fCrazyness; //comment |
75 | Float_t fBaseline; //comment | |
209a4703 | 76 | |
77 | ClassDef(AliHLTPHOSDigit, 1); | |
78 | ||
79 | }; | |
80 | ||
81 | #endif |