Usage of multi-vertexer to tag pileup events in D meson analysis (Zaida)
[u/mrichter/AliRoot.git] / PWGHF / vertexingHF / AliRDHFCuts.h
CommitLineData
0c22e2ac 1#ifndef ALIRDHFCUTS_H
2#define ALIRDHFCUTS_H
3/* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
af5d687e 6/* $Id$ */
7
0c22e2ac 8//***********************************************************
9// Class AliRDHFCuts
10// base class for cuts on AOD reconstructed heavy-flavour decays
11// Author: A.Dainese, andrea.dainese@pd.infn.it
12//***********************************************************
13
14#include <TString.h>
15
16#include "AliAnalysisCuts.h"
17#include "AliESDtrackCuts.h"
18#include "AliAODPidHF.h"
19#include "AliAODEvent.h"
20#include "AliVEvent.h"
21
22class AliAODTrack;
23class AliAODRecoDecayHF;
24class AliESDVertex;
09bfd399 25class TF1;
26class TFormula;
0c22e2ac 27
28class AliRDHFCuts : public AliAnalysisCuts
29{
30 public:
31
5d3cf93b 32 enum ECentrality {kCentOff,kCentV0M,kCentTRK,kCentTKL,kCentCL1,kCentZNA,kCentZPA,kCentV0A,kCentInvalid};
0c22e2ac 33 enum ESelLevel {kAll,kTracks,kPID,kCandidate};
5d3cf93b 34 enum EPileup {kNoPileupSelection,kRejectPileupEvent,kRejectTracksFromPileupVertex,kRejectMVPileupEvent};
0c22e2ac 35 enum ESele {kD0toKpiCuts,kD0toKpiPID,kD0fromDstarCuts,kD0fromDstarPID,kDplusCuts,kDplusPID,kDsCuts,kDsPID,kLcCuts,kLcPID,kDstarCuts,kDstarPID};
5d3cf93b 36 enum ERejBits {kNotSelTrigger,kNoVertex,kTooFewVtxContrib,kZVtxOutFid,kPileup,kOutsideCentrality,kPhysicsSelection,kBadSPDVertex,kZVtxSPDOutFid,kCentralityFlattening,kBadTrackV0Correl};
34595b3c 37 enum EV0sel {kAllV0s = 0, kOnlyOfflineV0s = 1, kOnlyOnTheFlyV0s = 2};
38
0c22e2ac 39 AliRDHFCuts(const Char_t* name="RDHFCuts", const Char_t* title="");
40
41 virtual ~AliRDHFCuts();
42
43 AliRDHFCuts(const AliRDHFCuts& source);
44 AliRDHFCuts& operator=(const AliRDHFCuts& source);
45
46 virtual void SetStandardCutsPP2010() {return;}
47 virtual void SetStandardCutsPbPb2010() {return;}
48 virtual void SetStandardCutsPbPb2011() {return;}
49
50
51 void SetMinCentrality(Float_t minCentrality=0.) {fMinCentrality=minCentrality;}
52 void SetMaxCentrality(Float_t maxCentrality=100.) {fMaxCentrality=maxCentrality;}
53 void SetMinVtxType(Int_t type=3) {fMinVtxType=type;}
5aa726b3 54 void SetUseEventsWithOnlySPDVertex(Bool_t flag=kTRUE){
55 if(flag) fMinVtxType=1;
56 else fMinVtxType=3;
57 }
0c22e2ac 58 void SetMinVtxContr(Int_t contr=1) {fMinVtxContr=contr;}
59 void SetMaxVtxRdChi2(Float_t chi2=1e6) {fMaxVtxRedChi2=chi2;}
60 void SetMaxVtxZ(Float_t z=1e6) {fMaxVtxZ=z;}
61 void SetMinSPDMultiplicity(Int_t mult=0) {fMinSPDMultiplicity=mult;}
62
63 void SetTriggerMask(ULong64_t mask=0) {fTriggerMask=mask;}
95699898 64 void SetUseOnlyOneTrigger(Bool_t onlyOne) {fUseOnlyOneTrigger=onlyOne;}
65 ULong64_t GetTriggerMask() {return fTriggerMask;}
66 Bool_t GetUseOnlyOneTrigger() {return fUseOnlyOneTrigger;}
67
68 void SetUseAnyTrigger() {fTriggerMask=AliVEvent::kAny;}
0c22e2ac 69 void EnableMBTrigger(){
70 fTriggerMask|=AliVEvent::kMB;
71 fUseOnlyOneTrigger=kFALSE;
72 }
73 void ResetMaskAndEnableMBTrigger(){
74 fTriggerMask=AliVEvent::kMB;
75 fUseOnlyOneTrigger=kFALSE;
76 }
77 void SetUseMBTriggerExclusively(){
78 fTriggerMask=AliVEvent::kMB;
79 fUseOnlyOneTrigger=kTRUE;
80 }
81 void EnableCentralTrigger(){
82 fTriggerMask|=AliVEvent::kCentral;
83 fUseOnlyOneTrigger=kFALSE;
84 }
85 void ResetMaskAndEnableCentralTrigger(){
86 fTriggerMask=AliVEvent::kCentral;
87 fUseOnlyOneTrigger=kFALSE;
88 }
89 void SetUseCentralTriggerExclusively(){
90 fTriggerMask=AliVEvent::kCentral;
91 fUseOnlyOneTrigger=kTRUE;
92 }
93 void EnableSemiCentralTrigger(){
94 fTriggerMask|=AliVEvent::kSemiCentral;
95 fUseOnlyOneTrigger=kFALSE;
96 }
97 void ResetMaskAndEnableSemiCentralTrigger(){
98 fTriggerMask=AliVEvent::kSemiCentral;
99 fUseOnlyOneTrigger=kFALSE;
100 }
101 void SetUseSemiCentralTriggerExclusively(){
102 fTriggerMask=AliVEvent::kSemiCentral;
103 fUseOnlyOneTrigger=kTRUE;
104 }
105 void EnableEMCALTrigger(){
106 fTriggerMask|=(AliVEvent::kEMCEJE|AliVEvent::kEMCEGA);
107 fUseOnlyOneTrigger=kFALSE;
108 }
d3202a20 109 void ResetMaskAndEnableEMCALTrigger(){
0c22e2ac 110 fTriggerMask=(AliVEvent::kEMCEJE|AliVEvent::kEMCEGA);
111 fUseOnlyOneTrigger=kFALSE;
112 }
113 void SetUseEMCALTriggerExclusively(){
114 fTriggerMask=(AliVEvent::kEMCEJE|AliVEvent::kEMCEGA);
115 fUseOnlyOneTrigger=kTRUE;
116 }
95699898 117 //
118 // Setters (helpers) for pp 2012 data
119 void SetUseInt1TriggerExclusivelyPP2012(){
120 fTriggerMask=AliVEvent::kMB;
121 fTriggerClass[0]="CINT1";
122 fUseOnlyOneTrigger=kTRUE;
123 }
124 void SetUseInt7TriggerExclusivelyPP2012(){
125 fTriggerMask=AliVEvent::kINT7;
126 fTriggerClass[0]="CINT7";
127 fUseOnlyOneTrigger=kTRUE;
128 }
129 void SetUseInt8TriggerExclusivelyPP2012(){
130 fTriggerMask=AliVEvent::kINT8;
131 fTriggerClass[0]="CINT8";
132 fUseOnlyOneTrigger=kTRUE;
133 }
134 void SetUseEMCAL7TriggerExclusivelyPP2012(){
135 fTriggerMask=AliVEvent::kEMC7;
136 fTriggerClass[0]="CEMC7";
137 fUseOnlyOneTrigger=kTRUE;
138 }
139 void SetUseEMCAL8TriggerExclusivelyPP2012(){
140 fTriggerMask=AliVEvent::kEMC8;
141 fTriggerClass[0]="CEMC8";
142 fUseOnlyOneTrigger=kTRUE;
143 }
144 void SetUseEMCALJET7TriggerExclusivelyPP2012(){
145 fTriggerMask=AliVEvent::kEMCEJE;
146 fTriggerClass[0]="CEMC7EJE";
147 fUseOnlyOneTrigger=kTRUE;
148 }
149 void SetUseEMCALJET8TriggerExclusivelyPP2012(){
150 fTriggerMask=AliVEvent::kEMCEJE;
151 fTriggerClass[0]="CEMC8EJE";
152 fUseOnlyOneTrigger=kTRUE;
153 }
154 void SetUseEMCALGA7TriggerExclusivelyPP2012(){
155 fTriggerMask=AliVEvent::kEMCEGA;
156 fTriggerClass[0]="CEMC7EGA";
157 fUseOnlyOneTrigger=kTRUE;
158 }
159 void SetUseEMCALGA8TriggerExclusivelyPP2012(){
160 fTriggerMask=AliVEvent::kEMCEGA;
161 fTriggerClass[0]="CEMC8EGA";
162 fUseOnlyOneTrigger=kTRUE;
163 }
164 void SetUseSPI7TriggerExclusivelyPP2012(){
165 fTriggerMask=AliVEvent::kSPI7;
166 fTriggerClass[0]="CSPI7";
167 fUseOnlyOneTrigger=kTRUE;
168 }
169 void SetUseSPI8TriggerExclusivelyPP2012(){
170 fTriggerMask=AliVEvent::kSPI;
171 fTriggerClass[0]="CSPI8";
172 fUseOnlyOneTrigger=kTRUE;
173 }
174 void SetUseHighMult7TriggerExclusivelyPP2012(){
175 fTriggerMask=AliVEvent::kHighMult;
176 fTriggerClass[0]="CSHM7";
177 fUseOnlyOneTrigger=kTRUE;
178 }
179 void SetUseHighMult8TriggerExclusivelyPP2012(){
180 fTriggerMask=AliVEvent::kHighMult;
181 fTriggerClass[0]="CSHM8";
182 fUseOnlyOneTrigger=kTRUE;
183 }
8da55fd2 184
185 void SetMaxDifferenceTRKV0Centraltity(Double_t maxd=5.) {fMaxDiffTRKV0Centr=maxd;}
186 void SetNotUseCutOnTRKVsV0Centraltity() {fMaxDiffTRKV0Centr=-1.;}
851d1cae 187 void SetRemoveTrackletOutliers(Bool_t opt) {fRemoveTrackletOutliers=opt;}
4346ffd2 188 void SetCutOnzVertexSPD(Int_t opt) {
189 if(opt>=0 && opt<=2) fCutOnzVertexSPD=opt;
190 else AliError("Wrong option for cut on zVertexSPD");
191 }
68c15f66 192 void SetTriggerClass(TString trclass0, TString trclass1="") {fTriggerClass[0]=trclass0; fTriggerClass[1]=trclass1;}
851d1cae 193 void ApplySPDDeadPbPb2011(){fApplySPDDeadPbPb2011=kTRUE;}
0c22e2ac 194 void SetVarsForOpt(Int_t nVars,Bool_t *forOpt);
195 void SetGlobalIndex(){fGlobalIndex=fnVars*fnPtBins;}
196 void SetGlobalIndex(Int_t nVars,Int_t nptBins){fnVars=nVars; fnPtBins=nptBins; SetGlobalIndex();}
197 void SetVarNames(Int_t nVars,TString *varNames,Bool_t *isUpperCut);
198 void SetPtBins(Int_t nPtBinLimits,Float_t *ptBinLimits);
199 void SetCuts(Int_t nVars,Int_t nPtBins,Float_t** cutsRD);
200 void SetCuts(Int_t glIndex, Float_t* cutsRDGlob);
201 void AddTrackCuts(const AliESDtrackCuts *cuts)
202 {delete fTrackCuts; fTrackCuts=new AliESDtrackCuts(*cuts); return;}
203 void SetUsePID(Bool_t flag=kTRUE) {fUsePID=flag; return;}
204 void SetUseAOD049(Bool_t flag=kTRUE) {fUseAOD049=flag; return;}
fdd5a897 205 void SetKinkRejection(Bool_t flag=kTRUE) {fKinkReject=flag; return;}
3e075b37 206 void SetUseTrackSelectionWithFilterBits(Bool_t flag=kTRUE){
207 fUseTrackSelectionWithFilterBits=flag; return;}
0c22e2ac 208 void SetUseCentrality(Int_t flag=1); // see enum below
209 void SetPidHF(AliAODPidHF* pidObj) {
210 if(fPidHF) delete fPidHF;
211 fPidHF=new AliAODPidHF(*pidObj);
212 }
213 void SetRemoveDaughtersFromPrim(Bool_t removeDaughtersPrim) {fRemoveDaughtersFromPrimary=removeDaughtersPrim;}
4bdc0315 214 void SetRecomputePrimaryVertex(Bool_t opt) {fRecomputePrimVertex=opt;}
0c22e2ac 215 void SetMinPtCandidate(Double_t ptCand=-1.) {fMinPtCand=ptCand; return;}
216 void SetMaxPtCandidate(Double_t ptCand=1000.) {fMaxPtCand=ptCand; return;}
af5d687e 217 void SetMaxRapidityCandidate(Double_t ycand) {fMaxRapidityCand=ycand; return;}
0c22e2ac 218 void SetOptPileup(Int_t opt=0){
219 // see enum below
220 fOptPileup=opt;
221 }
db0ff379 222 void SetHistoForCentralityFlattening(TH1F *h,Double_t minCentr,Double_t maxCentr,Double_t centrRef=0.,Int_t switchTRand=0);
0c22e2ac 223 void ConfigurePileupCuts(Int_t minContrib=3, Float_t minDz=0.6){
224 fMinContrPileup=minContrib;
225 fMinDzPileup=minDz;
226 }
09bfd399 227 void SetMinCrossedRowsTPCPtDep(const char *rows="");
228 void SetMinRatioClsOverCrossRowsTPC(Float_t ratio=0.) {fCutRatioClsOverCrossRowsTPC = ratio;}
229 void SetMinRatioSignalNOverCrossRowsTPC(Float_t ratio=0.) {fCutRatioSignalNOverCrossRowsTPC = ratio;}
0c22e2ac 230
231 AliAODPidHF* GetPidHF() const {return fPidHF;}
232 Float_t *GetPtBinLimits() const {return fPtBinLimits;}
233 Int_t GetNPtBins() const {return fnPtBins;}
234 Int_t GetNVars() const {return fnVars;}
235 TString *GetVarNames() const {return fVarNames;}
236 Bool_t *GetVarsForOpt() const {return fVarsForOpt;}
237 Int_t GetNVarsForOpt() const {return fnVarsForOpt;}
238 const Float_t *GetCuts() const {return fCutsRD;}
239 void GetCuts(Float_t**& cutsRD) const;
240 Float_t GetCutValue(Int_t iVar,Int_t iPtBin) const;
241 Double_t GetMaxVtxZ() const {return fMaxVtxZ;}
242 Float_t GetCentrality(AliAODEvent* aodEvent){return GetCentrality(aodEvent,(AliRDHFCuts::ECentrality)fUseCentrality);}
243 Float_t GetCentrality(AliAODEvent* aodEvent, AliRDHFCuts::ECentrality estimator);
244 Bool_t *GetIsUpperCut() const {return fIsUpperCut;}
245 AliESDtrackCuts *GetTrackCuts() const {return fTrackCuts;}
246 virtual AliESDtrackCuts *GetTrackCutsSoftPi() const {return 0;}
e7af8919 247 virtual AliESDtrackCuts *GetTrackCutsV0daughters() const {return 0;}
0c22e2ac 248 virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters) = 0;
249 virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters,AliAODEvent * /*aod*/)
250 {return GetCutVarsForOpt(d,vars,nvars,pdgdaughters);}
251 Int_t GetGlobalIndex(Int_t iVar,Int_t iPtBin) const;
252 void GetVarPtIndex(Int_t iGlob, Int_t& iVar, Int_t& iPtBin) const;
253 Bool_t GetIsUsePID() const {return fUsePID;}
254 Bool_t GetUseAOD049() const {return fUseAOD049;}
fdd5a897 255 Bool_t GetUseKinkRejection() const {return fKinkReject;}
5aa726b3 256 Bool_t GetUseEventsWithOnlySPDVertex() const{
257 if(fMinVtxType==1 || fMinVtxType==2) return kTRUE;
258 return kFALSE;
259 }
3e075b37 260 Bool_t GetUseTrackSelectionWithFilterBits() const{return fUseTrackSelectionWithFilterBits;}
0c22e2ac 261 Bool_t GetIsPrimaryWithoutDaughters() const {return fRemoveDaughtersFromPrimary;}
262 Bool_t GetOptPileUp() const {return fOptPileup;}
263 Int_t GetUseCentrality() const {return fUseCentrality;}
264 Float_t GetMinCentrality() const {return fMinCentrality;}
265 Float_t GetMaxCentrality() const {return fMaxCentrality;}
266 Double_t GetMinPtCandidate() const {return fMinPtCand;}
267 Double_t GetMaxPtCandidate() const {return fMaxPtCand;}
db0ff379 268 TH1F *GetHistoForCentralityFlattening(){return fHistCentrDistr;}
30399c33 269 void SetUseCentralityFlatteningInMC(Bool_t opt){fUseCentrFlatteningInMC=opt;}
09bfd399 270 const char* GetMinCrossedRowsTPCPtDep() const {return fCutMinCrossedRowsTPCPtDep;}
271 Float_t GetMinRatioClsOverCrossRowsTPC() const {return fCutRatioClsOverCrossRowsTPC;}
272 Float_t GetMinRatioSignalNOverCrossRowsTPC() const {return fCutRatioSignalNOverCrossRowsTPC;}
0c22e2ac 273 Bool_t IsSelected(TObject *obj) {return IsSelected(obj,AliRDHFCuts::kAll);}
274 Bool_t IsSelected(TList *list) {if(!list) return kTRUE; return kFALSE;}
275 Int_t IsEventSelectedInCentrality(AliVEvent *event);
db0ff379 276 Bool_t IsEventSelectedForCentrFlattening(Float_t centvalue);
0c22e2ac 277 Bool_t IsEventSelected(AliVEvent *event);
278 Bool_t AreDaughtersSelected(AliAODRecoDecayHF *rd) const;
279 Bool_t IsDaughterSelected(AliAODTrack *track,const AliESDVertex *primary,AliESDtrackCuts *cuts) const;
280 virtual Int_t IsSelectedPID(AliAODRecoDecayHF * /*rd*/) {return 1;}
0602cf99 281 void SetupPID(AliVEvent *event);
0c22e2ac 282
283 virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel) = 0;
284 virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent* /*aod*/)
285 {return IsSelected(obj,selectionLevel);}
286 Int_t PtBin(Double_t pt) const;
04b11915 287 virtual void PrintAll()const;
0c22e2ac 288 void PrintTrigger() const;
289
290 virtual Bool_t IsInFiducialAcceptance(Double_t /*pt*/,Double_t /*y*/) const {return kTRUE;}
291
292 void SetWhyRejection(Int_t why) {fWhyRejection=why; return;}
293 Int_t GetWhyRejection() const {return fWhyRejection;}
294 UInt_t GetEventRejectionBitMap() const {return fEvRejectionBits;}
295 Bool_t IsEventRejectedDueToTrigger() const {
296 return fEvRejectionBits&(1<<kNotSelTrigger);
297 }
298 Bool_t IsEventRejectedDueToNotRecoVertex() const {
299 return fEvRejectionBits&(1<<kNoVertex);
300 }
301 Bool_t IsEventRejectedDueToVertexContributors() const {
302 return fEvRejectionBits&(1<<kTooFewVtxContrib);
303 }
304 Bool_t IsEventRejectedDueToZVertexOutsideFiducialRegion() const {
305 return fEvRejectionBits&(1<<kZVtxOutFid);
306 }
5d3cf93b 307 Bool_t IsEventRejectedDueToPileup() const {
308 return fEvRejectionBits&(1<<kPileup);
0c22e2ac 309 }
310 Bool_t IsEventRejectedDueToCentrality() const {
311 return fEvRejectionBits&(1<<kOutsideCentrality);
312 }
af5d687e 313 Bool_t IsEventRejectedDueToCentralityFlattening() const {
314 return fEvRejectionBits&(1<<kCentralityFlattening);
315 }
8da55fd2 316 Bool_t IsEventRejectedDueToTRKV0CentralityCorrel() const {
317 return fEvRejectionBits&(1<<kBadTrackV0Correl);
318 }
0c22e2ac 319 Bool_t IsEventRejectedDuePhysicsSelection() const {
320 return fEvRejectionBits&(1<<kPhysicsSelection);
321 }
322
323
324 void SetFixRefs(Bool_t fix=kTRUE) {fFixRefs=fix; return;}
325 void SetUsePhysicsSelection(Bool_t use=kTRUE){fUsePhysicsSelection=use; return;}
326 Bool_t GetUsePhysicsSelection() const { return fUsePhysicsSelection; }
327
328
329
330 Bool_t CompareCuts(const AliRDHFCuts *obj) const;
331 void MakeTable()const;
332
333 Int_t GetIsSelectedCuts() const {return fIsSelectedCuts;}
334 Int_t GetIsSelectedPID() const {return fIsSelectedPID;}
335
336 void SetUseMCVertex() { fUseMCVertex=kTRUE; }
337 Bool_t GetUseMCVertex() const { return fUseMCVertex; }
338
339 Bool_t RecalcOwnPrimaryVtx(AliAODRecoDecayHF *d,AliAODEvent *aod) const;
340 Bool_t SetMCPrimaryVtx(AliAODRecoDecayHF *d,AliAODEvent *aod) const;
341 void CleanOwnPrimaryVtx(AliAODRecoDecayHF *d,AliAODEvent *aod,AliAODVertex *origownvtx) const;
342
343 Bool_t CountEventForNormalization() const
344 { if(fWhyRejection==0) {return kTRUE;} else {return kFALSE;} }
345
346 void SetKeepSignalMC() {fKeepSignalMC=kTRUE; return;}
347
348 // Flag and pt-maximum to check if the candidate daughters fulfill the kFirst criteria
349 void SetSelectCandTrackSPDFirst( Bool_t flag, Double_t ptmax )
350 { fIsCandTrackSPDFirst=flag; fMaxPtCandTrackSPDFirst=ptmax; }
351 Bool_t IsSelectCandTrackSPDFirst() const { return fIsCandTrackSPDFirst; }
352 Double_t IsMaxCandTrackSPDFirst() const { return fMaxPtCandTrackSPDFirst; }
353
09bfd399 354 Bool_t CheckPtDepCrossedRows(TString rows,Bool_t print=kFALSE) const;
355
356
0c22e2ac 357
358 protected:
359
360 void SetNPtBins(Int_t nptBins){fnPtBins=nptBins;}
361 void SetNVars(Int_t nVars){fnVars=nVars;}
362
363 Bool_t IsSignalMC(AliAODRecoDecay *d,AliAODEvent *aod,Int_t pdg) const;
4bdc0315 364 Bool_t RecomputePrimaryVertex(AliAODEvent* event) const;
0c22e2ac 365
366 // cuts on the event
367 Int_t fMinVtxType; // 0: not cut; 1: SPDZ; 2: SPD3D; 3: Tracks
368 Int_t fMinVtxContr; // minimum vertex contributors
369 Float_t fMaxVtxRedChi2; // maximum chi2/ndf
370 Float_t fMaxVtxZ; // maximum |z| of primary vertex
371 Int_t fMinSPDMultiplicity; // SPD multiplicity
372 ULong64_t fTriggerMask; // trigger mask
373 Bool_t fUseOnlyOneTrigger; // flag to select one trigger only
68c15f66 374 TString fTriggerClass[2]; // trigger class
0c22e2ac 375 // quality cuts on the daughter tracks
376 AliESDtrackCuts *fTrackCuts; // tracks for daughter tracks (AOD converted to ESD on the flight!)
377 // cuts on the candidate
378 Int_t fnPtBins; // number of pt bins for cuts
379 Int_t fnPtBinLimits; // "number of limits", that is fnPtBins+1
380 Float_t* fPtBinLimits; //[fnPtBinLimits] pt bins
381 Int_t fnVars; // number of cut vars for candidates
382 TString *fVarNames; //[fnVars] names of the variables
383 Int_t fnVarsForOpt; // number of cut vars to be optimized for candidates
384 Bool_t *fVarsForOpt; //[fnVars] kTRUE for vars to be used in optimization
385 Int_t fGlobalIndex; // fnVars*fnPtBins
386 Float_t *fCutsRD; //[fGlobalIndex] the cuts values
387 Bool_t *fIsUpperCut; //[fnVars] use > or < to select
388 Bool_t fUsePID; // enable PID usage (off by default)
389 Bool_t fUseAOD049; // enable AOD049 centrality cleanup
390 AliAODPidHF *fPidHF; // PID for heavy flavours manager
391 Int_t fWhyRejection; // used to code the step at which candidate was rejected
392 UInt_t fEvRejectionBits; //bit map storing the full info about event rejection
393 Bool_t fRemoveDaughtersFromPrimary; // flag to switch on the removal of duaghters from the primary vertex computation
4bdc0315 394 Bool_t fRecomputePrimVertex; // flag to recompute primary vertex
0c22e2ac 395 Bool_t fUseMCVertex; // use MC primary vertex
396 Bool_t fUsePhysicsSelection; // use Physics selection criteria
397 Int_t fOptPileup; // option for pielup selection
398 Int_t fMinContrPileup; // min. n. of tracklets in pileup vertex
399 Float_t fMinDzPileup; // min deltaz between main and pileup vertices
400 Int_t fUseCentrality; // off =0 (default)
401 // 1 = V0
402 // 2 = Tracks
403 // 3 = Tracklets
404 // 4 = SPD clusters outer
405 Float_t fMinCentrality; // minimum centrality for selected events
406 Float_t fMaxCentrality; // maximum centrality for selected events
407 Bool_t fFixRefs; // fix the daughter track references
408 Int_t fIsSelectedCuts; // outcome of cuts selection
409 Int_t fIsSelectedPID; // outcome of PID selection
410 Double_t fMinPtCand; // minimum pt of the candidate
411 Double_t fMaxPtCand; // minimum pt of the candidate
af5d687e 412 Double_t fMaxRapidityCand; // max rapidity of candidate (if !=-999 overrides IsInFiducialAcceptance)
0c22e2ac 413 Bool_t fKeepSignalMC; // IsSelected returns always kTRUE for MC signal
414 Bool_t fIsCandTrackSPDFirst; // flag to select the track kFirst criteria for pt < ptlimit
415 Double_t fMaxPtCandTrackSPDFirst; // maximum pt of the candidate for which to check if the daughters fulfill kFirst criteria
851d1cae 416 Bool_t fApplySPDDeadPbPb2011; // flag to apply SPD dead module map of PbPb2011
8da55fd2 417 Double_t fMaxDiffTRKV0Centr; // Max. difference between TRK and V0 centrality (remove TPC pileup for PbPb 2011)
851d1cae 418 Bool_t fRemoveTrackletOutliers; // flag to apply cut on tracklets vs. centrality for 2011 data
4346ffd2 419 Int_t fCutOnzVertexSPD; // cut on zSPD vertex to remove outliers in centrality vs. tracklets (0=no cut, 1= cut at 12 cm, 2= cut on difference to z of vtx tracks
fdd5a897 420 Bool_t fKinkReject; // flag to reject kink daughters
3e075b37 421 Bool_t fUseTrackSelectionWithFilterBits; // flag to enable/disable the check on filter bits
30399c33 422 Bool_t fUseCentrFlatteningInMC; // flag for enabling/diabling centrality flattening in MC
db0ff379 423 TH1F *fHistCentrDistr; // histogram with reference centrality distribution for centrality distribution flattening
09bfd399 424 Float_t fCutRatioClsOverCrossRowsTPC; // min. value ratio NTPCClusters/NTPCCrossedRows, cut if !=0
425 Float_t fCutRatioSignalNOverCrossRowsTPC; // min. value ratio TPCPointsUsedForPID/NTPCCrossedRows, cut if !=0
426 TString fCutMinCrossedRowsTPCPtDep; // pT-dep cut in TPC minimum n crossed rows
427 TFormula *f1CutMinNCrossedRowsTPCPtDep; // pT-dep cut in TPC minimum n crossed rows
428
0c22e2ac 429
5d3cf93b 430 ClassDef(AliRDHFCuts,34); // base class for cuts on AOD reconstructed heavy-flavour decays
0c22e2ac 431};
432
433#endif