AliPhysics  6cf2591 (6cf2591)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliRDHFCutsDplustoK0spi.h
Go to the documentation of this file.
1 #ifndef ALIRDHFCUTSDPLUSTOK0SPI_H
2 #define ALIRDHFCUTSDPLUSTOK0SPI_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  AliRDHFCutsDplustoK0spi(const char* name="CutsDplustoK0spi");
33  virtual ~AliRDHFCutsDplustoK0spi();
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 
75  AliESDtrackCuts* fV0daughtersCuts;
76 
77 
79  ClassDef(AliRDHFCutsDplustoK0spi, 1);
80 
82 };
83 
84 #endif
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)=0
double Double_t
Definition: External.C:58
Float_t GetMassCut(Int_t iPtBin=0) const
const Float_t * GetCuts() const
Definition: AliRDHFCuts.h:240
AliRDHFCutsDplustoK0spi(const char *name="CutsDplustoK0spi")
virtual AliESDtrackCuts * GetTrackCutsV0daughters() const
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *)
Definition: AliRDHFCuts.h:284
void SetExcludedCut(Int_t excludedCut)
Float_t fV0Type
cut to be excluded (-1=none)
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
virtual Bool_t IsInFiducialAcceptance(Double_t pt, Double_t y) const
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
AliRDHFCutsDplustoK0spi & operator=(const AliRDHFCutsDplustoK0spi &source)
Class for cuts on AOD reconstructed D+->K0S+pi.
Float_t * fCutsRD
fnVars*fnPtBins
Definition: AliRDHFCuts.h:401
AliESDtrackCuts * fV0daughtersCuts
V0 type – should be defined as in AliRDHFCuts.h.
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:277
void AddTrackCutsV0daughters(AliESDtrackCuts *v0daug)
bool Bool_t
Definition: External.C:53
virtual Bool_t IsInFiducialAcceptance(Double_t, Double_t) const
Definition: AliRDHFCuts.h:297
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
Bool_t AreDtoK0sDaughtersSelected(AliAODRecoDecayHF *rd) const
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *obj, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *obj)