]>
Commit | Line | Data |
---|---|---|
8f589502 | 1 | #ifndef ALITOFT0V1_H |
2 | #define ALITOFT0V1_H | |
536031f2 | 3 | |
8f589502 | 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" | |
536031f2 | 14 | |
14b2cbea | 15 | class AliESDtrack; |
8f589502 | 16 | class AliESDEvent; |
2a258f40 | 17 | class AliESDpid; |
536031f2 | 18 | |
19 | class AliTOFT0v1: public TObject { | |
20 | public: | |
21 | ||
2a258f40 | 22 | AliTOFT0v1(AliESDpid *extPID=NULL); // default constructor |
23 | AliTOFT0v1(AliESDEvent *event,AliESDpid *extPID=NULL); // overloaded constructor | |
536031f2 | 24 | virtual ~AliTOFT0v1() ; // dtor |
25 | ||
536031f2 | 26 | Double_t* DefineT0(Option_t *option); |
5b4ed716 | 27 | Double_t* DefineT0(Option_t *option,Float_t pMinCut,Float_t pMaxCut=1.5); |
2a258f40 | 28 | |
536031f2 | 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!!! | |
8f589502 | 31 | Float_t GetMomError(Int_t index, Float_t mom, Float_t texp) const; |
2a258f40 | 32 | Double_t GetResult(Int_t i){if(i < 6) return fT0SigmaT0def[i]; else return -1.;}; |
8f589502 | 33 | /* void Print(Option_t* option) const ; */ |
536031f2 | 34 | |
2a258f40 | 35 | void SetTimeResolution(Float_t /* timeres */){}; // obsolete |
36 | ||
5b4ed716 | 37 | void Init(AliESDEvent *event); // init |
38 | ||
536031f2 | 39 | private: |
14b2cbea | 40 | |
5b4ed716 | 41 | AliTOFT0v1(const AliTOFT0v1 &); |
42 | AliTOFT0v1 & operator=(const AliTOFT0v1 &) ; | |
43 | ||
14b2cbea | 44 | Bool_t AcceptTrack(AliESDtrack *track); /* accept track */ |
8f589502 | 45 | Float_t GetSigmaToVertex(AliESDtrack *track) const; /* get sigma to vertex */ |
14b2cbea | 46 | |
536031f2 | 47 | |
536031f2 | 48 | Float_t fLowerMomBound; // momentum lower bound for selected primary tracks |
536031f2 | 49 | Float_t fUpperMomBound; // momentum upper bound for selected primary tracks |
8f589502 | 50 | Float_t fTimeCorr; // global time resolution used to calculate T0 |
536031f2 | 51 | AliESDEvent* fEvent; //evento per il quale si vuole calcolare il T0 |
2a258f40 | 52 | Double_t fT0SigmaT0def[6]; // array with the event information ([0]=event time -- [1] = sigma -- [2] = tracks on the TOF -- [3] = tracks used for the event time) |
536031f2 | 53 | |
2a258f40 | 54 | AliESDpid *fPIDesd; // class with the detector response |
55 | ||
56 | ClassDef(AliTOFT0v1,3); // Calculate the time zero using TOF detector */ | |
536031f2 | 57 | |
58 | }; | |
59 | ||
60 | #endif |