int InitRun(PHCompositeNode *topNode)
int _theParticle
The particle you want to have in your output.
virtual void AddDaughter(const int pid)
Add decay products of the particle you want in your output.
HepMC::GenParticle * GetParent(HepMC::GenParticle *p, HepMC::GenEvent *event)
find out if a particle comes from one of _theAncestors
PHHepMCParticleSelectorDecayProductChain(const std::string &name="PARTICLESELECTOR")
virtual ~PHHepMCParticleSelectorDecayProductChain()
virtual void AddAncestor(const int pid)
Add an ancestor of the particle you want in your output.
virtual void SetParticle(const int pid)
Set the ID of the particle you want in your output.
int process_event(PHCompositeNode *topNode)