]>
Commit | Line | Data |
---|---|---|
d599d913 | 1 | #ifndef ALITOFT0_H |
2 | #define ALITOFT0_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
0e46b9ae | 6 | //_____________________________________________________________________________// |
7 | // // | |
8 | // Task Class for calculating the time zero of interaction using TOF // | |
9 | // The input file need the track length till TOF detector // | |
10 | // It can be done modifyng the AliTOFvj StepManager and the AliTOFHit class // | |
11 | // as follow // | |
12 | // // | |
13 | //-- Author: F. Pierella // | |
14 | // // | |
15 | //_____________________________________________________________________________// | |
d599d913 | 16 | |
17 | #include "TTask.h" | |
d599d913 | 18 | |
0e46b9ae | 19 | class TString; |
d599d913 | 20 | |
21 | class AliTOFT0: public TTask { | |
22 | ||
23 | public: | |
24 | AliTOFT0() ; // ctor | |
25 | AliTOFT0(char* headerFile, Int_t nEvents=0) ; | |
5c016a7b | 26 | AliTOFT0(const AliTOFT0 & tzero); |
27 | ////// {( (AliTOFT0 &)tzero ).Copy(*this) ;} | |
d599d913 | 28 | virtual ~AliTOFT0() ; // dtor |
29 | /* | |
30 | AliTOFT0 & operator = (const AliTOFT0 & rvalue) { | |
31 | // assignement operator requested by coding convention but not needed | |
32 | abort() ; | |
33 | return *this ; | |
34 | } | |
35 | */ | |
36 | const char* GetTZeroFile() const {return fT0File.Data();} | |
37 | virtual void Exec(Option_t *option); | |
38 | void SetNEvents(Int_t nEvents) {fNevents = nEvents;} | |
39 | void SetTimeResolution(Float_t timeresolution) { fTimeResolution=timeresolution;}// timeresolution in [s] e.g. for 120 ps -> 1.2e-10 | |
40 | Int_t GetNEvents() const {return fNevents;} | |
41 | void SetTZeroFile(char* file) ; | |
42 | void SetMomBounds(Float_t pLow, Float_t pUp) { fLowerMomBound=pLow; fUpperMomBound=pUp;} // momenta are expressed in [GeV/c] | |
43 | virtual void Print(Option_t* option) const ; | |
d599d913 | 44 | Bool_t operator == (const AliTOFT0 & tzero) const ; |
45 | ||
7aeeaf38 | 46 | protected: |
47 | ||
48 | private: | |
d599d913 | 49 | Int_t fNevents; // Number of events for which calculate the T0 |
50 | Float_t fTimeResolution; // global time resolution used to calculate T0 | |
51 | Float_t fLowerMomBound; // momentum lower bound for selected primary tracks | |
52 | Float_t fUpperMomBound; // momentum upper bound for selected primary tracks | |
53 | TString fT0File ; // output file; it contains for time being only 3 histos | |
d599d913 | 54 | TString fHeadersFile; // input file |
55 | ||
d599d913 | 56 | ClassDef(AliTOFT0,1) // Calculate the time zero using TOF detector |
57 | ||
58 | }; | |
59 | ||
60 | #endif // AliTOFT0_H |