5 #include "AliESDEvent.h"
8 class AliTOFcalibHisto;
10 class AliTOFT0v1: public TObject {
13 AliTOFT0v1(AliESDEvent*) ;
14 AliTOFT0v1(const AliTOFT0v1 & tzero);
15 virtual ~AliTOFT0v1() ; // dtor
17 void SetCalib(AliTOFcalibHisto *calib){fCalib = calib;};
19 const char* GetTZeroFile() const {return fT0File.Data();}
20 Double_t* DefineT0(Option_t *option);
21 Double_t* DefineT0RawCorrection(Option_t *option);
23 void SetTimeResolution(Double_t timeresolution);// timeresolution in [s] e.g. for 120 ps -> 1.2e-10
25 Double_t GetTimeResolution(){return fTimeResolution;}
27 void SetTZeroFile(char* file) ;
28 void SetMomBounds(Float_t pLow, Float_t pUp) { fLowerMomBound=pLow; fUpperMomBound=pUp;} // momenta are expressed in [GeV/c]
29 void SetTimeCorr(Float_t timecorr) {fTimeCorr=timecorr;} //in ns!!!
30 void SetT0Offset(Float_t t0offset){fT0Offset=t0offset;} //in ns!!!
31 void SetLOffset(Float_t loffset){fT0Offset=loffset;} //in m!!!
32 Float_t GetMomError(Int_t index, Float_t mom, Float_t texp);
33 void Print(Option_t* option) const ;
34 Bool_t operator == (const AliTOFT0v1 & tzero) const ;
37 AliTOFcalibHisto *fCalib;
39 Double_t fTimeResolution; // global time resolution used to calculate T0
40 Float_t fTimeCorr; // global time resolution used to calculate T0
41 Float_t fLowerMomBound; // momentum lower bound for selected primary tracks
44 Float_t fUpperMomBound; // momentum upper bound for selected primary tracks
45 Float_t fDeltaTfromMisallinement;
47 Double_t fT0SigmaT0def[4];
48 AliESDEvent* fEvent; //evento per il quale si vuole calcolare il T0
49 //AliStack* fStack; //stack associata all'evento fEvent
50 TString fT0File ; // output file; it contains for time being only 3 histos
52 ClassDef(AliTOFT0v1,1); // Calculate the time zero using TOF detector */