6#include "HepMC/GenEvent.h"
7#include "HepMC/GenParticle.h"
11 StatusCode stat = this->
getMC(mcParticles, selector);
20 StatusCode stat = this->
getDH(mcCollptr);
22 return StatusCode::FAILURE;
26 McEventCollection::const_iterator itr;
27 for (itr = mcCollptr->begin(); itr!=mcCollptr->end(); ++itr) {
29 const HepMC::GenEvent* genEvt = (*itr);
30 if(genEvt == 0)
return StatusCode::FAILURE;
32 HepMC::GenEvent::particle_const_iterator it= genEvt->particles_begin();
33 HepMC::GenEvent::particle_const_iterator en= genEvt->particles_end();
35 if((*selector)(*it)){mcParticles.push_back(*it);}
39 return StatusCode::SUCCESS;
std::vector< const HepMC::GenParticle * > MCparticleCollection
StatusCode getMC(MCparticleCollection &) const
StatusCode getDH(const McEventCollection *&) const