]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/ESD/AliESDTZERO.h
Moving the classes that belong to the following libraries: STEERBase, ESD, CDB, AOD...
[u/mrichter/AliRoot.git] / STEER / ESD / AliESDTZERO.h
1
2 // -*- mode: C++ -*- 
3 #ifndef ALIESDTZERO_H
4 #define ALIESDTZERO_H
5
6 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7  * See cxx source for full Copyright notice                               */
8
9
10 //-------------------------------------------------------------------------
11 //                          Class AliESDTZERO
12 //   This is a class that summarizes the TZERO data for the ESD   
13 //   Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch 
14 //-------------------------------------------------------------------------
15
16
17
18 #include <TObject.h>
19
20 class AliESDTZERO: public TObject {
21 public:
22   AliESDTZERO();
23   AliESDTZERO(const AliESDTZERO& tzero);
24   AliESDTZERO& operator=(const AliESDTZERO& tzero);
25   virtual void Copy(TObject &obj) const;
26
27   Double32_t GetT0zVertex() const {return fT0zVertex;}
28   void SetT0zVertex(Double32_t z) {fT0zVertex=z;}
29   Double32_t GetT0() const {return fT0timeStart;}
30   void SetT0(Double_t timeStart) {fT0timeStart = timeStart;}
31   Float_t GetT0clock() const {return fT0clock;}
32   void SetT0clock(Float_t timeStart) {fT0clock = timeStart;}
33   Double32_t GetT0TOF(Int_t i) const {return fT0TOF[i];}
34   const Double32_t * GetT0TOF() const {return fT0TOF;}
35   void SetT0TOF(Int_t icase, Float_t time) { fT0TOF[icase] = time;}
36   Int_t GetT0Trig() const {return fT0trig;}
37   void SetT0Trig(Int_t tvdc) {fT0trig = tvdc;}
38   Bool_t GetT0Trig(Int_t i) {return (fT0trig&(1<<i)) != 0;}
39   const Double32_t * GetT0time() const {return fT0time;}
40   void SetT0time(Double32_t time[24]) {
41     for (Int_t i=0; i<24; i++) fT0time[i] = time[i];
42   }
43   const Double32_t * GetT0amplitude() const {return fT0amplitude;}
44   void SetT0amplitude(Double32_t amp[24]) {
45     for (Int_t i=0; i<24; i++) fT0amplitude[i] = amp[i];
46   }
47   Float_t GetTimeFull(Int_t ch, Int_t hit) {return fTimeFull[ch][hit];}
48   Float_t GetOrA(Int_t hit) {return fOrA[hit];}
49   Float_t GetOrC(Int_t hit) {return fOrC[hit];}
50   Float_t GetTVDC(Int_t hit) {return fTVDC[hit];}
51   
52   void SetTimeFull(Int_t ch, Int_t hit, Float_t time) {fTimeFull[ch][hit] = time;}
53   void SetOrA (Int_t hit, Float_t time) { fOrA[hit] = time ;}
54   void SetOrC (Int_t hit, Float_t time) { fOrC[hit] = time;}
55   void SetTVDC(Int_t hit, Float_t time) { fTVDC[hit] = time;}
56   
57   void SetMultC(Float_t mult) {fMultC = mult;}
58   void SetMultA(Float_t mult) {fMultA = mult;}
59   Float_t GetMultC()       const {return fMultC;}
60   Float_t GetMultA()       const {return fMultA;}
61   
62   void    Reset();
63   void    Print(const Option_t *opt=0) const;
64
65 private:
66
67   Float_t      fT0clock;     // backward compatibility
68   Double32_t   fT0TOF[3];     // interaction time in ns ( A&C, A, C)
69   Double32_t   fT0zVertex;       // vertex z position estimated by the T0
70   Double32_t   fT0timeStart;     // interaction time estimated by the T0
71   Int_t        fT0trig;            // T0 trigger signals
72   Double32_t   fT0time[24];      // best TOF on each T0 PMT
73   Double32_t   fT0amplitude[24]; // number of particles(MIPs) on each T0 PMT
74   Float_t fTimeFull[24][5];    // array's TDC no-correction ;centred  around 0
75   Float_t fOrA[5];  //hardware OrA centred around 0
76   Float_t fOrC[5];  //hardware OrC centred around 0
77   Float_t fTVDC[5]; //hardware TVDC centred around 0
78   Bool_t fPileup;   // pile-up flag
79   Bool_t fSattelite; //sattelite flag
80   Float_t fMultC; // multiplicity on the C side
81   Float_t fMultA; // multiplicity on the A side
82  
83   ClassDef(AliESDTZERO,5)
84 };
85
86
87 #endif