example macros to run on proof
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutPIDTPC.h
CommitLineData
659ef4f0 1//
2// *** Class AliRsnCutPIDTPC ***
3//
4// This class implements all cuts which have to be used for the 2010 runs
5// for phi and generic resonance analysis.
6// It contains an AliESDtrackCuts object for track quality selection
7// and some criteria for particle identification with ITS, TPC and TOF.
8//
9// authors: Martin Vala (martin.vala@cern.ch)
10// Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
11//
12
13#ifndef ALIRSNCUTPIDTPC_H
14#define ALIRSNCUTPIDTPC_H
15
659ef4f0 16#include "AliRsnCut.h"
17
b63357a0 18class AliPID;
c865cb1d 19class AliESDpid;
20class AliAODpidUtil;
21
2a1c7696 22class AliRsnCutPIDTPC : public AliRsnCut {
23public:
24
25 AliRsnCutPIDTPC(const char *name = "cutTPC",
26 EPARTYPE type = AliPID::kKaon,
27 Double_t nSigmaMin = -3.,
28 Double_t nSigmaMax = 3.,
29 Bool_t rejectOutside = kTRUE);
30
31 AliRsnCutPIDTPC(const AliRsnCutPIDTPC& copy);
32 AliRsnCutPIDTPC& operator=(const AliRsnCutPIDTPC& copy);
33 virtual ~AliRsnCutPIDTPC() { }
34
c865cb1d 35 AliESDpid* ESDpid() {return fESDpid;}
36 AliAODpidUtil* AODpid() {return fAODpid;}
2a1c7696 37
38 void SetRejectOutside(Bool_t yn = kTRUE) {fRejectOutside = yn;}
39 void SetMomentumRange(Double_t min, Double_t max) {fMomMin = min; fMomMax = max;}
40 void SetNSigmaRange(Double_t min, Double_t max) {fMinD = min; fMaxD = max;}
41 void SetRefType(EPARTYPE type) {fRefType = type;}
b63357a0 42 void SetBBParam(const Double_t *p) {SetBBParam(p[0], p[1], p[2], p[3], p[4]);}
2a1c7696 43 void SetBBParam(Double_t p0, Double_t p1, Double_t p2, Double_t p3, Double_t p4);
44
2a1c7696 45 virtual Bool_t IsSelected(TObject *object);
46 virtual void Print(const Option_t *option = "") const;
47
48private:
49
c865cb1d 50 Bool_t fRejectOutside; // choose if tracks outside momentum range are rejected or not
51 Double_t fMomMin; // min p in range where this cut is checked
52 Double_t fMomMax; // max p in range where this cut is checked
53 EPARTYPE fRefType; // particle type for which PID is checked
54 AliESDpid *fESDpid; //! ESD PID object
55 AliAODpidUtil *fAODpid; //! AOD PID object
56 Double_t fBB[5]; // Bethe-Bloch parameters
57
2a1c7696 58
59 ClassDef(AliRsnCutPIDTPC, 1)
659ef4f0 60};
61
62#endif