1 #ifndef AliTOFT0maker_H
2 #define AliTOFT0maker_H
5 #include "AliESDEvent.h"
8 class AliTOFcalibHisto;
11 class AliTOFT0maker: public TObject {
15 virtual ~AliTOFT0maker() ; // dtor
17 void SetESDdata(Bool_t val=kTRUE){fESDswitch=val;};
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
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;}
26 void TakeTimeRawCorrection(AliESDEvent *esd);
27 void RemakeTOFpid(AliESDEvent *esd,Float_t timezero);
28 Double_t GetT0Fill(Int_t nrun);
30 AliTOFcalibHisto *fCalib;
32 Bool_t fESDswitch; // if you want take the ESD time instead of the raw + time slewing correction
34 Double_t fTimeResolution; // global time resolution used to calculate T0
38 ClassDef(AliTOFT0maker,1); // Calculate the time zero using TOF detector */