]>
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 | ||
27 | void SetRawData(Int_t*); | |
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 | ||
35 | void ResetDigit() | |
36 | { | |
37 | fZ = -1; | |
38 | fX = -1; | |
39 | fAmplitude = -1; | |
40 | fTime = -1; | |
41 | fEnergy =-1; | |
42 | fGain = -1; | |
43 | fSamples = 55; | |
44 | fPreSamples =15; | |
45 | fTotalSamples =70; | |
46 | fDebugVar = -1; | |
47 | } | |
48 | ||
49 | void SetDebugVar(Int_t val) { fDebugVar = val; } | |
50 | ||
51 | Int_t GetX() { return fX; } | |
52 | Int_t GetZ() { return fZ; } | |
53 | Float_t GetAmplitude() { return fAmplitude; } | |
54 | Float_t GetTime() { return fTime; } | |
55 | Float_t GetEnergy() { return fEnergy; } | |
56 | Int_t GetGain() { return fGain; } | |
57 | ||
58 | Int_t* GetRawData() { return fData; } | |
59 | ||
60 | Int_t GetCrazyness() {return fCrazyness; } | |
61 | Float_t GetBaseline() { return fBaseline; } | |
62 | ||
63 | Int_t GetSamples() { return fSamples; } | |
64 | Int_t GetPreSamples() { return fPreSamples; } | |
65 | Int_t GetTotalSamples(){ return fNTotalSamples;} | |
66 | ||
67 | Int_t GetDebugVar() { return fDebugVar; } | |
68 | ||
69 | ||
70 | private: | |
71 | ||
72 | Int_t fX; | |
73 | Int_t fZ; | |
74 | Float_t fAmplitude; | |
75 | Float_t fTime; | |
76 | Float_t fEnergy; | |
77 | Int_t fGain; | |
78 | Int_t fSamples; | |
79 | Int_t fPreSamples; | |
80 | Int_t fTotalSamples; | |
81 | ||
82 | Int_t fDebugVar; //can be anything, not intended for use in analysis | |
83 | ||
84 | Int_t *fData; //[fTotalSamples] | |
85 | ||
86 | Int_t fCrazyness; | |
87 | Float_t fBaseline; | |
88 | ||
89 | ClassDef(AliHLTPHOSDigit, 1); | |
90 | ||
91 | }; | |
92 | ||
93 | #endif |