4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 //----------------------------------------------------------------------------//
9 // Description: class to performe an event time measurment with TOF. //
11 //----------------------------------------------------------------------------//
18 class AliTOFT0v1: public TObject {
21 AliTOFT0v1() ; // default constructor
22 AliTOFT0v1(AliESDEvent *event); // overloaded constructor
23 virtual ~AliTOFT0v1() ; // dtor
25 Double_t* DefineT0(Option_t *option);
26 Double_t* DefineT0(Option_t *option,Float_t pMinCut,Float_t pMaxCut=1.5);
28 void SetTimeResolution(Double_t timeresolution);// timeresolution in [s] e.g. for 120 ps -> 1.2e-10
30 Double_t GetTimeResolution() const {return fTimeResolution;}
32 void SetMomBounds(Float_t pLow, Float_t pUp) { fLowerMomBound=pLow; fUpperMomBound=pUp;} // momenta are expressed in [GeV/c]
33 void SetTimeCorr(Float_t timecorr) {fTimeCorr=timecorr;} //in ns!!!
34 Float_t GetMomError(Int_t index, Float_t mom, Float_t texp) const;
35 Double_t GetResult(Int_t i){if(i < 4) return fT0SigmaT0def[i]; else return -1.;};
36 /* void Print(Option_t* option) const ; */
38 void Init(AliESDEvent *event); // init
42 AliTOFT0v1(const AliTOFT0v1 &);
43 AliTOFT0v1 & operator=(const AliTOFT0v1 &) ;
45 Bool_t AcceptTrack(AliESDtrack *track); /* accept track */
46 Float_t GetSigmaToVertex(AliESDtrack *track) const; /* get sigma to vertex */
49 Float_t fLowerMomBound; // momentum lower bound for selected primary tracks
50 Float_t fUpperMomBound; // momentum upper bound for selected primary tracks
51 Double_t fTimeResolution; // global time resolution used to calculate T0
52 Float_t fTimeCorr; // global time resolution used to calculate T0
53 AliESDEvent* fEvent; //evento per il quale si vuole calcolare il T0
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)
56 ClassDef(AliTOFT0v1,2); // Calculate the time zero using TOF detector */