]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/ESD/AliESDTZERO.h
multiple vertex reconstruction with VertexerTracks + related changes
[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 SetBackgroundFlag(Bool_t back = false) {fBackground = back;}
63   void SetPileupFlag(Bool_t back = false) {fPileup  = back;}
64   void SetSatelliteFlag(Bool_t sat = false) { fSattelite = sat;}
65  
66   Bool_t GetBackgroundFlag() {return fBackground;}
67   Bool_t GetPileupFlag() {return fPileup;}
68   Bool_t GetSatellite() {return fSattelite;}
69
70   void SetPileupTime (Int_t hit, Float_t time) { fPileupTime[hit] = time;}
71   Float_t GetPileupTime(Int_t hit) {return fPileupTime[hit];}
72
73
74   void    Reset();
75   void    Print(const Option_t *opt=0) const;
76
77
78 private:
79
80   Float_t      fT0clock;     // backward compatibility
81   Double32_t   fT0TOF[3];     // interaction time in ps ( A&C, A, C)
82   Double32_t   fT0zVertex;       // vertex z position estimated by the T0, cm
83   Double32_t   fT0timeStart;     // interaction time estimated by the T0
84   Int_t        fT0trig;            // T0 trigger signals
85   Double32_t   fT0time[24];      // best TOF on each T0 PMT
86   Double32_t   fT0amplitude[24]; // number of particles(MIPs) on each T0 PMT
87   Float_t fTimeFull[24][5];    // array's TDC no-correction ;centred  around 0, ns
88   Float_t fOrA[5];  //hardware OrA centred around 0, ns
89   Float_t fOrC[5];  //hardware OrC centred around 0, ns
90   Float_t fTVDC[5]; //hardware TVDC centred around 0, ns
91   Bool_t fPileup;   // pile-up flag
92   Bool_t fSattelite; //sattelite flag
93   Float_t fMultC; // multiplicity on the C side
94   Float_t fMultA; // multiplicity on the A side
95   Bool_t fBackground; //sattelite flag
96   Float_t fPileupTime[6];
97
98   ClassDef(AliESDTZERO,6)
99 };
100
101
102 #endif