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 ALIRSNCUTPIDTOF_H
13 #define ALIRSNCUTPIDTOF_H
16 #include "AliESDpid.h"
17 #include "AliAODpidUtil.h"
24 #include "AliRsnCut.h"
26 class AliRsnCutPIDTOF : public AliRsnCut
30 AliRsnCutPIDTOF(const char *name = "cutPIDTOF", Bool_t isMC = kFALSE, Double_t min = -10.0, Double_t max = 10.0, Bool_t forceMatching = kFALSE);
31 AliRsnCutPIDTOF(const AliRsnCutPIDTOF& copy);
32 AliRsnCutPIDTOF& operator=(const AliRsnCutPIDTOF& copy);
33 virtual ~AliRsnCutPIDTOF() { }
35 void SetMC(Bool_t yn = kTRUE) {fIsMC = yn;}
36 virtual Bool_t IsSelected(TObject *object);
40 void ProcessCurrentEvent();
41 Bool_t CheckESD(AliESDtrack *track);
42 Bool_t CheckAOD(AliAODTrack *track);
44 Bool_t fIsMC; // switch for MC analysis
45 Bool_t fForceMatching; // decide if non TOF matched tracks pass the cut or not
46 AliPID::EParticleType fPIDtype; // particle type for which PID is checked
47 AliESDpid fESDpid; // PID utility for ESD
48 AliAODpidUtil fAODpid; // PID utility for AOD
50 //static Bool_t fgTOFcalibrateESD; //! TOF settings
51 static Bool_t fgTOFcorrectTExp; //! TOF settings
52 static Bool_t fgTOFuseT0; //! TOF settings
53 static Bool_t fgTOFtuneMC; //! TOF settings
54 static Double_t fgTOFresolution; //! TOF settings
55 static AliTOFT0maker *fgTOFmaker; //! TOF time0 computator
56 static AliTOFcalib *fgTOFcalib; //! TOF calibration
57 static Int_t fgLastRun; //! last run number
58 static Int_t fgLastEventID; //! ID of last event processed
59 static AliESDEvent *fgLastEvent; //! pointer to last processed event
61 ClassDef(AliRsnCutPIDTOF, 1)