Line data Source code
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 0 : AliT0RecPoint& operator= (const AliT0RecPoint &) { return *this;}
17 96 : virtual ~AliT0RecPoint() {}
18 :
19 32 : Double32_t GetMeanTime() const {return fTimeAverage;}
20 0 : Int_t GetOnlineMean() const {return fTimeOnlineMean;}
21 32 : Double32_t GetBestTimeA() const {return fTimeBestA ;}
22 32 : Double32_t GetBestTimeC() const {return fTimeBestC ;}
23 32 : Float_t GetMultC() const {return fMultC;}
24 32 : Double32_t Get1stTimeA() const {return fTime1stA ;}
25 32 : Double32_t Get1stTimeC() const {return fTime1stC ;}
26 32 : Float_t GetMultA() const {return fMultA;}
27 32 : Double32_t GetVertex() const {return fVertexPosition;}
28 :
29 :
30 16 : void SetMeanTime(Double32_t time) {fTimeAverage=time;}
31 16 : void SetOnlineMean(Int_t time) {fTimeOnlineMean=time;}
32 4 : void SetTimeBestA( Double32_t time) {fTimeBestA = time;}
33 2 : void SetTimeBestC( Double32_t time) {fTimeBestC = time;}
34 4 : void SetTime1stA( Double32_t time) {fTime1stA = time;}
35 2 : void SetTime1stC( Double32_t time) {fTime1stC = time;}
36 16 : void SetVertex( Double32_t vertex) {fVertexPosition= vertex;}
37 8 : void SetMultC(Float_t mult) {fMultC = mult;}
38 8 : void SetMultA(Float_t mult) {fMultA = mult;}
39 :
40 12 : void SetTime (Int_t ipmt, Double32_t time) { fTime[ipmt] = time;}
41 768 : Double32_t GetTime (Int_t ipmt)const { return fTime[ipmt];}
42 12 : void SetAmp (Int_t ipmt, Double32_t adc) { fADC[ipmt] = adc;}
43 24 : Double32_t GetAmp (Int_t ipmt) const{ return fADC[ipmt];}
44 12 : void SetAmpLED (Int_t ipmt, Double32_t adc) { fADCLED[ipmt] = adc;}
45 24 : Double32_t AmpLED (Int_t ipmt) const{ return fADCLED[ipmt];}
46 :
47 16 : void SetT0clock (Double32_t time) { fT0clock = time;}
48 32 : Double32_t GetT0clock () const{ return fT0clock;}
49 :
50 0 : Bool_t GetT0Trig(Int_t i) {return (fT0trig&(1<<i)) != 0;}
51 32 : Int_t GetT0Trig() {return fT0trig;}
52 : void SetT0Trig(Bool_t *tr );
53 : void PrintTriggerSignals(Int_t trig);
54 :
55 3840 : Float_t GetTimeFull(Int_t ch, Int_t hit) {return fTimeFull[ch][hit];}
56 160 : Float_t GetOrA(Int_t hit) {return fOrA[hit];}
57 160 : Float_t GetOrC(Int_t hit) {return fOrC[hit];}
58 160 : Float_t GetTVDC(Int_t hit) {return fTVDC[hit];}
59 :
60 972 : void SetTimeFull(Int_t ch, Int_t hit, Float_t time) {fTimeFull[ch][hit] = time;}
61 40 : void SetOrA (Int_t hit, Float_t time) { fOrA[hit] = time ;}
62 40 : void SetOrC (Int_t hit, Float_t time) { fOrC[hit] = time;}
63 40 : void SetTVDC(Int_t hit, Float_t time) { fTVDC[hit] = time;}
64 :
65 0 : void SetFITTime (Int_t ipmt, Double32_t time) { ftimeFIT[ipmt] = time;}
66 640 : Double32_t GetFITTime (Int_t ipmt)const { return ftimeFIT[ipmt];}
67 : private:
68 : Double32_t fTimeAverage; // Average time with best particles
69 : Int_t fTimeOnlineMean; // online mean signal
70 : Double32_t fVertexPosition; // Diffrence time between C and A
71 : Double32_t fTimeBestA; //TOF first particle on the A
72 : Double32_t fTimeBestC; //TOF first particle on the C
73 : Float_t fMultC; // multiplicity on the
74 : Float_t fMultA; // multiplicity on the
75 : Double32_t fT0clock; // T0 with best particles
76 : Int_t fT0trig; // T0 trigger signals
77 :
78 : Double32_t fTime[24]; // array's TDC
79 : Double32_t fADC[24]; // array's amplitude
80 : Double32_t fADCLED[24]; // array's LED amplitude
81 :
82 :
83 : Float_t fTimeFull[24][5]; // array's TDC no-correction; centred around 0
84 : Float_t fOrA[5]; //hardware OrA centred around 0
85 : Float_t fOrC[5]; //hardware OrC centred around 0
86 : Float_t fTVDC[5]; //hardware TVDC centred around 0
87 : Bool_t fPileup;
88 : Bool_t fSattelite;
89 : Double32_t fTime1stA; //TOF first particle on the A
90 : Double32_t fTime1stC; //TOF first particle on the C
91 : Float_t ftimeFIT[4]; // time signals from FIT MCP PMT
92 :
93 106 : ClassDef(AliT0RecPoint,9) // RecPoints (Header) object for set:T0
94 : };
95 :
96 : typedef AliT0RecPoint AliSTARTRecPoint; // for backward compatibility
97 :
98 : #endif
99 :
100 :
101 :
|