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