]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFT0maker.h
fix coding rules violations and bug fix
[u/mrichter/AliRoot.git] / TOF / AliTOFT0maker.h
1 #ifndef AliTOFT0maker_H
2 #define AliTOFT0maker_H
3
4 #include "TString.h"
5 #include "AliESDEvent.h"
6 #include "AliStack.h"
7
8 class AliTOFcalibHisto;
9 class AliTOFT0v1;
10
11 class AliTOFT0maker: public TObject {
12 public:
13   
14   AliTOFT0maker() ;
15   virtual ~AliTOFT0maker() ; // dtor
16  
17   void SetESDdata(Bool_t val=kTRUE){fESDswitch=val;};
18
19   // return (...[0]=event time -- ...[1]=sigma event time in ps) if you can subtruct the event time; return NULL if there is no event time
20   Double_t *RemakePID(AliESDEvent *esd,Double_t t0time=0.,Double_t t0sigma=1000.); // t0time and t0sigma in ps
21
22   void      SetTimeResolution(Double_t timeresolution){fTimeResolution=timeresolution;};// TOF timeresolution in [s] e.g. for 120 ps -> 1.2e-10
23   Double_t  GetTimeResolution(){return fTimeResolution;}
24   
25  private:
26   void TakeTimeRawCorrection(AliESDEvent *esd);
27   void RemakeTOFpid(AliESDEvent *esd,Float_t timezero);
28   Double_t GetT0Fill(Int_t nrun);
29
30  AliTOFcalibHisto *fCalib;
31
32   Bool_t fESDswitch; // if you want take the ESD time instead of the raw + time slewing correction
33
34   Double_t fTimeResolution;  // global time resolution used to calculate T0
35
36   Float_t fT0sigma;
37   
38   ClassDef(AliTOFT0maker,1);  // Calculate the time zero using TOF detector */
39   
40 };
41
42 #endif