Go to the documentation of this file.
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);
RefProd< PROD > getRefBeforePut()
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::GenParticleCollection > srcToken_
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TopInitSubset(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Abs< T >::type abs(const T &t)
void fillOutput(const reco::GenParticleCollection &, reco::GenParticleCollection &)
~TopInitSubset() override