]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFT0.h
Remove calibration path: EMCAL/Config/Trigger
[u/mrichter/AliRoot.git] / TOF / AliTOFT0.h
CommitLineData
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 19class TString;
d599d913 20
21class AliTOFT0: public TTask {
22
23public:
24 AliTOFT0() ; // ctor
25 AliTOFT0(char* headerFile, Int_t nEvents=0) ;
5c016a7b 26 AliTOFT0(const AliTOFT0 & tzero);
d599d913 27 virtual ~AliTOFT0() ; // dtor
a3b608e8 28 AliTOFT0 & operator = (const AliTOFT0 & tzero);
d599d913 29 const char* GetTZeroFile() const {return fT0File.Data();}
30 virtual void Exec(Option_t *option);
31 void SetNEvents(Int_t nEvents) {fNevents = nEvents;}
32 void SetTimeResolution(Float_t timeresolution) { fTimeResolution=timeresolution;}// timeresolution in [s] e.g. for 120 ps -> 1.2e-10
33 Int_t GetNEvents() const {return fNevents;}
34 void SetTZeroFile(char* file) ;
35 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 ;
d599d913 37 Bool_t operator == (const AliTOFT0 & tzero) const ;
38
7aeeaf38 39 protected:
40
41 private:
d599d913 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
d599d913 47 TString fHeadersFile; // input file
48
d599d913 49 ClassDef(AliTOFT0,1) // Calculate the time zero using TOF detector
50
51};
52
53#endif // AliTOFT0_H