25 produces<reco::GenParticleCollection>();
33 auto sel = std::make_unique<reco::GenParticleCollection>();
42 for (
auto const&
t :
src) {
44 bool hasTopMother =
false;
45 for (
unsigned idx = 0;
idx <
t.numberOfMothers(); ++
idx)
50 for (
unsigned idx = 0;
idx <
t.numberOfMothers(); ++
idx) {
51 sel.emplace_back(
t.mother(
idx)->threeCharge(),
53 t.mother(
idx)->vertex(),
54 t.mother(
idx)->pdgId(),
55 t.mother(
idx)->status(),
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 produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
RefProd< PROD > getRefBeforePut()
edm::EDGetTokenT< reco::GenParticleCollection > srcToken_
void fillOutput(const reco::GenParticleCollection &, reco::GenParticleCollection &) const