]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIT0RECPOINT_H | |
2 | #define ALIT0RECPOINT_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | #include <TObject.h> | |
8 | ||
9 | ||
10 | //___________________________________________ | |
11 | class AliT0RecPoint: public TObject { | |
12 | //////////////////////////////////////////////////////////////////////// | |
13 | public: | |
14 | AliT0RecPoint(); | |
15 | AliT0RecPoint(const AliT0RecPoint &o); | |
16 | AliT0RecPoint& operator= (const AliT0RecPoint &) { return *this;} | |
17 | virtual ~AliT0RecPoint() {} | |
18 | ||
19 | Double32_t GetMeanTime() const {return fTimeAverage;} | |
20 | Int_t GetOnlineMean() const {return fTimeOnlineMean;} | |
21 | Double32_t GetBestTimeA() const {return fTimeBestA ;} | |
22 | Double32_t GetBestTimeC() const {return fTimeBestC ;} | |
23 | Float_t GetMultC() const {return fMultC;} | |
24 | Double32_t Get1stTimeA() const {return fTime1stA ;} | |
25 | Double32_t Get1stTimeC() const {return fTime1stC ;} | |
26 | Float_t GetMultA() const {return fMultA;} | |
27 | Double32_t GetVertex() const {return fVertexPosition;} | |
28 | ||
29 | ||
30 | void SetMeanTime(Double32_t time) {fTimeAverage=time;} | |
31 | void SetOnlineMean(Int_t time) {fTimeOnlineMean=time;} | |
32 | void SetTimeBestA( Double32_t time) {fTimeBestA = time;} | |
33 | void SetTimeBestC( Double32_t time) {fTimeBestC = time;} | |
34 | void SetTime1stA( Double32_t time) {fTime1stA = time;} | |
35 | void SetTime1stC( Double32_t time) {fTime1stC = time;} | |
36 | void SetVertex( Double32_t vertex) {fVertexPosition= vertex;} | |
37 | void SetMultC(Float_t mult) {fMultC = mult;} | |
38 | void SetMultA(Float_t mult) {fMultA = mult;} | |
39 | ||
40 | void SetTime (Int_t ipmt, Double32_t time) { fTime[ipmt] = time;} | |
41 | Double32_t GetTime (Int_t ipmt)const { return fTime[ipmt];} | |
42 | void SetAmp (Int_t ipmt, Double32_t adc) { fADC[ipmt] = adc;} | |
43 | Double32_t GetAmp (Int_t ipmt) const{ return fADC[ipmt];} | |
44 | void SetAmpLED (Int_t ipmt, Double32_t adc) { fADCLED[ipmt] = adc;} | |
45 | Double32_t AmpLED (Int_t ipmt) const{ return fADCLED[ipmt];} | |
46 | ||
47 | void SetT0clock (Double32_t time) { fT0clock = time;} | |
48 | Double32_t GetT0clock () const{ return fT0clock;} | |
49 | ||
50 | Bool_t GetT0Trig(Int_t i) {return (fT0trig&(1<<i)) != 0;} | |
51 | Int_t GetT0Trig() {return fT0trig;} | |
52 | void SetT0Trig(Bool_t *tr ); | |
53 | void PrintTriggerSignals(Int_t trig); | |
54 | ||
55 | Float_t GetTimeFull(Int_t ch, Int_t hit) {return fTimeFull[ch][hit];} | |
56 | Float_t GetOrA(Int_t hit) {return fOrA[hit];} | |
57 | Float_t GetOrC(Int_t hit) {return fOrC[hit];} | |
58 | Float_t GetTVDC(Int_t hit) {return fTVDC[hit];} | |
59 | ||
60 | void SetTimeFull(Int_t ch, Int_t hit, Float_t time) {fTimeFull[ch][hit] = time;} | |
61 | void SetOrA (Int_t hit, Float_t time) { fOrA[hit] = time ;} | |
62 | void SetOrC (Int_t hit, Float_t time) { fOrC[hit] = time;} | |
63 | void SetTVDC(Int_t hit, Float_t time) { fTVDC[hit] = time;} | |
64 | ||
65 | private: | |
66 | Double32_t fTimeAverage; // Average time with best particles | |
67 | Int_t fTimeOnlineMean; // online mean signal | |
68 | Double32_t fVertexPosition; // Diffrence time between C and A | |
69 | Double32_t fTimeBestA; //TOF first particle on the A | |
70 | Double32_t fTimeBestC; //TOF first particle on the C | |
71 | Float_t fMultC; // multiplicity on the | |
72 | Float_t fMultA; // multiplicity on the | |
73 | Double32_t fT0clock; // T0 with best particles | |
74 | Int_t fT0trig; // T0 trigger signals | |
75 | ||
76 | Double32_t fTime[24]; // array's TDC | |
77 | Double32_t fADC[24]; // array's amplitude | |
78 | Double32_t fADCLED[24]; // array's LED amplitude | |
79 | ||
80 | ||
81 | Float_t fTimeFull[24][5]; // array's TDC no-correction; centred around 0 | |
82 | Float_t fOrA[5]; //hardware OrA centred around 0 | |
83 | Float_t fOrC[5]; //hardware OrC centred around 0 | |
84 | Float_t fTVDC[5]; //hardware TVDC centred around 0 | |
85 | Bool_t fPileup; | |
86 | Bool_t fSattelite; | |
87 | Double32_t fTime1stA; //TOF first particle on the A | |
88 | Double32_t fTime1stC; //TOF first particle on the C | |
89 | ||
90 | ClassDef(AliT0RecPoint,8) // RecPoints (Header) object for set:T0 | |
91 | }; | |
92 | ||
93 | typedef AliT0RecPoint AliSTARTRecPoint; // for backward compatibility | |
94 | ||
95 | #endif | |
96 | ||
97 | ||
98 |