AliPhysics  abafffd (abafffd)
AliRDHFCuts.h
Go to the documentation of this file.
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 
6 /* $Id$ */
7 
8 //***********************************************************
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 #include "TObjArray.h"
22 
23 class AliAODTrack;
24 class AliAODRecoDecayHF;
25 class AliESDVertex;
26 class TF1;
27 class TFormula;
28 
29 class AliRDHFCuts : public AliAnalysisCuts
30 {
31  public:
32 
39 
40  AliRDHFCuts(const Char_t* name="RDHFCuts", const Char_t* title="");
41 
42  virtual ~AliRDHFCuts();
43 
44  AliRDHFCuts(const AliRDHFCuts& source);
45  AliRDHFCuts& operator=(const AliRDHFCuts& source);
46 
47  virtual void SetStandardCutsPP2010() {return;}
48  virtual void SetStandardCutsPbPb2010() {return;}
49  virtual void SetStandardCutsPbPb2011() {return;}
50 
51 
52  void SetMinCentrality(Float_t minCentrality=0.) {fMinCentrality=minCentrality;}
53  void SetMaxCentrality(Float_t maxCentrality=100.) {fMaxCentrality=maxCentrality;}
55  void SetMinVtxType(Int_t type=3) {fMinVtxType=type;}
57  if(flag) fMinVtxType=1;
58  else fMinVtxType=3;
59  }
60  void SetMinVtxContr(Int_t contr=1) {fMinVtxContr=contr;}
61  void SetMaxVtxRdChi2(Float_t chi2=1e6) {fMaxVtxRedChi2=chi2;}
62  void SetMaxVtxZ(Float_t z=1e6) {fMaxVtxZ=z;}
67 
68  void SetTriggerMask(ULong64_t mask=0) {fTriggerMask=mask;}
70  ULong64_t GetTriggerMask() {return fTriggerMask;}
72 
73  void SetUseAnyTrigger() {fTriggerMask=AliVEvent::kAny;}
75  fTriggerMask|=AliVEvent::kMB;
76  fUseOnlyOneTrigger=kFALSE;
77  }
79  fTriggerMask=AliVEvent::kMB;
80  fUseOnlyOneTrigger=kFALSE;
81  }
83  fTriggerMask=AliVEvent::kMB;
84  fUseOnlyOneTrigger=kTRUE;
85  }
87  fTriggerMask|=AliVEvent::kCentral;
88  fUseOnlyOneTrigger=kFALSE;
89  }
91  fTriggerMask=AliVEvent::kCentral;
92  fUseOnlyOneTrigger=kFALSE;
93  }
95  fTriggerMask=AliVEvent::kCentral;
96  fUseOnlyOneTrigger=kTRUE;
97  }
99  fTriggerMask|=AliVEvent::kSemiCentral;
100  fUseOnlyOneTrigger=kFALSE;
101  }
103  fTriggerMask=AliVEvent::kSemiCentral;
104  fUseOnlyOneTrigger=kFALSE;
105  }
107  fTriggerMask=AliVEvent::kSemiCentral;
108  fUseOnlyOneTrigger=kTRUE;
109  }
111  fTriggerMask|=(AliVEvent::kEMCEJE|AliVEvent::kEMCEGA);
112  fUseOnlyOneTrigger=kFALSE;
113  }
115  fTriggerMask=(AliVEvent::kEMCEJE|AliVEvent::kEMCEGA);
116  fUseOnlyOneTrigger=kFALSE;
117  }
119  fTriggerMask=(AliVEvent::kEMCEJE|AliVEvent::kEMCEGA);
120  fUseOnlyOneTrigger=kTRUE;
121  }
122  //
125  fTriggerMask=AliVEvent::kMB;
126  fTriggerClass[0]="CINT1";
127  fUseOnlyOneTrigger=kFALSE;
128  }
130  fTriggerMask=AliVEvent::kINT7;
131  fTriggerClass[0]="CINT7";
132  fUseOnlyOneTrigger=kFALSE;
133  }
135  fTriggerMask=AliVEvent::kINT8;
136  fTriggerClass[0]="CINT8";
137  fUseOnlyOneTrigger=kFALSE;
138  }
140  fTriggerMask=AliVEvent::kEMC7;
141  fTriggerClass[0]="CEMC7";
142  fUseOnlyOneTrigger=kFALSE;
143  }
145  fTriggerMask=AliVEvent::kEMC8;
146  fTriggerClass[0]="CEMC8";
147  fUseOnlyOneTrigger=kFALSE;
148  }
150  fTriggerMask=AliVEvent::kEMCEJE;
151  fTriggerClass[0]="CEMC7EJE";
152  fUseOnlyOneTrigger=kFALSE;
153  }
155  fTriggerMask=AliVEvent::kEMCEJE;
156  fTriggerClass[0]="CEMC8EJE";
157  fUseOnlyOneTrigger=kFALSE;
158  }
160  fTriggerMask=AliVEvent::kEMCEGA;
161  fTriggerClass[0]="CEMC7EGA";
162  fUseOnlyOneTrigger=kFALSE;
163  }
165  fTriggerMask=AliVEvent::kEMCEGA;
166  fTriggerClass[0]="CEMC8EGA";
167  fUseOnlyOneTrigger=kFALSE;
168  }
170  fTriggerMask=AliVEvent::kSPI7;
171  fTriggerClass[0]="CSPI7";
172  fUseOnlyOneTrigger=kFALSE;
173  }
175  fTriggerMask=AliVEvent::kSPI;
176  fTriggerClass[0]="CSPI8";
177  fUseOnlyOneTrigger=kFALSE;
178  }
180  fTriggerMask=AliVEvent::kHighMult;
181  fTriggerClass[0]="CSHM7";
182  fUseOnlyOneTrigger=kFALSE;
183  }
185  fTriggerMask=AliVEvent::kHighMult;
186  fTriggerClass[0]="CSHM8";
187  fUseOnlyOneTrigger=kFALSE;
188  }
189 
195  if(opt>=0 && opt<=3) fCutOnzVertexSPD=opt;
196  else AliError("Wrong option for cut on zVertexSPD");
197  }
198  void SetTriggerClass(TString trclass0, TString trclass1="") {fTriggerClass[0]=trclass0; fTriggerClass[1]=trclass1;}
201  void SetVarsForOpt(Int_t nVars,Bool_t *forOpt);
203  void SetGlobalIndex(Int_t nVars,Int_t nptBins){fnVars=nVars; fnPtBins=nptBins; SetGlobalIndex();}
204  void SetVarNames(Int_t nVars,TString *varNames,Bool_t *isUpperCut);
205  void SetPtBins(Int_t nPtBinLimits,Float_t *ptBinLimits);
206  void SetCuts(Int_t nVars,Int_t nPtBins,Float_t** cutsRD);
207  void SetCuts(Int_t glIndex, Float_t* cutsRDGlob);
208  void AddTrackCuts(const AliESDtrackCuts *cuts)
209  {delete fTrackCuts; fTrackCuts=new AliESDtrackCuts(*cuts); return;}
210  void SetUsePID(Bool_t flag=kTRUE) {fUsePID=flag; return;}
211  void SetUseAOD049(Bool_t flag=kTRUE) {fUseAOD049=flag; return;}
212  void SetKinkRejection(Bool_t flag=kTRUE) {fKinkReject=flag; return;}
214  fUseTrackSelectionWithFilterBits=flag; return;}
215  void SetUseCentrality(Int_t flag=1);
216  void SetPidHF(AliAODPidHF* pidObj) {
217  if(fPidHF) delete fPidHF;
218  fPidHF=new AliAODPidHF(*pidObj);
219  }
220  void SetRemoveDaughtersFromPrim(Bool_t removeDaughtersPrim) {fRemoveDaughtersFromPrimary=removeDaughtersPrim;}
221  void SetMinPtCandidate(Double_t ptCand=-1.) {fMinPtCand=ptCand; return;}
222  void SetMaxPtCandidate(Double_t ptCand=1000.) {fMaxPtCand=ptCand; return;}
223  void SetMaxRapidityCandidate(Double_t ycand) {fMaxRapidityCand=ycand; return;}
226  fOptPileup=opt;
227  if (fOptPileup==kRejectMVPileupEvent) {
228  fMinContrPileup=5.;
230  fMinWDzPileupMV=15.;
231  fRejectPlpFromDiffBCMV=kFALSE;
232  }
233  }
234  void ConfigurePileupCuts(Int_t minContrib=3, Float_t minDz=0.6){
235  fMinContrPileup=minContrib;
236  fMinDzPileup=minDz;
237  }
240  }
241 
242  void SetHistoForCentralityFlattening(TH1F *h,Double_t minCentr,Double_t maxCentr,Double_t centrRef=0.,Int_t switchTRand=0);
243  void SetMinCrossedRowsTPCPtDep(const char *rows="");
247 
248  AliAODPidHF* GetPidHF() const {return fPidHF;}
250  Int_t GetNPtBins() const {return fnPtBins;}
251  Int_t GetNVars() const {return fnVars;}
252  TString *GetVarNames() const {return fVarNames;}
253  Bool_t *GetVarsForOpt() const {return fVarsForOpt;}
255  const Float_t *GetCuts() const {return fCutsRD;}
256  void GetCuts(Float_t**& cutsRD) const;
257  Float_t GetCutValue(Int_t iVar,Int_t iPtBin) const;
258  Double_t GetMaxVtxZ() const {return fMaxVtxZ;}
262  Bool_t *GetIsUpperCut() const {return fIsUpperCut;}
263  AliESDtrackCuts *GetTrackCuts() const {return fTrackCuts;}
264  virtual AliESDtrackCuts *GetTrackCutsSoftPi() const {return 0;}
265  virtual AliESDtrackCuts *GetTrackCutsV0daughters() const {return 0;}
266  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters) = 0;
267  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters,AliAODEvent * /*aod*/)
268  {return GetCutVarsForOpt(d,vars,nvars,pdgdaughters);}
269  Int_t GetGlobalIndex(Int_t iVar,Int_t iPtBin) const;
270  void GetVarPtIndex(Int_t iGlob, Int_t& iVar, Int_t& iPtBin) const;
271  Bool_t GetIsUsePID() const {return fUsePID;}
272  Bool_t GetUseAOD049() const {return fUseAOD049;}
275  if(fMinVtxType==1 || fMinVtxType==2) return kTRUE;
276  return kFALSE;
277  }
280  Bool_t GetOptPileUp() const {return fOptPileup;}
294  Bool_t IsSelected(TList *list) {if(!list) return kTRUE; return kFALSE;}
295  virtual Int_t PreSelect(TObjArray aodtracks){return 3;}
296  Int_t IsEventSelectedInCentrality(AliVEvent *event);
298  Bool_t IsEventSelected(AliVEvent *event);
299  Bool_t AreDaughtersSelected(AliAODRecoDecayHF *rd, const AliAODEvent* aod=0x0) const;
300  Bool_t IsDaughterSelected(AliAODTrack *track,const AliESDVertex *primary,AliESDtrackCuts *cuts, const AliAODEvent* aod=0x0) const;
301  virtual Int_t IsSelectedPID(AliAODRecoDecayHF * /*rd*/) {return 1;}
303 
304 
305  void SetupPID(AliVEvent *event);
306 
307  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel) = 0;
308  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent* /*aod*/)
309  {return IsSelected(obj,selectionLevel);}
310  Int_t PtBin(Double_t pt) const;
311  virtual void PrintAll()const;
312  void PrintTrigger() const;
313 
314  virtual Bool_t IsInFiducialAcceptance(Double_t /*pt*/,Double_t /*y*/) const {return kTRUE;}
315 
316  void SetWhyRejection(Int_t why) {fWhyRejection=why; return;}
320  return fEvRejectionBits&(1<<kNotSelTrigger);
321  }
323  return fEvRejectionBits&(1<<kNoVertex);
324  }
327  }
329  return fEvRejectionBits&(1<<kBadSPDVertex);
330  }
332  return fEvRejectionBits&(1<<kZVtxOutFid);
333  }
335  return fEvRejectionBits&(1<<kPileup);
336  }
339  }
342  }
345  }
347  return fEvRejectionBits&(1<<kBadTrackVertex);
348  }
351  }
354  }
359  }
360  return kFALSE;
361  }
362 
363  void SetFixRefs(Bool_t fix=kTRUE) {fFixRefs=fix; return;}
364  void SetUsePhysicsSelection(Bool_t use=kTRUE){fUsePhysicsSelection=use; return;}
366 
367  void SetUsePreSelect(Int_t usePreselect){fUsePreselect=usePreselect;return;}
369 
370  Bool_t CompareCuts(const AliRDHFCuts *obj) const;
371  void MakeTable()const;
372 
375 
376  void SetUseMCVertex() { fUseMCVertex=kTRUE; }
377  Bool_t GetUseMCVertex() const { return fUseMCVertex; }
378 
381  void CleanOwnPrimaryVtx(AliAODRecoDecayHF *d,AliAODEvent *aod,AliAODVertex *origownvtx) const;
382 
384  { if(fWhyRejection==0) {return kTRUE;} else {return kFALSE;} }
385 
386  void SetKeepSignalMC() {fKeepSignalMC=kTRUE; return;}
387 
393 
394  Bool_t CheckPtDepCrossedRows(TString rows,Bool_t print=kFALSE) const;
395 
400  }
401 
403 
404  protected:
405 
406  void SetNPtBins(Int_t nptBins){fnPtBins=nptBins;}
407  void SetNVars(Int_t nVars){fnVars=nVars;}
408 
409  Bool_t IsSignalMC(AliAODRecoDecay *d,AliAODEvent *aod,Int_t pdg) const;
411 
421  ULong64_t fTriggerMask;
424  AliESDtrackCuts *fTrackCuts;
426  Int_t fnPtBins;
429  Float_t* fPtBinLimits; //[fnPtBinLimits] pt bins
431  TString *fVarNames; //[fnVars] names of the variables
433  Bool_t *fVarsForOpt; //[fnVars] kTRUE for vars to be used in optimization
435  Float_t *fCutsRD; //[fGlobalIndex] the cuts values
436  Bool_t *fIsUpperCut; //[fnVars] use > or < to select
441  UInt_t fEvRejectionBits; //bit map storing the full info about event rejection
487  Bool_t fApplyZcutOnSPDvtx; //flag to apply the cut on |Zvtx| > X cm using the z coordinate of the SPD vertex
489  ClassDef(AliRDHFCuts,44);
491 };
493 
494 #endif
Float_t GetMaxCentrality() const
Definition: AliRDHFCuts.h:283
Bool_t IsEventRejectedDueToCentrality() const
Definition: AliRDHFCuts.h:337
void SetNPtBins(Int_t nptBins)
Definition: AliRDHFCuts.h:406
Int_t fIsSelectedCuts
fix the daughter track references
Definition: AliRDHFCuts.h:458
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)=0
Int_t pdg
Bool_t IsEventSelectedForCentrFlattening(Float_t centvalue)
void ResetMaskAndEnableCentralTrigger()
Definition: AliRDHFCuts.h:90
Bool_t IsEventRejectedDueToZVertexOutsideFiducialRegion() const
Definition: AliRDHFCuts.h:331
virtual AliESDtrackCuts * GetTrackCutsV0daughters() const
Definition: AliRDHFCuts.h:265
Float_t fMinDzPileup
min. n. of tracklets in pileup vertex
Definition: AliRDHFCuts.h:447
Double_t fMaxPtCandTrackSPDFirst
flag to select the track kFirst criteria for pt < ptlimit
Definition: AliRDHFCuts.h:465
Int_t GetNVars() const
Definition: AliRDHFCuts.h:251
void SetUseOnlyOneTrigger(Bool_t onlyOne)
Definition: AliRDHFCuts.h:69
Bool_t IsEventRejectedDueToNotRecoVertex() const
Definition: AliRDHFCuts.h:322
Int_t fWhyRejection
PID for heavy flavours manager.
Definition: AliRDHFCuts.h:440
Int_t GetIsSelectedPID() const
Definition: AliRDHFCuts.h:374
Float_t GetMinRatioSignalNOverCrossRowsTPC() const
Definition: AliRDHFCuts.h:291
void SetRemoveTrackletOutliers(Bool_t opt)
Definition: AliRDHFCuts.h:193
double Double_t
Definition: External.C:58
ULong64_t GetTriggerMask()
Definition: AliRDHFCuts.h:70
Int_t fCutOnzVertexSPD
flag to apply cut on tracklets vs. centrality for 2011 data
Definition: AliRDHFCuts.h:470
void ResetMaskAndEnableSemiCentralTrigger()
Definition: AliRDHFCuts.h:102
virtual AliESDtrackCuts * GetTrackCutsSoftPi() const
Definition: AliRDHFCuts.h:264
void SetUseAOD049(Bool_t flag=kTRUE)
Definition: AliRDHFCuts.h:211
void SetFixRefs(Bool_t fix=kTRUE)
Definition: AliRDHFCuts.h:363
void SetUseMCVertex()
Definition: AliRDHFCuts.h:376
void SetupPID(AliVEvent *event)
void SetZcutOnSPDvtx()
Definition: AliRDHFCuts.h:402
Bool_t IsSignalMC(AliAODRecoDecay *d, AliAODEvent *aod, Int_t pdg) const
void SetMinRatioSignalNOverCrossRowsTPC(Float_t ratio=0.)
Definition: AliRDHFCuts.h:245
const char * title
Definition: MakeQAPdf.C:27
Bool_t GetOptPileUp() const
Definition: AliRDHFCuts.h:280
virtual void SetStandardCutsPbPb2010()
Definition: AliRDHFCuts.h:48
Double_t fCutGeoNcrNclFractionNcr
3rd parameter of GeoNcrNcl cut
Definition: AliRDHFCuts.h:483
Bool_t fUseMCVertex
flag to switch on the removal of duaghters from the primary vertex computation
Definition: AliRDHFCuts.h:443
Bool_t fUseOnlyOneTrigger
trigger mask
Definition: AliRDHFCuts.h:422
Int_t GetIsSelectedCuts() const
Definition: AliRDHFCuts.h:373
void SetMaxVtxZ(Float_t z=1e6)
Definition: AliRDHFCuts.h:62
Int_t IsEventSelectedInCentrality(AliVEvent *event)
Bool_t * fIsUpperCut
Definition: AliRDHFCuts.h:436
Bool_t SetMCPrimaryVtx(AliAODRecoDecayHF *d, AliAODEvent *aod) const
void SetUseMultDepPileupCut(Bool_t opt=kTRUE)
Definition: AliRDHFCuts.h:238
Bool_t fRemoveDaughtersFromPrimary
Definition: AliRDHFCuts.h:442
void SetHistoForCentralityFlattening(TH1F *h, Double_t minCentr, Double_t maxCentr, Double_t centrRef=0., Int_t switchTRand=0)
void SetUseMBTriggerExclusively()
Definition: AliRDHFCuts.h:82
Bool_t fUseMultDepPileupCut
min deltaz between main and pileup vertices
Definition: AliRDHFCuts.h:448
void ConfigurePileupCuts(Int_t minContrib=3, Float_t minDz=0.6)
Definition: AliRDHFCuts.h:234
void SetUseCentrality(Int_t flag=1)
const char * GetMinCrossedRowsTPCPtDep() const
Definition: AliRDHFCuts.h:289
Float_t * fPtBinLimits
"number of limits", that is fnPtBins+1
Definition: AliRDHFCuts.h:429
virtual Int_t PreSelect(TObjArray aodtracks)
Definition: AliRDHFCuts.h:295
void SetUseEMCALGA8TriggerPP2012()
Definition: AliRDHFCuts.h:164
void SetWhyRejection(Int_t why)
Definition: AliRDHFCuts.h:316
Int_t fMinVtxContr
0: not cut; 1: SPDZ; 2: SPD3D; 3: Tracks
Definition: AliRDHFCuts.h:414
void SetCutOnzVertexSPD(Int_t opt)
Definition: AliRDHFCuts.h:194
void EnableMBTrigger()
Definition: AliRDHFCuts.h:74
char Char_t
Definition: External.C:18
void SetGlobalIndex(Int_t nVars, Int_t nptBins)
Definition: AliRDHFCuts.h:203
void SetUsePreSelect(Int_t usePreselect)
Definition: AliRDHFCuts.h:367
static Int_t CheckMatchingAODdeltaAODevents()
Float_t fMaxVtxRedChi2
minimum vertex contributors
Definition: AliRDHFCuts.h:415
void SetUseEMCAL7TriggerPP2012()
Definition: AliRDHFCuts.h:139
void SetUseCentralTriggerExclusively()
Definition: AliRDHFCuts.h:94
void SetUseV0ANDSelectionOffline(Bool_t flag=kFALSE)
Definition: AliRDHFCuts.h:190
const Float_t * GetCuts() const
Definition: AliRDHFCuts.h:255
Bool_t IsEventRejectedDueToVertexContributors() const
Definition: AliRDHFCuts.h:325
Bool_t IsSelected(TList *list)
Definition: AliRDHFCuts.h:294
void SetMinCrossedRowsTPCPtDep(const char *rows="")
void SetNVars(Int_t nVars)
Definition: AliRDHFCuts.h:407
void SetUseSPI7TriggerPP2012()
Definition: AliRDHFCuts.h:169
Float_t fCutRatioClsOverCrossRowsTPC
histogram with reference centrality distribution for centrality distribution flattening ...
Definition: AliRDHFCuts.h:475
Bool_t GetUseTPCtrackCutsOnThisDaughter() const
Definition: AliRDHFCuts.h:292
Bool_t GetUseOnlyOneTrigger()
Definition: AliRDHFCuts.h:71
TString GetMultSelectionObjectName() const
Definition: AliRDHFCuts.h:284
Int_t GetWhyRejection() const
Definition: AliRDHFCuts.h:317
Double_t fDeadZoneWidth
flag for enabling/disabling geometrical cut on TPC track
Definition: AliRDHFCuts.h:480
void SetRejectPlpFromDifferentBCMV(Bool_t ok=kTRUE)
Definition: AliRDHFCuts.h:66
Int_t fMinVtxType
cuts on the event
Definition: AliRDHFCuts.h:413
void SetUseAnyTrigger()
Definition: AliRDHFCuts.h:73
Double_t fMaxRapidityCand
minimum pt of the candidate
Definition: AliRDHFCuts.h:462
void EnableSemiCentralTrigger()
Definition: AliRDHFCuts.h:98
Bool_t IsEventRejectedDueToTRKV0CentralityCorrel() const
Definition: AliRDHFCuts.h:343
Double_t fCutGeoNcrNclFractionNcl
4th parameter of GeoNcrNcl cut
Definition: AliRDHFCuts.h:484
TString * GetVarNames() const
Definition: AliRDHFCuts.h:252
void SetGlobalIndex()
Definition: AliRDHFCuts.h:202
AliRDHFCuts & operator=(const AliRDHFCuts &source)
Float_t GetCutValue(Int_t iVar, Int_t iPtBin) const
Int_t fUseCentrality
flag to use a multiplicity dependent pileup selection
Definition: AliRDHFCuts.h:449
Float_t GetMinCentrality() const
Definition: AliRDHFCuts.h:282
Bool_t fUsePID
Definition: AliRDHFCuts.h:437
void SetMaxDifferenceTRKV0Centraltity(Double_t maxd=5.)
Definition: AliRDHFCuts.h:191
Double_t GetMaxVtxZ() const
Definition: AliRDHFCuts.h:258
Bool_t fRejectPlpFromDiffBCMV
minimum weighted distance in Z between 2 vertices (multi-vertexer)
Definition: AliRDHFCuts.h:420
void SetSelectCandTrackSPDFirst(Bool_t flag, Double_t ptmax)
Flag and pt-maximum to check if the candidate daughters fulfill the kFirst criteria.
Definition: AliRDHFCuts.h:389
void SetUsePhysicsSelection(Bool_t use=kTRUE)
Definition: AliRDHFCuts.h:364
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *)
Definition: AliRDHFCuts.h:301
void SetPidHF(AliAODPidHF *pidObj)
see enum below
Definition: AliRDHFCuts.h:216
void SetUseEMCALJET7TriggerPP2012()
Definition: AliRDHFCuts.h:149
AliAODPidHF * GetPidHF() const
Definition: AliRDHFCuts.h:248
void SetKinkRejection(Bool_t flag=kTRUE)
Definition: AliRDHFCuts.h:212
void SetMaxVtxChi2PileupMV(Float_t chi2=5.)
Definition: AliRDHFCuts.h:64
Bool_t fRemoveTrackletOutliers
Max. difference between TRK and V0 centrality (remove TPC pileup for PbPb 2011)
Definition: AliRDHFCuts.h:469
void SetUseCentralityFlatteningInMC(Bool_t opt)
Definition: AliRDHFCuts.h:288
Bool_t fUseV0ANDSelectionOffline
5th parameter of GeoNcrNcl cut
Definition: AliRDHFCuts.h:485
void SetMaxPtCandidate(Double_t ptCand=1000.)
Definition: AliRDHFCuts.h:222
AliRDHFCuts(const Char_t *name="RDHFCuts", const Char_t *title="")
Definition: AliRDHFCuts.cxx:64
const Int_t nPtBins
void SetMinSPDMultiplicity(Int_t mult=0)
Definition: AliRDHFCuts.h:63
void SetMinWeightedDzVtxPileupMV(Float_t min=15.)
Definition: AliRDHFCuts.h:65
ULong64_t fTriggerMask
flag to reject pileup from different BC (multi-vertexer)
Definition: AliRDHFCuts.h:421
void SetMinVtxContr(Int_t contr=1)
Definition: AliRDHFCuts.h:60
Bool_t fUseCutGeoNcrNcl
pT-dep cut in TPC minimum n crossed rows
Definition: AliRDHFCuts.h:479
void SetUseInt8TriggerPP2012()
Definition: AliRDHFCuts.h:134
void SetUseEMCALTriggerExclusively()
Definition: AliRDHFCuts.h:118
int Int_t
Definition: External.C:63
Bool_t fUseTrackSelectionWithFilterBits
flag to reject kink daughters
Definition: AliRDHFCuts.h:472
Bool_t * GetIsUpperCut() const
Definition: AliRDHFCuts.h:262
void SetCuts(Int_t nVars, Int_t nPtBins, Float_t **cutsRD)
Int_t fnVarsForOpt
Definition: AliRDHFCuts.h:432
Float_t fMinWDzPileupMV
max chi2 per contributor of the pile-up vertex to consider (multi-vertexer).
Definition: AliRDHFCuts.h:419
void ResetMaskAndEnableMBTrigger()
Definition: AliRDHFCuts.h:78
Double_t fCutGeoNcrNclLength
1st parameter of GeoNcrNcl cut
Definition: AliRDHFCuts.h:481
void SetMinCentrality(Float_t minCentrality=0.)
Definition: AliRDHFCuts.h:52
unsigned int UInt_t
Definition: External.C:33
float Float_t
Definition: External.C:68
virtual ~AliRDHFCuts()
Bool_t CountEventForNormalization() const
Definition: AliRDHFCuts.h:383
const Double_t ptmax
TString * fVarNames
number of cut vars for candidates
Definition: AliRDHFCuts.h:431
Double_t fMaxPtCand
minimum pt of the candidate
Definition: AliRDHFCuts.h:461
Bool_t * GetVarsForOpt() const
Definition: AliRDHFCuts.h:253
AliESDtrackCuts * fTrackCuts
quality cuts on the daughter tracks
Definition: AliRDHFCuts.h:425
void SetUseInt7TriggerPP2012()
Definition: AliRDHFCuts.h:129
void MakeTable() const
void ResetMaskAndEnableEMCALTrigger()
Definition: AliRDHFCuts.h:114
void SetUseSPI8TriggerPP2012()
Definition: AliRDHFCuts.h:174
Bool_t IsEventRejectedDueToBadTrackVertex() const
Definition: AliRDHFCuts.h:346
Bool_t fFixRefs
name of the AliMultSelection object to be considered
Definition: AliRDHFCuts.h:457
Bool_t fKeepSignalMC
max rapidity of candidate (if !=-999 overrides IsInFiducialAcceptance)
Definition: AliRDHFCuts.h:463
void ApplySPDDeadPbPb2011()
Definition: AliRDHFCuts.h:199
Int_t GetNVarsForOpt() const
Definition: AliRDHFCuts.h:254
Int_t fOptPileup
use Physics selection criteria
Definition: AliRDHFCuts.h:445
Double_t GetMaxPtCandidate() const
Definition: AliRDHFCuts.h:286
AliESDtrackCuts * GetTrackCuts() const
Definition: AliRDHFCuts.h:263
void PrintTrigger() const
Float_t fMaxVtxZ
maximum chi2/ndf
Definition: AliRDHFCuts.h:416
void SetUseHighMult8TriggerPP2012()
Definition: AliRDHFCuts.h:184
Int_t GetUsePreselect()
Definition: AliRDHFCuts.h:368
Float_t GetCentrality(AliAODEvent *aodEvent)
Definition: AliRDHFCuts.h:259
Int_t fIsSelectedPID
outcome of cuts selection
Definition: AliRDHFCuts.h:459
Bool_t IsEventRejectedDueToPileup() const
Definition: AliRDHFCuts.h:334
void SetMinVtxType(Int_t type=3)
Definition: AliRDHFCuts.h:55
Float_t fMinCentrality
Definition: AliRDHFCuts.h:454
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel, AliAODEvent *)
Definition: AliRDHFCuts.h:308
void SetUseTrackSelectionWithFilterBits(Bool_t flag=kTRUE)
Definition: AliRDHFCuts.h:213
void ConfigureCutGeoNcrNcl(Double_t dz, Double_t len, Double_t onept, Double_t fncr, Double_t fncl)
Definition: AliRDHFCuts.h:397
UInt_t GetEventRejectionBitMap() const
Definition: AliRDHFCuts.h:318
void SetMultSelectionObjectName(TString str)
Definition: AliRDHFCuts.h:54
Bool_t GetUseMCVertex() const
Definition: AliRDHFCuts.h:377
UInt_t fEvRejectionBits
used to code the step at which candidate was rejected
Definition: AliRDHFCuts.h:441
Double_t fMaxDiffTRKV0Centr
flag to apply cut on tracks crossing SPD misaligned modules for PP2012 data
Definition: AliRDHFCuts.h:468
Float_t GetCentralityOldFramework(AliAODEvent *aodEvent, AliRDHFCuts::ECentrality estimator)
Float_t GetMinRatioClsOverCrossRowsTPC() const
Definition: AliRDHFCuts.h:290
Int_t fnPtBinLimits
number of pt bins for cuts
Definition: AliRDHFCuts.h:428
Float_t * fCutsRD
fnVars*fnPtBins
Definition: AliRDHFCuts.h:435
Bool_t CheckPtDepCrossedRows(TString rows, Bool_t print=kFALSE) const
Bool_t IsEventRejectedDueToMissingSPDVertex() const
Definition: AliRDHFCuts.h:328
void SetMaxRapidityCandidate(Double_t ycand)
Definition: AliRDHFCuts.h:223
Bool_t IsEventRejectedDueToBadPrimaryVertex() const
Definition: AliRDHFCuts.h:355
Bool_t IsEventRejectedDuePhysicsSelection() const
Definition: AliRDHFCuts.h:352
void SetMaxCentrality(Float_t maxCentrality=100.)
Definition: AliRDHFCuts.h:53
void SetUseTPCtrackCutsOnThisDaughter(Bool_t flag=kTRUE)
Definition: AliRDHFCuts.h:246
Int_t fUsePreselect
Definition: AliRDHFCuts.h:488
Bool_t fUseCentrFlatteningInMC
flag to enable/disable the check on filter bits
Definition: AliRDHFCuts.h:473
void SetVarsForOpt(Int_t nVars, Bool_t *forOpt)
virtual void SetStandardCutsPbPb2011()
Definition: AliRDHFCuts.h:49
void SetVarNames(Int_t nVars, TString *varNames, Bool_t *isUpperCut)
Bool_t GetUseTrackSelectionWithFilterBits() const
Definition: AliRDHFCuts.h:278
Bool_t IsEventRejectedDueToMismatchOldNewCentrality() const
Definition: AliRDHFCuts.h:349
void GetVarPtIndex(Int_t iGlob, Int_t &iVar, Int_t &iPtBin) const
Bool_t * fVarsForOpt
number of cut vars to be optimized for candidates
Definition: AliRDHFCuts.h:433
Bool_t GetIsPrimaryWithoutDaughters() const
Definition: AliRDHFCuts.h:279
void SetUseInt1TriggerPP2012()
Setters (helpers) for pp 2012 data.
Definition: AliRDHFCuts.h:124
Bool_t CompareCuts(const AliRDHFCuts *obj) const
void SetNotUseCutOnTRKVsV0Centraltity()
Definition: AliRDHFCuts.h:192
Bool_t AreDaughtersSelected(AliAODRecoDecayHF *rd, const AliAODEvent *aod=0x0) const
void SetKeepSignalMC()
Definition: AliRDHFCuts.h:386
void EnableCentralTrigger()
Definition: AliRDHFCuts.h:86
Bool_t fApplySPDMisalignedPP2012
flag to apply SPD dead module map of PbPb2011
Definition: AliRDHFCuts.h:467
Bool_t IsEventSelected(AliVEvent *event)
Int_t fMinSPDMultiplicity
maximum |z| of primary vertex
Definition: AliRDHFCuts.h:417
void SetUsePID(Bool_t flag=kTRUE)
Definition: AliRDHFCuts.h:210
void SetUseEMCALGA7TriggerPP2012()
Definition: AliRDHFCuts.h:159
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters, AliAODEvent *)
Definition: AliRDHFCuts.h:267
virtual void PrintAll() const
Bool_t fUseAOD049
enable PID usage (off by default)
Definition: AliRDHFCuts.h:438
Bool_t GetUseKinkRejection() const
Definition: AliRDHFCuts.h:273
Bool_t fApplySPDDeadPbPb2011
maximum pt of the candidate for which to check if the daughters fulfill kFirst criteria ...
Definition: AliRDHFCuts.h:466
void CleanOwnPrimaryVtx(AliAODRecoDecayHF *d, AliAODEvent *aod, AliAODVertex *origownvtx) const
Float_t * GetPtBinLimits() const
Definition: AliRDHFCuts.h:249
void SetRemoveDaughtersFromPrim(Bool_t removeDaughtersPrim)
Definition: AliRDHFCuts.h:220
Bool_t IsSelectCandTrackSPDFirst() const
Definition: AliRDHFCuts.h:391
Float_t fMaxVtxChi2PileupMV
SPD multiplicity.
Definition: AliRDHFCuts.h:418
virtual void SetStandardCutsPP2010()
Definition: AliRDHFCuts.h:47
Bool_t fIsCandTrackSPDFirst
IsSelected returns always kTRUE for MC signal.
Definition: AliRDHFCuts.h:464
TH1F * fHistCentrDistr
flag for enabling/diabling centrality flattening in MC
Definition: AliRDHFCuts.h:474
void SetPtBins(Int_t nPtBinLimits, Float_t *ptBinLimits)
Bool_t GetUseEventsWithOnlySPDVertex() const
Definition: AliRDHFCuts.h:274
Bool_t fKinkReject
cut on zSPD vertex to remove outliers in centrality vs. tracklets (0=no cut, 1= cut at 12 cm...
Definition: AliRDHFCuts.h:471
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:293
TString fMultSelectionObjectName
maximum centrality for selected events
Definition: AliRDHFCuts.h:456
Int_t fMinContrPileup
option for pielup selection
Definition: AliRDHFCuts.h:446
Bool_t GetIsUsePID() const
Definition: AliRDHFCuts.h:271
Bool_t fUseTPCtrackCutsOnThisDaughter
flag to apply V0AND selection offline
Definition: AliRDHFCuts.h:486
void SetMinRatioClsOverCrossRowsTPC(Float_t ratio=0.)
Definition: AliRDHFCuts.h:244
Bool_t fUsePhysicsSelection
use MC primary vertex
Definition: AliRDHFCuts.h:444
TFormula * f1CutMinNCrossedRowsTPCPtDep
pT-dep cut in TPC minimum n crossed rows
Definition: AliRDHFCuts.h:478
Int_t GetNPtBins() const
Definition: AliRDHFCuts.h:250
Double_t IsMaxCandTrackSPDFirst() const
Definition: AliRDHFCuts.h:392
Bool_t IsEventRejectedDueToTrigger() const
Definition: AliRDHFCuts.h:319
void AddTrackCuts(const AliESDtrackCuts *cuts)
Definition: AliRDHFCuts.h:208
void SetMinPtCandidate(Double_t ptCand=-1.)
Definition: AliRDHFCuts.h:221
TString fTriggerClass[2]
flag to select one trigger only
Definition: AliRDHFCuts.h:423
Bool_t GetUsePhysicsSelection() const
Definition: AliRDHFCuts.h:365
bool Bool_t
Definition: External.C:53
Int_t fnPtBins
cuts on the candidate
Definition: AliRDHFCuts.h:427
Double_t fCutGeoNcrNclGeom1Pt
2nd parameter of GeoNcrNcl cut
Definition: AliRDHFCuts.h:482
Bool_t fApplyZcutOnSPDvtx
flag to apply TPC track quality cuts on specific D-meson daughter (used for different strategies for ...
Definition: AliRDHFCuts.h:487
void SetTriggerClass(TString trclass0, TString trclass1="")
Definition: AliRDHFCuts.h:198
Bool_t GetUseAOD049() const
Definition: AliRDHFCuts.h:272
AliAODPidHF * fPidHF
enable AOD049 centrality cleanup
Definition: AliRDHFCuts.h:439
void SetUseEMCAL8TriggerPP2012()
Definition: AliRDHFCuts.h:144
Double_t GetMinPtCandidate() const
Definition: AliRDHFCuts.h:285
Float_t fCutRatioSignalNOverCrossRowsTPC
min. value ratio NTPCClusters/NTPCCrossedRows, cut if !=0
Definition: AliRDHFCuts.h:476
Int_t fGlobalIndex
Definition: AliRDHFCuts.h:434
virtual Bool_t IsInFiducialAcceptance(Double_t, Double_t) const
Definition: AliRDHFCuts.h:314
Int_t GetUseCentrality() const
Definition: AliRDHFCuts.h:281
void SetUseEMCALJET8TriggerPP2012()
Definition: AliRDHFCuts.h:154
Bool_t RecalcOwnPrimaryVtx(AliAODRecoDecayHF *d, AliAODEvent *aod) const
Int_t PtBin(Double_t pt) const
void SetOptPileup(Int_t opt=0)
Definition: AliRDHFCuts.h:224
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
void SetMaxVtxRdChi2(Float_t chi2=1e6)
Definition: AliRDHFCuts.h:61
TString fCutMinCrossedRowsTPCPtDep
min. value ratio TPCPointsUsedForPID/NTPCCrossedRows, cut if !=0
Definition: AliRDHFCuts.h:477
Bool_t IsEventRejectedDueToCentralityFlattening() const
Definition: AliRDHFCuts.h:340
void SetUseSemiCentralTriggerExclusively()
Definition: AliRDHFCuts.h:106
TH1F * GetHistoForCentralityFlattening()
Definition: AliRDHFCuts.h:287
Double_t fMinPtCand
outcome of PID selection
Definition: AliRDHFCuts.h:460
void SetUseHighMult7TriggerPP2012()
Definition: AliRDHFCuts.h:179
Bool_t IsDaughterSelected(AliAODTrack *track, const AliESDVertex *primary, AliESDtrackCuts *cuts, const AliAODEvent *aod=0x0) const
void ApplySPDMisalignedCutPP2012()
Definition: AliRDHFCuts.h:200
Float_t fMaxCentrality
minimum centrality for selected events
Definition: AliRDHFCuts.h:455
void SetTriggerMask(ULong64_t mask=0)
Definition: AliRDHFCuts.h:68
void SetUseCutGeoNcrNcl(Bool_t opt)
Definition: AliRDHFCuts.h:396
void SetUseEventsWithOnlySPDVertex(Bool_t flag=kTRUE)
Definition: AliRDHFCuts.h:56
void EnableEMCALTrigger()
Definition: AliRDHFCuts.h:110
Bool_t RecomputePrimaryVertex(AliAODEvent *event) const
Int_t fnVars
Definition: AliRDHFCuts.h:430