AliPhysics  63e47e1 (63e47e1)
AliRDHFCutsDstoK0sK.h
Go to the documentation of this file.
1 #ifndef ALIRDHFCUTSDSTOK0SK_H
2 #define ALIRDHFCUTSDSTOK0SK_H
3 /* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /* $Id$ */
7 
16 
17 
18 #include "AliRDHFCuts.h"
19 
20 class AliAODEvent;
21 class AliAODRecoDecayHF;
22 class AliESDtrackCuts;
23 
24 
26 {
27 public:
28 
29 
30  AliRDHFCutsDstoK0sK(const char* name="CutsDstoK0sK");
33  virtual ~AliRDHFCutsDstoK0sK();
34 
35 
37  virtual void GetCutVarsForOpt(AliAODRecoDecayHF* obj, Float_t* vars, Int_t nvars, Int_t*pdgdaughters)
38  { return GetCutVarsForOpt(obj, vars, nvars, pdgdaughters, 0x0); }
39  virtual void GetCutVarsForOpt(AliAODRecoDecayHF* obj, Float_t* vars, Int_t nvars, Int_t* pdgdaughters, AliAODEvent* aod);
40 
42  virtual Int_t IsSelected(TObject* obj, Int_t selectionLevel)
43  { return IsSelected(obj, selectionLevel, 0); }
44  virtual Int_t IsSelected(TObject* obj, Int_t selectionLevel, AliAODEvent* aod);
45 
48 
50  virtual Bool_t IsInFiducialAcceptance(Double_t pt, Double_t y) const;
51 
52 
54  Int_t GetV0Type();
55 
56 
57  void AddTrackCutsV0daughters(AliESDtrackCuts* v0daug)
58  { delete fV0daughtersCuts; fV0daughtersCuts = new AliESDtrackCuts(*v0daug); }
59  virtual AliESDtrackCuts* GetTrackCutsV0daughters() const
60  { return fV0daughtersCuts; }
61 
62  Float_t GetMassCut(Int_t iPtBin=0) const
63  { return (GetCuts() ? fCutsRD[GetGlobalIndex(0, iPtBin)] : 1.e6);}
65  { return fExcludedCut; }
66  void SetExcludedCut(Int_t excludedCut)
67  { fExcludedCut = excludedCut; }
68 
69 
70 protected:
71 
72 
76 
79  AliESDtrackCuts* fV0daughtersCuts;
82 
83 
85  ClassDef(AliRDHFCutsDstoK0sK, 2);
86 
88 };
89 
90 #endif
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)=0
virtual Bool_t IsInFiducialAcceptance(Double_t pt, Double_t y) const
double Double_t
Definition: External.C:58
void AddTrackCutsV0daughters(AliESDtrackCuts *v0daug)
Bool_t AreDtoK0sDaughtersSelected(AliAODRecoDecayHF *rd) const
const Float_t * GetCuts() const
Definition: AliRDHFCuts.h:254
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *obj)
Float_t GetMassCut(Int_t iPtBin=0) const
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *)
Definition: AliRDHFCuts.h:299
Float_t fMaxPtStrongPid
PID option.
AliRDHFCutsDstoK0sK(const char *name="CutsDstoK0sK")
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
void SetMaxPtStrongPid(Float_t pid)
virtual AliESDtrackCuts * GetTrackCutsV0daughters() const
Class for cuts on AOD reconstructed Ds->K0S+K.
void SetExcludedCut(Int_t excludedCut)
Float_t * fCutsRD
fnVars*fnPtBins
Definition: AliRDHFCuts.h:432
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
void SetPidOption(Int_t opt)
AliRDHFCutsDstoK0sK & operator=(const AliRDHFCutsDstoK0sK &source)
AliESDtrackCuts * fV0daughtersCuts
V0 type – should be defined as in AliRDHFCuts.h.
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:292
bool Bool_t
Definition: External.C:53
Float_t fV0Type
cut to be excluded (-1=none)
Int_t fPidOption
cuts for v0 daughters (AOD converted to ESD on the fly!)
virtual Bool_t IsInFiducialAcceptance(Double_t, Double_t) const
Definition: AliRDHFCuts.h:312
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *obj, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const