]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/AliRsnCutPIDTOF.h
method added to add a run list (A.Pulvirenti)
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutPIDTOF.h
CommitLineData
35e49ca5 1//
2// Class AliRsnCutRange
3//
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.
7//
8// authors: Martin Vala (martin.vala@cern.ch)
9// Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
10//
11
12#ifndef ALIRSNCUTPIDTOF_H
13#define ALIRSNCUTPIDTOF_H
14
15#include "AliPID.h"
16#include "AliESDpid.h"
17#include "AliAODpidUtil.h"
18
19class AliTOFT0maker;
20class AliTOFcalib;
21class AliESDtrack;
22class AliAODTrack;
23
24#include "AliRsnCut.h"
25
26class AliRsnCutPIDTOF : public AliRsnCut
27{
28 public:
29
b4082dee 30 AliRsnCutPIDTOF(const char *name = "cutPIDTOF", AliPID::EParticleType pid = AliPID::kKaon, Bool_t isMC = kFALSE, Double_t min = -10.0, Double_t max = 10.0, Bool_t forceMatching = kFALSE);
35e49ca5 31 AliRsnCutPIDTOF(const AliRsnCutPIDTOF& copy);
32 AliRsnCutPIDTOF& operator=(const AliRsnCutPIDTOF& copy);
33 virtual ~AliRsnCutPIDTOF() { }
34
35 void SetMC(Bool_t yn = kTRUE) {fIsMC = yn;}
36 virtual Bool_t IsSelected(TObject *object);
a909ffad 37 virtual void Print(const Option_t *option = "") const;
35e49ca5 38
39 protected:
40
41 void ProcessCurrentEvent();
42 Bool_t CheckESD(AliESDtrack *track);
43 Bool_t CheckAOD(AliAODTrack *track);
44
659ef4f0 45 Bool_t fIsMC; // switch for MC analysis
46 Bool_t fForceMatching; // decide if non TOF matched tracks pass the cut or not
35e49ca5 47 AliPID::EParticleType fPIDtype; // particle type for which PID is checked
48 AliESDpid fESDpid; // PID utility for ESD
49 AliAODpidUtil fAODpid; // PID utility for AOD
50
51 //static Bool_t fgTOFcalibrateESD; //! TOF settings
52 static Bool_t fgTOFcorrectTExp; //! TOF settings
53 static Bool_t fgTOFuseT0; //! TOF settings
54 static Bool_t fgTOFtuneMC; //! TOF settings
55 static Double_t fgTOFresolution; //! TOF settings
56 static AliTOFT0maker *fgTOFmaker; //! TOF time0 computator
57 static AliTOFcalib *fgTOFcalib; //! TOF calibration
58 static Int_t fgLastRun; //! last run number
59 static Int_t fgLastEventID; //! ID of last event processed
60 static AliESDEvent *fgLastEvent; //! pointer to last processed event
61
62 ClassDef(AliRsnCutPIDTOF, 1)
63};
64
65#endif