Updated flow from AH
[u/mrichter/AliRoot.git] / PWG3 / vertexingHF / AliRDHFCutsD0toKpi.h
CommitLineData
650b3ced 1#ifndef ALIRDHFCUTSD0TOKPI_H
2#define ALIRDHFCUTSD0TOKPI_H
3/* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
27de2dfb 6/* $Id$ */
7
650b3ced 8//***********************************************************
9// Class AliRDHFCutsD0toKpi
10// class for cuts on AOD reconstructed D0->Kpi
11// Author: A.Dainese, andrea.dainese@pd.infn.it
12//***********************************************************
13
14#include "AliRDHFCuts.h"
15
937e1290 16class AliAODEvent;
17class AliAODRecoDecayHF;
5f25117b 18class AliAODRecoDecayHF2Prong;
937e1290 19
650b3ced 20class AliRDHFCutsD0toKpi : public AliRDHFCuts
21{
22 public:
23
a9b75906 24 AliRDHFCutsD0toKpi(const char* name="CutsD0toKpi");
650b3ced 25
26 virtual ~AliRDHFCutsD0toKpi(){}
27
28 AliRDHFCutsD0toKpi(const AliRDHFCutsD0toKpi& source);
29 AliRDHFCutsD0toKpi& operator=(const AliRDHFCutsD0toKpi& source);
a6003e0a 30
31 using AliRDHFCuts::GetCutVarsForOpt;
32 virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters){
33 return GetCutVarsForOpt(d,vars,nvars,pdgdaughters,0x0);
34 }
35 virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters,AliAODEvent *aod);
650b3ced 36
37 using AliRDHFCuts::IsSelected;
937e1290 38 virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel)
39 {return IsSelected(obj,selectionLevel,0);}
40 virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent* aod);
41
3cbc09cd 42 Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);}
43 Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(1,iPtBin)] : 1.e6);}
937e1290 44 Int_t CombineSelectionLevels(Int_t selectionvalTrack,Int_t selectionvalCand,Int_t selectionvalPID)const;
c96634a2 45 virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
b14fe7f1 46 virtual void SetStandardCutsPP2010();
47 virtual void SetStandardCutsPbPb2010();
937e1290 48 virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd);
08ea5c32 49 Int_t IsSelectedPIDdefault(AliAODRecoDecayHF *rd);
937e1290 50 Int_t IsSelectedSpecialCuts(AliAODRecoDecayHF *d) const;
51 void SetUseSpecialCuts(Bool_t useSpecialCuts) {fUseSpecialCuts=useSpecialCuts;}
08ea5c32 52 void SetLowPt(Bool_t lowpt) {fLowPt=lowpt;}
937e1290 53 Bool_t GetUseSpecialCuts() const {return fUseSpecialCuts;}
08ea5c32 54 void SetUseDefaultPID(Bool_t defPID){fDefaultPID=defPID;}
55 Bool_t GetIsUsedDefPID(){return fDefaultPID;}
5f25117b 56 void SetUseKF(Bool_t useKF);
57 Bool_t GetIsUsedKF() const {return fUseKF;}
937e1290 58
59
650b3ced 60 protected:
5f25117b 61 Int_t IsSelectedKF(AliAODRecoDecayHF2Prong* d,AliAODEvent* aod) const;
62
63 Bool_t fUseSpecialCuts; // flag to switch on/off special cuts
08ea5c32 64 Bool_t fLowPt; // flag to switch on/off different pid for low pt D0
65 Bool_t fDefaultPID; // flag to switch on/off the default pid
5f25117b 66 Bool_t fUseKF; // flag to switch on/off D0 selection via KF
67
68 ClassDef(AliRDHFCutsD0toKpi,5); // class for cuts on AOD reconstructed D0->Kpi
650b3ced 69};
70
71#endif
aa8d25fe 72