Fixed grep syntax on OS X in the Analysis Plugin
[u/mrichter/AliRoot.git] / ANALYSIS / AliESDtrackCuts.h
CommitLineData
73318471 1//
2// Class for handling of ESD track cuts.
3//
4// The class manages a number of track quality cuts, a
5// track-to-vertex cut and a number of kinematic cuts. Two methods
6// can be used to figure out if an ESD track survives the cuts:
7// AcceptTrack which takes a single AliESDtrack as argument and
524916f0 8// returns kTRUE/kFALSE or GetAcceptedTracks which takes an AliESDEvent
73318471 9// object and returns an TObjArray (of AliESDtracks) with the tracks
10// in the ESD that survived the cuts.
11//
12//
524916f0 13// TODO:
73318471 14// - add functionality to save and load cuts
73318471 15// - add histograms for kinematic cut variables?
16// - upper and lower cuts for all (non-boolean) cuts
17// - update print method
73318471 18// - put comments to each variable
19//
20
21#ifndef ALIESDTRACKCUTS_H
22#define ALIESDTRACKCUTS_H
23
f4e7aa32 24#include <TString.h>
25
73318471 26#include "AliAnalysisCuts.h"
27
73318471 28class AliESDEvent;
29class AliESDtrack;
30class AliLog;
31class TTree;
d95684c0 32class TH1;
33class TH1F;
34class TH2F;
35class TF1;
36class TCollection;
f328399b 37class TFormula;
73318471 38
39class AliESDtrackCuts : public AliAnalysisCuts
40{
41public:
94c06b89 42 enum ITSClusterRequirement { kOff = 0, kNone, kAny, kFirst, kOnlyFirst, kSecond, kOnlySecond, kBoth };
43 enum Detector { kSPD = 0, kSDD, kSSD };
2c32e4e4 44 enum ITSULayers { kITSU012 = 0, kITSU34, kITSU56 };
a61ab805 45 enum MultEstTrackCuts { kMultEstTrackCutGlobal = 0, kMultEstTrackCutITSSA, kMultEstTrackCutDCAwSPD, kMultEstTrackCutDCAwoSPD, kNMultEstTrackCuts /* this must always be the last */};
46 enum MultEstTrackType { kTrackletsITSTPC = 0, kTrackletsITSSA, kTracklets };
4c3dc2a0 47 enum VertexType { kVertexTracks = 0x1, kVertexSPD = 0x2, kVertexTPC = 0x4 };
94c06b89 48
73318471 49 AliESDtrackCuts(const Char_t* name = "AliESDtrackCuts", const Char_t* title = "");
50 virtual ~AliESDtrackCuts();
36853ddd 51
0c6c629b 52 virtual Bool_t IsSelected(TObject* obj)
9eeae5d5 53 {return AcceptTrack((AliESDtrack*)obj);}
0c6c629b 54 virtual Bool_t IsSelected(TList* /*list*/) {return kTRUE;}
36853ddd 55
0ecbfc1b 56 Bool_t AcceptTrack(const AliESDtrack* esdTrack);
4c3dc2a0 57 TObjArray* GetAcceptedTracks(const AliESDEvent* esd, Bool_t bTPC = kFALSE);
f7ce7a37 58 Int_t CountAcceptedTracks(const AliESDEvent* const esd);
1bf80d20 59
f7ce7a37 60 static Int_t GetReferenceMultiplicity(const AliESDEvent* esd, Bool_t tpcOnly);
a61ab805 61 static Int_t GetReferenceMultiplicity(const AliESDEvent* esd, MultEstTrackType trackType = kTrackletsITSTPC, Float_t etaRange = 0.5);
62 static AliESDtrackCuts* GetMultEstTrackCuts(MultEstTrackCuts cut);
73318471 63
4fd6a75d 64 static AliESDtrack* GetTPCOnlyTrack(const AliESDEvent* esd, Int_t iTrack);
1bf80d20 65
66 // Standard cut definitions
ecd4e3ba 67 static AliESDtrackCuts* GetStandardTPCOnlyTrackCuts();
68 static AliESDtrackCuts* GetStandardITSTPCTrackCuts2009(Bool_t selPrimaries=kTRUE);
07b1b131 69 static AliESDtrackCuts* GetStandardITSTPCTrackCuts2010(Bool_t selPrimaries=kTRUE, Int_t clusterCut=0);
1e01a1ac 70 static AliESDtrackCuts* GetStandardITSTPCTrackCuts2011(Bool_t selPrimaries=kTRUE, Int_t clusterCut=1);
ecd4e3ba 71 static AliESDtrackCuts* GetStandardITSSATrackCuts2009(Bool_t selPrimaries=kTRUE, Bool_t useForPid=kTRUE);
72 static AliESDtrackCuts* GetStandardITSSATrackCuts2010(Bool_t selPrimaries=kTRUE, Bool_t useForPid=kTRUE);
9023d7ac 73 static AliESDtrackCuts* GetStandardITSSATrackCutsPbPb2010(Bool_t selPrimaries=kTRUE, Bool_t useForPid=kTRUE);
ecd4e3ba 74 static AliESDtrackCuts* GetStandardITSPureSATrackCuts2009(Bool_t selPrimaries=kTRUE, Bool_t useForPid=kTRUE);
75 static AliESDtrackCuts* GetStandardITSPureSATrackCuts2010(Bool_t selPrimaries=kTRUE, Bool_t useForPid=kTRUE);
28348fb4 76 // Standard cuts for daughter tracks
77 static AliESDtrackCuts* GetStandardV0DaughterCuts();
524916f0 78
73318471 79 virtual Long64_t Merge(TCollection* list);
80 virtual void Copy(TObject &c) const;
81 AliESDtrackCuts(const AliESDtrackCuts& pd); // Copy Constructor
82 AliESDtrackCuts &operator=(const AliESDtrackCuts &c);
83
84 //######################################################
85 // track quality cut setters
86 void SetMinNClustersTPC(Int_t min=-1) {fCutMinNClusterTPC=min;}
c11bb29c 87 void SetMinNClustersTPCPtDep(TFormula *f1=0x0, Float_t ptmax=0.);
73318471 88 void SetMinNClustersITS(Int_t min=-1) {fCutMinNClusterITS=min;}
07b1b131 89 void SetMinNCrossedRowsTPC(Float_t min=-1) { fCutMinNCrossedRowsTPC=min;}
90 void SetMinRatioCrossedRowsOverFindableClustersTPC(Float_t min = -1) { fCutMinRatioCrossedRowsOverFindableClustersTPC=min;}
4d0b5742 91 void SetMinLengthActiveVolumeTPC(Float_t min = 120.) {fCutMinLengthActiveVolumeTPC=min;}
94c06b89 92 void SetClusterRequirementITS(Detector det, ITSClusterRequirement req = kOff) { fCutClusterRequirementITS[det] = req; }
2c32e4e4 93 void SetClusterRequirementITS(ITSULayers det, ITSClusterRequirement req = kOff) { fCutClusterRequirementITS[det] = req; }
73318471 94 void SetMaxChi2PerClusterTPC(Float_t max=1e10) {fCutMaxChi2PerClusterTPC=max;}
95 void SetMaxChi2PerClusterITS(Float_t max=1e10) {fCutMaxChi2PerClusterITS=max;}
4c3dc2a0 96 void SetMaxChi2TPCConstrainedGlobal(Float_t max=1e10) {fCutMaxChi2TPCConstrainedVsGlobal = max; }
97 void SetMaxChi2TPCConstrainedGlobalVertexType(Int_t vertexType = kVertexTracks | kVertexSPD) { fCutMaxChi2TPCConstrainedVsGlobalVertexType = vertexType; }
9023d7ac 98 void SetMaxNOfMissingITSPoints(Int_t max=6) {fCutMaxMissingITSPoints=max;}
73318471 99 void SetRequireTPCRefit(Bool_t b=kFALSE) {fCutRequireTPCRefit=b;}
a86cf7f4 100 void SetRequireTPCStandAlone(Bool_t b=kFALSE) {fCutRequireTPCStandAlone=b;}
73318471 101 void SetRequireITSRefit(Bool_t b=kFALSE) {fCutRequireITSRefit=b;}
0274b76f 102 void SetRequireITSPid(Bool_t b=kFALSE) {fCutRequireITSPid=b;}
103 void SetRequireITSStandAlone(Bool_t b=kFALSE) {fCutRequireITSStandAlone = b;}
104 void SetRequireITSPureStandAlone(Bool_t b=kFALSE){fCutRequireITSpureSA = b;}
105
106
3128582b 107 void SetAcceptKinkDaughters(Bool_t b=kTRUE) {fCutAcceptKinkDaughters=b;}
108 void SetAcceptSharedTPCClusters(Bool_t b=kTRUE){fCutAcceptSharedTPCClusters=b;}
109 void SetMaxFractionSharedTPCClusters(Float_t max=1e10) {fCutMaxFractionSharedTPCClusters=max;}
73318471 110 void SetMaxCovDiagonalElements(Float_t c1=1e10, Float_t c2=1e10, Float_t c3=1e10, Float_t c4=1e10, Float_t c5=1e10)
111 {fCutMaxC11=c1; fCutMaxC22=c2; fCutMaxC33=c3; fCutMaxC44=c4; fCutMaxC55=c5;}
025fb458 112 void SetMaxRel1PtUncertainty(Float_t max=1e10) {fCutMaxRel1PtUncertainty=max;}
73318471 113
07b1b131 114
73318471 115 // track to vertex cut setters
610e91ac 116 void SetMaxNsigmaToVertex(Float_t sigma=1e10) {fCutNsigmaToVertex = sigma; SetRequireSigmaToVertex(kTRUE);}
29387958 117 void SetRequireSigmaToVertex(Bool_t b=kTRUE) {fCutSigmaToVertexRequired = b;}
133a5e00 118 void SetMaxDCAToVertexXY(Float_t dist=1e10) {fCutMaxDCAToVertexXY = dist;}
119 void SetMaxDCAToVertexZ(Float_t dist=1e10) {fCutMaxDCAToVertexZ = dist;}
120 void SetMinDCAToVertexXY(Float_t dist=0.) {fCutMinDCAToVertexXY = dist;}
121 void SetMinDCAToVertexZ(Float_t dist=0.) {fCutMinDCAToVertexZ = dist;}
f328399b 122 void SetMaxDCAToVertexXYPtDep(const char *dist="");
123 void SetMaxDCAToVertexZPtDep(const char *dist="");
124 void SetMinDCAToVertexXYPtDep(const char *dist="");
125 void SetMinDCAToVertexZPtDep(const char *dist="");
86f0e195 126 void SetDCAToVertex2D(Bool_t b=kFALSE) {fCutDCAToVertex2D = b;}
73318471 127
f4e7aa32 128
4d0b5742 129 // getters
5ce43eaf 130 Int_t GetMinNClusterTPC() const { return fCutMinNClusterTPC;}
62322ca9 131 Float_t GetMinNCrossedRowsTPC() const { return fCutMinNCrossedRowsTPC;}
132 Float_t GetMinRatioCrossedRowsOverFindableClustersTPC() const { return fCutMinRatioCrossedRowsOverFindableClustersTPC;}
4d0b5742 133 Float_t GetMinLengthActiveVolumeTPC() const { return fCutMinLengthActiveVolumeTPC;}
5ce43eaf 134 Int_t GetMinNClustersITS() const { return fCutMinNClusterITS;}
c11bb29c 135 TFormula *GetMinNClustersTPCPtDep() const { return f1CutMinNClustersTPCPtDep;}
94c06b89 136 ITSClusterRequirement GetClusterRequirementITS(Detector det) const { return fCutClusterRequirementITS[det]; }
2c32e4e4 137 ITSClusterRequirement GetClusterRequirementITS(ITSULayers det) const { return fCutClusterRequirementITS[det]; }
5ce43eaf 138 Float_t GetMaxChi2PerClusterTPC() const { return fCutMaxChi2PerClusterTPC;}
139 Float_t GetMaxChi2PerClusterITS() const { return fCutMaxChi2PerClusterITS;}
4c3dc2a0 140 Float_t GetMaxChi2TPCConstrainedGlobal() const { return fCutMaxChi2TPCConstrainedVsGlobal; }
141 Int_t GetMaxChi2TPCConstrainedGlobalVertexType() const { return fCutMaxChi2TPCConstrainedVsGlobalVertexType; }
9023d7ac 142 Int_t GetMaxNOfMissingITSPoints() const { return fCutMaxMissingITSPoints;}
5ce43eaf 143 Bool_t GetRequireTPCRefit() const { return fCutRequireTPCRefit;}
a86cf7f4 144 Bool_t GetRequireTPCStandAlone() const { return fCutRequireTPCStandAlone;}
5ce43eaf 145 Bool_t GetRequireITSRefit() const { return fCutRequireITSRefit;}
d95684c0 146 Bool_t GetRequireITSStandAlone() const { return fCutRequireITSStandAlone; }
58c4f3fb 147 Bool_t GetAcceptKinkDaughters() const { return fCutAcceptKinkDaughters;}
3128582b 148 Bool_t GetAcceptSharedTPCClusters() const {return fCutAcceptSharedTPCClusters;}
149 Float_t GetMaxFractionSharedTPCClusters() const {return fCutMaxFractionSharedTPCClusters;}
f690bf48 150 void GetMaxCovDiagonalElements(Float_t& c1, Float_t& c2, Float_t& c3, Float_t& c4, Float_t& c5) const
5ce43eaf 151 {c1 = fCutMaxC11; c2 = fCutMaxC22; c3 = fCutMaxC33; c4 = fCutMaxC44; c5 = fCutMaxC55;}
025fb458 152 Float_t GetMaxRel1PtUncertainty() const { return fCutMaxRel1PtUncertainty;}
94c06b89 153 Float_t GetMaxNsigmaToVertex() const { return fCutNsigmaToVertex;}
133a5e00 154 Float_t GetMaxDCAToVertexXY() const { return fCutMaxDCAToVertexXY;}
155 Float_t GetMaxDCAToVertexZ() const { return fCutMaxDCAToVertexZ;}
156 Float_t GetMinDCAToVertexXY() const { return fCutMinDCAToVertexXY;}
157 Float_t GetMinDCAToVertexZ() const { return fCutMinDCAToVertexZ;}
f4e7aa32 158 const char* GetMaxDCAToVertexXYPtDep() const { return fCutMaxDCAToVertexXYPtDep;}
159 const char* GetMaxDCAToVertexZPtDep() const { return fCutMaxDCAToVertexZPtDep;}
160 const char* GetMinDCAToVertexXYPtDep() const { return fCutMinDCAToVertexXYPtDep;}
161 const char* GetMinDCAToVertexZPtDep() const { return fCutMinDCAToVertexZPtDep;}
86f0e195 162 Bool_t GetDCAToVertex2D() const { return fCutDCAToVertex2D;}
5ce43eaf 163 Bool_t GetRequireSigmaToVertex( ) const { return fCutSigmaToVertexRequired;}
5ac99092 164
1bf80d20 165 void GetPRange(Float_t& r1, Float_t& r2) const {r1=fPMin; r2=fPMax;}
166 void GetPtRange(Float_t& r1, Float_t& r2) const {r1=fPtMin; r2=fPtMax;}
167 void GetPxRange(Float_t& r1, Float_t& r2) const {r1=fPxMin; r2=fPxMax;}
168 void GetPyRange(Float_t& r1, Float_t& r2) const {r1=fPyMin; r2=fPyMax;}
169 void GetPzRange(Float_t& r1, Float_t& r2) const {r1=fPzMin; r2=fPzMax;}
170 void GetEtaRange(Float_t& r1, Float_t& r2) const {r1=fEtaMin; r2=fEtaMax;}
171 void GetRapRange(Float_t& r1, Float_t& r2) const {r1=fRapMin; r2=fRapMax;}
74687314 172
73318471 173 // track kinmatic cut setters
174 void SetPRange(Float_t r1=0, Float_t r2=1e10) {fPMin=r1; fPMax=r2;}
175 void SetPtRange(Float_t r1=0, Float_t r2=1e10) {fPtMin=r1; fPtMax=r2;}
176 void SetPxRange(Float_t r1=-1e10, Float_t r2=1e10) {fPxMin=r1; fPxMax=r2;}
177 void SetPyRange(Float_t r1=-1e10, Float_t r2=1e10) {fPyMin=r1; fPyMax=r2;}
178 void SetPzRange(Float_t r1=-1e10, Float_t r2=1e10) {fPzMin=r1; fPzMax=r2;}
179 void SetEtaRange(Float_t r1=-1e10, Float_t r2=1e10) {fEtaMin=r1; fEtaMax=r2;}
180 void SetRapRange(Float_t r1=-1e10, Float_t r2=1e10) {fRapMin=r1; fRapMax=r2;}
181
182 //######################################################
183 void SetHistogramsOn(Bool_t b=kFALSE) {fHistogramsOn = b;}
184 void DefineHistograms(Int_t color=1);
185 virtual Bool_t LoadHistograms(const Char_t* dir = 0);
186 void SaveHistograms(const Char_t* dir = 0);
187 void DrawHistograms();
188
4c3dc2a0 189 static Float_t GetSigmaToVertex(const AliESDtrack* const esdTrack);
73318471 190
191 static void EnableNeededBranches(TTree* tree);
192
193 // void SaveQualityCuts(Char_t* file)
194 // void LoadQualityCuts(Char_t* file)
195
9023d7ac 196 TH1F* GetDZNormalized(Int_t i) const { return fhDZNormalized[i]; }
197 TH1F* GetNClustersTPC(Int_t i) const { return fhNClustersTPC[i]; }
198 TH1F* GetPtHist(Int_t i) const { return fhPt[i]; }
08e4d7b0 199
ab9f5531 200 // TOF cuts
08e4d7b0 201 void SetFlagCutTOFdistance(Bool_t flagTOFcut) { fFlagCutTOFdistance = flagTOFcut;}
202 Bool_t GetFlagCutTOFdistance() const { return fFlagCutTOFdistance;}
203 void SetCutTOFdistance(Float_t cut) { fCutTOFdistance = cut;}
204 Float_t GetCutTOFdistance() const { return fCutTOFdistance;}
ab9f5531 205 void SetRequireTOFout(Bool_t b = kFALSE) {fCutRequireTOFout = b;}
206 void SetRequireStandardTOFmatchCuts();
73318471 207
208protected:
209 void Init(); // sets everything to 0
94c06b89 210 Bool_t CheckITSClusterRequirement(ITSClusterRequirement req, Bool_t clusterL1, Bool_t clusterL2);
f4e7aa32 211 Bool_t CheckPtDepDCA(TString dist,Bool_t print=kFALSE) const;
212 void SetPtDepDCACuts(Double_t pt);
213
4d0b5742 214 enum { kNCuts = 43 };
73318471 215
216 //######################################################
217 // esd track quality cuts
218 static const Char_t* fgkCutNames[kNCuts]; //! names of cuts (for internal use)
a61ab805 219 static AliESDtrackCuts* fgMultEstTrackCuts[kNMultEstTrackCuts]; //! track cuts used for the multiplicity estimate
73318471 220
221 Int_t fCutMinNClusterTPC; // min number of tpc clusters
222 Int_t fCutMinNClusterITS; // min number of its clusters
07b1b131 223 Float_t fCutMinNCrossedRowsTPC; // min number of tpc crossed rows
224 Float_t fCutMinRatioCrossedRowsOverFindableClustersTPC; // min ratio crossed rows / findable clusters
c11bb29c 225 TFormula *f1CutMinNClustersTPCPtDep; // pt dependent tpc clusters cut
4d0b5742 226 Float_t fCutMaxPtDepNClustersTPC; // maximum pt for pt dependend TPC cluster cut. For pt=>ptmax NClusterMin = f1CutMinNClustersTPCPtDep->Eval(fCutMaxPtDepNClustersTPC).
227 Float_t fCutMinLengthActiveVolumeTPC; // mininum length (in cm) over which the track is sampled in the active volume of the TPC (outside boundaries)
07b1b131 228
94c06b89 229 ITSClusterRequirement fCutClusterRequirementITS[3]; // detailed ITS cluster requirements for (SPD, SDD, SSD)
73318471 230
231 Float_t fCutMaxChi2PerClusterTPC; // max tpc fit chi2 per tpc cluster
232 Float_t fCutMaxChi2PerClusterITS; // max its fit chi2 per its cluster
4c3dc2a0 233 Float_t fCutMaxChi2TPCConstrainedVsGlobal; // max chi2 TPC track constrained with vtx vs. global track
234 Int_t fCutMaxChi2TPCConstrainedVsGlobalVertexType; // vertex type for max chi2 TPC track constrained with vtx vs. global track (can be configured to accept several vertex types)
9023d7ac 235 Int_t fCutMaxMissingITSPoints; // max n. of missing ITS points
73318471 236
237 Float_t fCutMaxC11; // max cov. matrix diag. elements (res. y^2)
238 Float_t fCutMaxC22; // max cov. matrix diag. elements (res. z^2)
239 Float_t fCutMaxC33; // max cov. matrix diag. elements (res. sin(phi)^2)
240 Float_t fCutMaxC44; // max cov. matrix diag. elements (res. tan(theta_dip)^2)
241 Float_t fCutMaxC55; // max cov. matrix diag. elements (res. 1/pt^2)
242
025fb458 243 Float_t fCutMaxRel1PtUncertainty; // max relative uncertainty of 1/pt
244
73318471 245 Bool_t fCutAcceptKinkDaughters; // accepting kink daughters?
3128582b 246 Bool_t fCutAcceptSharedTPCClusters;// accepting shared clusters in TPC?
247 Float_t fCutMaxFractionSharedTPCClusters; //Maximum fraction of shared clusters in TPC
73318471 248 Bool_t fCutRequireTPCRefit; // require TPC refit
a86cf7f4 249 Bool_t fCutRequireTPCStandAlone; // require TPC standalone tracks
73318471 250 Bool_t fCutRequireITSRefit; // require ITS refit
ecd4e3ba 251 Bool_t fCutRequireITSPid; // require ITS pid
0274b76f 252 Bool_t fCutRequireITSStandAlone; // require ITS standalone tracks (remove pure SA)
253 Bool_t fCutRequireITSpureSA; // require ITS pure standalone tracks (found using all ITS clusters)
73318471 254
07b1b131 255
73318471 256 // track to vertex cut
257 Float_t fCutNsigmaToVertex; // max number of estimated sigma from track-to-vertex
258 Bool_t fCutSigmaToVertexRequired; // cut track if sigma from track-to-vertex could not be calculated
133a5e00 259 Float_t fCutMaxDCAToVertexXY; // track-to-vertex cut in max absolute distance in xy-plane
260 Float_t fCutMaxDCAToVertexZ; // track-to-vertex cut in max absolute distance in z-plane
261 Float_t fCutMinDCAToVertexXY; // track-to-vertex cut on min absolute distance in xy-plane
262 Float_t fCutMinDCAToVertexZ; // track-to-vertex cut on min absolute distance in z-plane
f328399b 263 //
f4e7aa32 264 TString fCutMaxDCAToVertexXYPtDep; // pt-dep track-to-vertex cut in max absolute distance in xy-plane
265 TString fCutMaxDCAToVertexZPtDep; // pt-dep track-to-vertex cut in max absolute distance in z-plane
266 TString fCutMinDCAToVertexXYPtDep; // pt-dep track-to-vertex cut on min absolute distance in xy-plane
267 TString fCutMinDCAToVertexZPtDep; // pt-dep track-to-vertex cut on min absolute distance in z-plane
f328399b 268
269 // only internal use, set via strings above
270 TFormula *f1CutMaxDCAToVertexXYPtDep; // pt-dep track-to-vertex cut in max absolute distance in xy-plane
271 TFormula *f1CutMaxDCAToVertexZPtDep; // pt-dep track-to-vertex cut in max absolute distance in z-plane
272 TFormula *f1CutMinDCAToVertexXYPtDep; // pt-dep track-to-vertex cut on min absolute distance in xy-plane
273 TFormula *f1CutMinDCAToVertexZPtDep; // pt-dep track-to-vertex cut on min absolute distance in z-plane
274
133a5e00 275 Bool_t fCutDCAToVertex2D; // if true a 2D DCA cut is made. Tracks are accepted if sqrt((DCAXY / fCutMaxDCAToVertexXY)^2 + (DCAZ / fCutMaxDCAToVertexZ)^2) < 1 AND sqrt((DCAXY / fCutMinDCAToVertexXY)^2 + (DCAZ / fCutMinDCAToVertexZ)^2) > 1
73318471 276
277 // esd kinematics cuts
278 Float_t fPMin, fPMax; // definition of the range of the P
279 Float_t fPtMin, fPtMax; // definition of the range of the Pt
280 Float_t fPxMin, fPxMax; // definition of the range of the Px
281 Float_t fPyMin, fPyMax; // definition of the range of the Py
282 Float_t fPzMin, fPzMax; // definition of the range of the Pz
283 Float_t fEtaMin, fEtaMax; // definition of the range of the eta
284 Float_t fRapMin, fRapMax; // definition of the range of the y
285
ab9f5531 286 Bool_t fCutRequireTOFout; // require TOF out
08e4d7b0 287 Bool_t fFlagCutTOFdistance; // cut on TOFdistance? --> yes by default!
288 Float_t fCutTOFdistance; // value of the cut on TOFdistance
289 static Char_t fgBeamTypeFlag; // -1 --> no check done on the beam type yet
290 // 0 --> beam type != "A-A"
291 // 1 --> beam type == "A-A"
292
73318471 293 //######################################################
294 // diagnostics histograms
295 Bool_t fHistogramsOn; // histograms on/off
296
297 TH1F* fhNClustersITS[2]; //->
298 TH1F* fhNClustersTPC[2]; //->
9023d7ac 299 TH1F* fhNSharedClustersTPC[2]; //->
07b1b131 300 TH1F* fhNCrossedRowsTPC[2]; //->
301 TH1F* fhRatioCrossedRowsOverFindableClustersTPC[2]; // ->
73318471 302
303 TH1F* fhChi2PerClusterITS[2]; //->
304 TH1F* fhChi2PerClusterTPC[2]; //->
4c3dc2a0 305 TH1F* fhChi2TPCConstrainedVsGlobal[2]; //->
2a35259b 306 TH1F* fhNClustersForITSPID[2]; //-> number of points in SDD+SSD (ITS PID selection)
307 TH1F* fhNMissingITSPoints[2]; //-> number of missing ITS points
73318471 308
309 TH1F* fhC11[2]; //->
310 TH1F* fhC22[2]; //->
311 TH1F* fhC33[2]; //->
312 TH1F* fhC44[2]; //->
313 TH1F* fhC55[2]; //->
314
025fb458 315 TH1F* fhRel1PtUncertainty[2]; //-> rel. uncertainty of 1/pt
316
73318471 317 TH1F* fhDXY[2]; //->
318 TH1F* fhDZ[2]; //->
86f0e195 319 TH1F* fhDXYDZ[2]; //-> absolute distance sqrt(dxy**2 + dz**2) to vertex; if 2D cut is set, normalized to given values
73318471 320 TH2F* fhDXYvsDZ[2]; //->
321
322 TH1F* fhDXYNormalized[2]; //->
323 TH1F* fhDZNormalized[2]; //->
324 TH2F* fhDXYvsDZNormalized[2]; //->
325 TH1F* fhNSigmaToVertex[2]; //->
524916f0 326
73318471 327 TH1F* fhPt[2]; //-> pt of esd tracks
328 TH1F* fhEta[2]; //-> eta of esd tracks
329
330 TF1* ffDTheoretical; //-> theoretical distance to vertex normalized (2d gauss)
331
332 TH1F* fhCutStatistics; //-> statistics of what cuts the tracks did not survive
333 TH2F* fhCutCorrelation; //-> 2d statistics plot
334
08e4d7b0 335 TH2F* fhTOFdistance[2]; //-> TOF signal distance dx vs dz
336
293cf6dc 337 ClassDef(AliESDtrackCuts, 21)
73318471 338};
339
340
341#endif