5 produces<reco::GenParticleCollection>();
24 for (reco::GenParticleCollection::const_iterator
t = src.begin();
t != src.end(); ++
t) {
26 bool hasTopMother =
false;
27 for (
unsigned idx = 0; idx <
t->numberOfMothers(); ++idx)
32 for (
unsigned idx = 0; idx <
t->numberOfMothers(); ++idx) {
35 t->mother(idx)->vertex(),
36 t->mother(idx)->pdgId(),
37 t->mother(idx)->status(),
39 std::unique_ptr<reco::GenParticle> ptr(cand);
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
TopInitSubset(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void fillOutput(const reco::GenParticleCollection &, reco::GenParticleCollection &)
~TopInitSubset() override
Abs< T >::type abs(const T &t)
void produce(edm::Event &, const edm::EventSetup &) override
RefProd< PROD > getRefBeforePut()
edm::EDGetTokenT< reco::GenParticleCollection > srcToken_