Line data Source code
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 :
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 : //_____________________________________________________________________________//
16 :
17 : #include "TTask.h"
18 :
19 : class TString;
20 :
21 : class AliTOFT0: public TTask {
22 :
23 : public:
24 : AliTOFT0() ; // ctor
25 : AliTOFT0(char* headerFile, Int_t nEvents=0) ;
26 : AliTOFT0(const AliTOFT0 & tzero);
27 : virtual ~AliTOFT0() ; // dtor
28 : AliTOFT0 & operator = (const AliTOFT0 & tzero);
29 0 : const char* GetTZeroFile() const {return fT0File.Data();}
30 : virtual void Exec(Option_t *option);
31 0 : void SetNEvents(Int_t nEvents) {fNevents = nEvents;}
32 0 : void SetTimeResolution(Float_t timeresolution) { fTimeResolution=timeresolution;}// timeresolution in [s] e.g. for 120 ps -> 1.2e-10
33 0 : Int_t GetNEvents() const {return fNevents;}
34 : void SetTZeroFile(char* file) ;
35 0 : void SetMomBounds(Float_t pLow, Float_t pUp) { fLowerMomBound=pLow; fUpperMomBound=pUp;} // momenta are expressed in [GeV/c]
36 : virtual void Print(Option_t* option) const ;
37 : Bool_t operator == (const AliTOFT0 & tzero) const ;
38 :
39 : protected:
40 :
41 : private:
42 : Int_t fNevents; // Number of events for which calculate the T0
43 : Float_t fTimeResolution; // global time resolution used to calculate T0
44 : Float_t fLowerMomBound; // momentum lower bound for selected primary tracks
45 : Float_t fUpperMomBound; // momentum upper bound for selected primary tracks
46 : TString fT0File ; // output file; it contains for time being only 3 histos
47 : TString fHeadersFile; // input file
48 :
49 26 : ClassDef(AliTOFT0,1) // Calculate the time zero using TOF detector
50 :
51 : };
52 :
53 : #endif // AliTOFT0_H
|