]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFT0v1.h
Add class to access simulation parameters, AliEMCALSimParam, to be set in configurati...
[u/mrichter/AliRoot.git] / TOF / AliTOFT0v1.h
1 #ifndef AliTOFT0v1_H
2 #define AliTOFT0v1_H
3
4 #include "TString.h"
5 #include "AliESDEvent.h"
6 #include "AliStack.h"
7
8 class AliTOFcalibHisto;
9
10 class AliTOFT0v1: public TObject {
11 public:
12   
13   AliTOFT0v1(AliESDEvent*) ;
14   AliTOFT0v1(const AliTOFT0v1 & tzero);
15   virtual ~AliTOFT0v1() ; // dtor
16  
17   void SetCalib(AliTOFcalibHisto *calib){fCalib = calib;};
18
19   const char*   GetTZeroFile() const {return fT0File.Data();}   
20   Double_t* DefineT0(Option_t *option); 
21   Double_t* DefineT0RawCorrection(Option_t *option); 
22   
23   void      SetTimeResolution(Double_t timeresolution);// timeresolution in [s] e.g. for 120 ps -> 1.2e-10
24   
25   Double_t       GetTimeResolution(){return fTimeResolution;}
26   
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 ;
35
36  private:
37   AliTOFcalibHisto *fCalib;
38
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   
42   Float_t fT0Offset;
43   Float_t fLOffset;
44   Float_t fUpperMomBound;   // momentum upper bound for selected primary tracks 
45   Float_t fDeltaTfromMisallinement;
46
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 
51   
52   ClassDef(AliTOFT0v1,1);  // Calculate the time zero using TOF detector */
53   
54 };
55
56 #endif