AliPhysics  720d1f3 (720d1f3)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliHFAODMCParticleContainer.h
Go to the documentation of this file.
1 
13 #ifndef ALIHFAODMCPARTICLECONTAINER_H
14 #define ALIHFAODMCPARTICLECONTAINER_H
15 
16 /**************************************************************************
17 * Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
18 * *
19 * Author: The ALICE Off-line Project. *
20 * Contributors are mentioned in the code where appropriate. *
21 * *
22 * Permission to use, copy, modify and distribute this software and its *
23 * documentation strictly for non-commercial purposes is hereby granted *
24 * without fee, provided that the above copyright notice appears in all *
25 * copies and that both the copyright notice and this permission notice *
26 * appear in the supporting documentation. The authors make no claims *
27 * about the suitability of this software for any purpose. It is *
28 * provided "as is" without express or implied warranty. *
29 **************************************************************************/
30 
31 #include "AliMCParticleContainer.h"
33 
35  public:
37  AliHFAODMCParticleContainer(const char *name);
38 
40 
43 
46 
49 
52 
55 
56  void SelectCharmtoD0toKpi();
58 
59  virtual Bool_t AcceptMCParticle(const AliAODMCParticle *vp, UInt_t &rejectionReason) const;
60  virtual Bool_t AcceptMCParticle(Int_t i, UInt_t &rejectionReason) const;
61 
62  Bool_t IsSpecialPDGFound() const;
63 
64  void SetHistOrigin(TH1* h) { fHistOrigin = h; }
65 
66  protected:
67  Bool_t IsSpecialPDGDaughter(const AliAODMCParticle* part) const;
68  Bool_t IsSpecialPDG(const AliAODMCParticle* part, TH1* histOrigin = 0) const;
69 
74 
75  private:
78 
80  ClassDef(AliHFAODMCParticleContainer, 2);
82 };
83 #endif
AliHFAODMCParticleContainer()
This is the default constructor, used for ROOT I/O purposes.
Int_t pdg
Analysis task for D meson jets.
TCanvas * c
Definition: TestFitELoss.C:172
virtual Bool_t AcceptMCParticle(const AliAODMCParticle *vp, UInt_t &rejectionReason) const
Bool_t IsSpecialPDGDaughter(const AliAODMCParticle *part) const
UInt_t fAcceptedDecay
Bit mask with D meson decays that are accepted.
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
Int_t fSpecialPDG
include particles with this PDG code even if they are not primary particles (and exclude their daught...
void SelectCharmtoDStartoKpipi()
Automatically sets parameters to select only the decay chain c->D*->Kpipi.
UInt_t fRejectedOrigin
Bit mask with D meson origins that are rejected.
Select MC particles based on specific prescriptions of HF analysis.
Bool_t IsSpecialPDG(const AliAODMCParticle *part, TH1 *histOrigin=0) const
void SelectCharmtoD0toKpi()
Automatically sets parameters to select only the decay chain c->D0->Kpi.
AliHFAODMCParticleContainer & operator=(const AliHFAODMCParticleContainer &)
bool Bool_t
Definition: External.C:53
Container for MC-true particles within the EMCAL framework.
Definition: External.C:196
TH1 * fHistOrigin
! Book-keeping histogram with origin of special PDG particles