22 std::auto_ptr<reco::GenParticleRefVector> & partons)
25 for(reco::GenParticleCollection::const_iterator it = particles->begin(); it != particles->end(); ++it)
28 if( status==1 )
continue;
29 if( status==2 )
continue;
33 int nparton_daughters = 0;
34 for(
unsigned i=0;
i<it->numberOfDaughters(); ++
i)
40 if( nparton_daughters==0 )
virtual ~Pythia8PartonSelector()
bool isParton(const reco::Candidate &c)
void run(const edm::Handle< reco::GenParticleCollection > &particles, std::auto_ptr< reco::GenParticleRefVector > &partons)