Signatre for PbPb standard cuts
[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
6//***********************************************************
7// Class AliRDHFCutsD0toKpi
8// class for cuts on AOD reconstructed D0->Kpi
9// Author: A.Dainese, andrea.dainese@pd.infn.it
10//***********************************************************
11
12#include "AliRDHFCuts.h"
13
937e1290 14class AliAODEvent;
15class AliAODRecoDecayHF;
16
650b3ced 17class AliRDHFCutsD0toKpi : public AliRDHFCuts
18{
19 public:
20
a9b75906 21 AliRDHFCutsD0toKpi(const char* name="CutsD0toKpi");
650b3ced 22
23 virtual ~AliRDHFCutsD0toKpi(){}
24
25 AliRDHFCutsD0toKpi(const AliRDHFCutsD0toKpi& source);
26 AliRDHFCutsD0toKpi& operator=(const AliRDHFCutsD0toKpi& source);
27
28 virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters);
29
30 using AliRDHFCuts::IsSelected;
937e1290 31 virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel)
32 {return IsSelected(obj,selectionLevel,0);}
33 virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent* aod);
34
3cbc09cd 35 Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);}
36 Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(1,iPtBin)] : 1.e6);}
937e1290 37 Int_t CombineSelectionLevels(Int_t selectionvalTrack,Int_t selectionvalCand,Int_t selectionvalPID)const;
c96634a2 38 virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
39
937e1290 40 virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd);
08ea5c32 41 Int_t IsSelectedPIDdefault(AliAODRecoDecayHF *rd);
937e1290 42 Int_t IsSelectedSpecialCuts(AliAODRecoDecayHF *d) const;
43 void SetUseSpecialCuts(Bool_t useSpecialCuts) {fUseSpecialCuts=useSpecialCuts;}
08ea5c32 44 void SetLowPt(Bool_t lowpt) {fLowPt=lowpt;}
937e1290 45 Bool_t GetUseSpecialCuts() const {return fUseSpecialCuts;}
08ea5c32 46 void SetUseDefaultPID(Bool_t defPID){fDefaultPID=defPID;}
47 Bool_t GetIsUsedDefPID(){return fDefaultPID;}
937e1290 48
49
650b3ced 50 protected:
937e1290 51 Bool_t fUseSpecialCuts; // flag to switch on/off special cuts
08ea5c32 52 Bool_t fLowPt; // flag to switch on/off different pid for low pt D0
53 Bool_t fDefaultPID; // flag to switch on/off the default pid
0263dcd2 54 ClassDef(AliRDHFCutsD0toKpi,4); // class for cuts on AOD reconstructed D0->Kpi
650b3ced 55};
56
57#endif
aa8d25fe 58
08ea5c32 59