Request by Martin: added flag for big output
[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);
30
31 virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters);
32
33 using AliRDHFCuts::IsSelected;
937e1290 34 virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel)
35 {return IsSelected(obj,selectionLevel,0);}
36 virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent* aod);
37
3cbc09cd 38 Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);}
39 Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(1,iPtBin)] : 1.e6);}
937e1290 40 Int_t CombineSelectionLevels(Int_t selectionvalTrack,Int_t selectionvalCand,Int_t selectionvalPID)const;
c96634a2 41 virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
b14fe7f1 42 virtual void SetStandardCutsPP2010();
43 virtual void SetStandardCutsPbPb2010();
937e1290 44 virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd);
08ea5c32 45 Int_t IsSelectedPIDdefault(AliAODRecoDecayHF *rd);
937e1290 46 Int_t IsSelectedSpecialCuts(AliAODRecoDecayHF *d) const;
47 void SetUseSpecialCuts(Bool_t useSpecialCuts) {fUseSpecialCuts=useSpecialCuts;}
08ea5c32 48 void SetLowPt(Bool_t lowpt) {fLowPt=lowpt;}
937e1290 49 Bool_t GetUseSpecialCuts() const {return fUseSpecialCuts;}
08ea5c32 50 void SetUseDefaultPID(Bool_t defPID){fDefaultPID=defPID;}
51 Bool_t GetIsUsedDefPID(){return fDefaultPID;}
5f25117b 52 void SetUseKF(Bool_t useKF);
53 Bool_t GetIsUsedKF() const {return fUseKF;}
937e1290 54
55
650b3ced 56 protected:
5f25117b 57 Int_t IsSelectedKF(AliAODRecoDecayHF2Prong* d,AliAODEvent* aod) const;
58
59 Bool_t fUseSpecialCuts; // flag to switch on/off special cuts
08ea5c32 60 Bool_t fLowPt; // flag to switch on/off different pid for low pt D0
61 Bool_t fDefaultPID; // flag to switch on/off the default pid
5f25117b 62 Bool_t fUseKF; // flag to switch on/off D0 selection via KF
63
64 ClassDef(AliRDHFCutsD0toKpi,5); // class for cuts on AOD reconstructed D0->Kpi
650b3ced 65};
66
67#endif
aa8d25fe 68