AliPhysics  fb6b143 (fb6b143)
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 
13 
16 
18  Bool_t GetRejectDfromB() const { return fRejectDfromB ; }
19 
22 
25 
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 &)
TCanvas * c
Definition: TestFitELoss.C:172
TString part
use mixed event to constrain combinatorial background
Definition: InvMassFit.C:52
int Int_t
Definition: External.C:63
Bool_t GetKeepOnlyDStartoKpipi() const
Bool_t GetRejectQuarkNotFound() const
bool Bool_t
Definition: External.C:53
Bool_t IsSpecialPDGDaughter(AliAODMCParticle *part) const
Bool_t AcceptParticle(AliAODMCParticle *part) const