AliPhysics  e59a9ba (e59a9ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMCHFParticleSelector.h
Go to the documentation of this file.
1 #ifndef ALIMCHFPARTICLESELECTOR_H
2 #define ALIMCHFPARTICLESELECTOR_H
3 
5 
7  public:
9  AliMCHFParticleSelector(const char *name);
10  virtual ~AliMCHFParticleSelector();
11 
12  void SetSpecialPDG(Int_t pdg) { fSpecialPDG = pdg ; }
13 
15  Bool_t GetRejectQuarkNotFound() const { return fRejectQuarkNotFound ; }
16 
17  void SetRejectDfromB(Bool_t c) { fRejectDfromB = c ; }
18  Bool_t GetRejectDfromB() const { return fRejectDfromB ; }
19 
20  void SetKeepOnlyDfromB(Bool_t c) { fKeepOnlyDfromB = c ; }
21  Bool_t GetKeepOnlyDfromB() const { return fKeepOnlyDfromB ; }
22 
23  void SetKeepOnlyD0toKpi(Bool_t c) { fKeepOnlyD0toKpi = c ; }
24  Bool_t GetKeepOnlyD0toKpi() const { return fKeepOnlyD0toKpi ; }
25 
27  Bool_t GetKeepOnlyDStartoKpipi() const { return fKeepOnlyDStartoKpipi ; }
28 
29  void SelectCharmtoD0toKpi();
31 
32  protected:
33  Bool_t AcceptParticle(AliAODMCParticle* part) const;
34 
35  Bool_t IsSpecialPDGDaughter(AliAODMCParticle* part) const;
36  Bool_t IsSpecialPDGDaughter(Int_t iPart) const;
37 
38  Int_t fSpecialPDG; // include particles with this PDG code even if they are not primary particles (and exclude their daughters)
39  Bool_t fRejectQuarkNotFound; // reject D mesons for which the original charm or bottom quark could not be found (MC)
40  Bool_t fRejectDfromB; // reject D mesons coming from a B meson decay (MC)
41  Bool_t fKeepOnlyDfromB; // only accept D mesons coming from a B meson decay (MC)
42  Bool_t fKeepOnlyD0toKpi; // only accept D0 mesons decaying to K pi
43  Bool_t fKeepOnlyDStartoKpipi; // only accept D* -> D0 pi -> K pi pi
44 
45  private:
46  AliMCHFParticleSelector(const AliMCHFParticleSelector&); // not implemented
47  AliMCHFParticleSelector &operator=(const AliMCHFParticleSelector&); // not implemented
48 
49  ClassDef(AliMCHFParticleSelector, 2); // Task to select particle in MC events
50 };
51 #endif
Int_t pdg
AliMCHFParticleSelector & operator=(const AliMCHFParticleSelector &)
Bool_t GetKeepOnlyDStartoKpipi() const
ClassDef(AliMCHFParticleSelector, 2)
Bool_t GetRejectQuarkNotFound() const
Bool_t IsSpecialPDGDaughter(AliAODMCParticle *part) const
Bool_t AcceptParticle(AliAODMCParticle *part) const