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