Update (Zaida)
[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);
41 Int_t IsSelectedSpecialCuts(AliAODRecoDecayHF *d) const;
42 void SetUseSpecialCuts(Bool_t useSpecialCuts) {fUseSpecialCuts=useSpecialCuts;}
937e1290 43 Bool_t GetUseSpecialCuts() const {return fUseSpecialCuts;}
937e1290 44
45
650b3ced 46 protected:
918b6831 47
937e1290 48 Bool_t fUseSpecialCuts; // flag to switch on/off special cuts
650b3ced 49
918b6831 50 ClassDef(AliRDHFCutsD0toKpi,3); // class for cuts on AOD reconstructed D0->Kpi
650b3ced 51};
52
53#endif
aa8d25fe 54