]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFT0v1.h
Coding convention violations: suppression
[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 AliESDtrack;
9 class AliTOFcalibHisto;
10
11 class AliTOFT0v1: public TObject {
12 public:
13   
14   AliTOFT0v1(AliESDEvent*) ;
15   AliTOFT0v1(const AliTOFT0v1 & tzero);
16   virtual ~AliTOFT0v1() ; // dtor
17  
18   void SetCalib(AliTOFcalibHisto *calib){fCalib = calib;};
19
20   const char*   GetTZeroFile() const {return fT0File.Data();}   
21   Double_t* DefineT0(Option_t *option); 
22   Double_t* DefineT0RawCorrection(Option_t *option); 
23   
24   void      SetTimeResolution(Double_t timeresolution);// timeresolution in [s] e.g. for 120 ps -> 1.2e-10
25   
26   Double_t       GetTimeResolution(){return fTimeResolution;}
27   
28   void          SetTZeroFile(char* file) ;
29   void          SetMomBounds(Float_t pLow, Float_t pUp) { fLowerMomBound=pLow; fUpperMomBound=pUp;} // momenta are expressed in [GeV/c]
30   void          SetTimeCorr(Float_t timecorr) {fTimeCorr=timecorr;} //in ns!!!
31   void          SetT0Offset(Float_t t0offset){fT0Offset=t0offset;} //in ns!!!
32   void          SetLOffset(Float_t loffset){fT0Offset=loffset;}  //in m!!!
33   Float_t       GetMomError(Int_t index, Float_t mom, Float_t texp);
34   void  Print(Option_t* option) const ;
35   Bool_t   operator == (const AliTOFT0v1 & tzero) const ;
36
37  private:
38
39   Bool_t AcceptTrack(AliESDtrack *track); /* accept track */
40   Float_t GetSigmaToVertex(AliESDtrack *track); /* get sigma to vertex */
41
42   AliTOFcalibHisto *fCalib;
43
44   Double_t fTimeResolution;  // global time resolution used to calculate T0
45   Float_t fTimeCorr;  // global time resolution used to calculate T0
46   Float_t fLowerMomBound;   // momentum lower bound for selected primary tracks   
47   Float_t fT0Offset;
48   Float_t fLOffset;
49   Float_t fUpperMomBound;   // momentum upper bound for selected primary tracks 
50   Float_t fDeltaTfromMisallinement;
51
52   Double_t fT0SigmaT0def[4];
53   AliESDEvent* fEvent;      //evento per il quale si vuole calcolare il T0
54   //AliStack* fStack;         //stack associata all'evento fEvent
55   TString fT0File ;         // output file; it contains for time being only 3 histos 
56   
57   ClassDef(AliTOFT0v1,1);  // Calculate the time zero using TOF detector */
58   
59 };
60
61 #endif