]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/ESD/AliESDTZERO.h
fabs -> TMath::Abs
[u/mrichter/AliRoot.git] / STEER / ESD / AliESDTZERO.h
index 23b158678c78ea2c6a517acb9b1fd4ed267e69c6..43bd19bce4c2d175492744e07b91789fbb3b320a 100644 (file)
@@ -30,9 +30,15 @@ public:
   void SetT0(Double_t timeStart) {fT0timeStart = timeStart;}
   Float_t GetT0clock() const {return fT0clock;}
   void SetT0clock(Float_t timeStart) {fT0clock = timeStart;}
+  //1st
   Double32_t GetT0TOF(Int_t i) const {return fT0TOF[i];}
   const Double32_t * GetT0TOF() const {return fT0TOF;}
   void SetT0TOF(Int_t icase, Float_t time) { fT0TOF[icase] = time;}
+  //best
+  Double32_t GetT0TOFbest(Int_t i) const {return fT0TOFbest[i];}
+  const Double32_t * GetT0TOFbest() const {return fT0TOFbest;}
+  void SetT0TOFbest(Int_t icase, Float_t time) { fT0TOFbest[icase] = time;}
+
   Int_t GetT0Trig() const {return fT0trig;}
   void SetT0Trig(Int_t tvdc) {fT0trig = tvdc;}
   Bool_t GetT0Trig(Int_t i) {return (fT0trig&(1<<i)) != 0;}
@@ -58,29 +64,45 @@ public:
   void SetMultA(Float_t mult) {fMultA = mult;}
   Float_t GetMultC()       const {return fMultC;}
   Float_t GetMultA()       const {return fMultA;}
-  
+
+  void SetBackgroundFlag(Bool_t back = false) {fBackground = back;}
+  void SetPileupFlag(Bool_t back = false) {fPileup  = back;}
+  void SetSatelliteFlag(Bool_t sat = false) { fSattelite = sat;}
+  Bool_t GetBackgroundFlag() {return fBackground;}
+  Bool_t GetPileupFlag() {return fPileup;}
+  Bool_t GetSatellite() {return fSattelite;}
+
+  void SetPileupTime (Int_t hit, Float_t time) { fPileupTime[hit] = time;}
+  Float_t GetPileupTime(Int_t hit) {return fPileupTime[hit];}
+
+
   void    Reset();
   void    Print(const Option_t *opt=0) const;
 
+
 private:
 
   Float_t      fT0clock;     // backward compatibility
-  Double32_t   fT0TOF[3];     // interaction time in ns ( A&C, A, C)
-  Double32_t   fT0zVertex;       // vertex z position estimated by the T0
+  Double32_t   fT0TOF[3];     // interaction time in ps with 1st time( A&C, A, C)
+  Double32_t   fT0zVertex;       // vertex z position estimated by the T0, cm
   Double32_t   fT0timeStart;     // interaction time estimated by the T0
   Int_t        fT0trig;            // T0 trigger signals
   Double32_t   fT0time[24];      // best TOF on each T0 PMT
   Double32_t   fT0amplitude[24]; // number of particles(MIPs) on each T0 PMT
-  Float_t fTimeFull[24][5];    // array's TDC no-correction ;centred  around 0
-  Float_t fOrA[5];  //hardware OrA centred around 0
-  Float_t fOrC[5];  //hardware OrC centred around 0
-  Float_t fTVDC[5]; //hardware TVDC centred around 0
+  Float_t fTimeFull[24][5];    // array's TDC no-correction ;centred  around 0, ns
+  Float_t fOrA[5];  //hardware OrA centred around 0, ns
+  Float_t fOrC[5];  //hardware OrC centred around 0, ns
+  Float_t fTVDC[5]; //hardware TVDC centred around 0, ns
   Bool_t fPileup;   // pile-up flag
   Bool_t fSattelite; //sattelite flag
   Float_t fMultC; // multiplicity on the C side
   Float_t fMultA; // multiplicity on the A side
-  ClassDef(AliESDTZERO,5)
+  Bool_t fBackground; //sattelite flag
+  Float_t fPileupTime[6];
+  Double32_t   fT0TOFbest[3]; // interaction time in ps ( A&C, A, C) with best time
+
+  ClassDef(AliESDTZERO,7)
 };