]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFT0v1.h
Fix for bug #66094: Remove gstpar calls and put parameters in galice.cuts -- ZDC
[u/mrichter/AliRoot.git] / TOF / AliTOFT0v1.h
1 #ifndef ALITOFT0V1_H
2 #define ALITOFT0V1_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 //----------------------------------------------------------------------------//
8 //                                                                            //
9 //   Description: class to performe an event time measurment with TOF.        //
10 //                                                                            //
11 //----------------------------------------------------------------------------//
12
13 #include "TObject.h"
14
15 class AliESDtrack;
16 /* class AliTOFcalibHisto; */
17 class AliESDEvent;
18
19 class AliTOFT0v1: public TObject {
20 public:
21   
22   AliTOFT0v1() ;
23   AliTOFT0v1(const AliTOFT0v1 & tzero);
24   AliTOFT0v1 & operator=(const AliTOFT0v1 & tzero) ;
25   AliTOFT0v1(AliESDEvent *event);
26   virtual ~AliTOFT0v1() ; // dtor
27  
28   //  void SetCalib(AliTOFcalibHisto * const calib){fCalib = calib;};
29
30   Double_t* DefineT0(Option_t *option); 
31   
32   void      SetTimeResolution(Double_t timeresolution);// timeresolution in [s] e.g. for 120 ps -> 1.2e-10
33   
34   Double_t GetTimeResolution() const {return fTimeResolution;}
35   
36   void          SetMomBounds(Float_t pLow, Float_t pUp) { fLowerMomBound=pLow; fUpperMomBound=pUp;} // momenta are expressed in [GeV/c]
37   void          SetTimeCorr(Float_t timecorr) {fTimeCorr=timecorr;} //in ns!!!
38   Float_t       GetMomError(Int_t index, Float_t mom, Float_t texp) const;
39 /*   void  Print(Option_t* option) const ; */
40
41  private:
42
43   Bool_t AcceptTrack(AliESDtrack *track); /* accept track */
44   Float_t GetSigmaToVertex(AliESDtrack *track) const; /* get sigma to vertex */
45
46
47   Float_t fLowerMomBound;   // momentum lower bound for selected primary tracks   
48   Float_t fUpperMomBound;   // momentum upper bound for selected primary tracks 
49   Double_t fTimeResolution;  // global time resolution used to calculate T0
50   Float_t fTimeCorr;  // global time resolution used to calculate T0
51   AliESDEvent* fEvent;      //evento per il quale si vuole calcolare il T0
52 /*   AliTOFcalibHisto *fCalib; // pointer to the class with the TOF time corrections */
53
54   Double_t fT0SigmaT0def[4]; // array with the event information ([0]=event time -- [1] = sigma -- [2] = tracks on the TOF -- [3] = tracks used for the event time)
55   
56   ClassDef(AliTOFT0v1,2);  // Calculate the time zero using TOF detector */
57   
58 };
59
60 #endif