3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //_____________________________________________________________________________//
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 //
13 //-- Author: F. Pierella //
15 //_____________________________________________________________________________//
21 class AliTOFT0: public TTask {
25 AliTOFT0(char* headerFile, Int_t nEvents=0) ;
26 AliTOFT0(const AliTOFT0 & tzero);
27 ////// {( (AliTOFT0 &)tzero ).Copy(*this) ;}
28 virtual ~AliTOFT0() ; // dtor
30 AliTOFT0 & operator = (const AliTOFT0 & rvalue) {
31 // assignement operator requested by coding convention but not needed
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 ;
44 Bool_t operator == (const AliTOFT0 & tzero) const ;
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
54 TString fHeadersFile; // input file
56 ClassDef(AliTOFT0,1) // Calculate the time zero using TOF detector