2 // Class AliRsnCutRange
4 // General implementation of cuts which check a value inside a range.
5 // This range can be defined by two integers or two doubles.
6 // A user-friendly enumeration allows to define what is checked.
8 // authors: Martin Vala (martin.vala@cern.ch)
9 // Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
12 #ifndef ALIRSNTOFCORRECTIONESD_H
13 #define ALIRSNTOFCORRECTIONESD_H
15 #include "AliESDpid.h"
21 class AliRsnTOFCorrectionESD : public TObject {
24 AliRsnTOFCorrectionESD(Bool_t isMC, Double_t tofRes = 100.0);
25 AliRsnTOFCorrectionESD(const AliRsnTOFCorrectionESD& copy);
26 AliRsnTOFCorrectionESD& operator=(const AliRsnTOFCorrectionESD& copy);
27 virtual ~AliRsnTOFCorrectionESD() { if (fOwnESDpid) delete fESDpid; }
29 AliESDpid* ESDpid() {return fESDpid;}
30 void SetMC(Bool_t yn = kTRUE) {fgTOFtuneMC = yn;}
31 void SetESDpid(AliESDpid *pid) {fESDpid = pid; fOwnESDpid = kFALSE;}
32 void ProcessEvent(AliESDEvent *esd);
36 Bool_t fOwnESDpid; // to know if the object is owned or passed
37 AliESDpid *fESDpid; // PID utility for ESD
39 //static Bool_t fgTOFcalibrateESD; //! TOF settings
40 static Bool_t fgTOFcorrectTExp; //! TOF settings
41 static Bool_t fgTOFuseT0; //! TOF settings
42 static Bool_t fgTOFtuneMC; //! TOF settings
43 static Double_t fgTOFresolution; //! TOF settings
44 static AliTOFT0maker *fgTOFmaker; //! TOF time0 computator
45 static AliTOFcalib *fgTOFcalib; //! TOF calibration
46 static Int_t fgLastRun; //! last run number
48 ClassDef(AliRsnTOFCorrectionESD, 1)