Go to the documentation of this file.
69 void checkWBosons(std::vector<const reco::GenParticle*>& tops)
const;
73 void fillListing(
const std::vector<const reco::GenParticle*>& primalTops,
74 const std::vector<const reco::GenParticle*>& decayingTops,
114 std::map<int, std::vector<int> >
refs_;
const reco::GenParticle * findLastParticleInChain(const reco::GenParticle *p)
std::vector< const reco::GenParticle * > findTops(const reco::GenParticleCollection &parts)
find top quarks in list of input particles
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
reco::Particle::LorentzVector p4(const std::vector< const reco::GenParticle * >::const_iterator top, int statusFlag)
calculate lorentz vector from input (dedicated to top reconstruction)
edm::EDGetTokenT< GenEventInfoProduct > genEventInfo_srcToken_
input tag for the genEventInfo source
~TopDecaySubset() override
default destructor
void addDaughters(int &idx, const reco::GenParticle::const_iterator part, reco::GenParticleCollection &target, bool recursive=true)
recursively fill vector for all further decay particles of a given particle
const reco::GenParticle * findPrimalW(const reco::GenParticle *top)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
ShowerModel showerModel_
parton shower mode (filled in checkShowerModel)
std::vector< const reco::GenParticle * > findPrimalTops(const reco::GenParticleCollection &parts)
edm::EDGetTokenT< reco::GenParticleCollection > srcToken_
input tag for the genParticle source
RunMode
supported modes to run the code
Module to produce the subset of generator particles directly contained in top decay chains.
ShowerModel
classification of potential shower types
ShowerModel checkShowerModel(const std::vector< const reco::GenParticle * > &tops) const
check the decay chain for the used shower model
void clearReferences()
clear references
std::vector< const reco::GenParticle * > findDecayingTops(const reco::GenParticleCollection &parts)
bool addRadiation_
add radiation or not?
void fillReferences(const reco::GenParticleRefProd &refProd, reco::GenParticleCollection &target)
fill references for output vector
void produce(edm::Event &event, const edm::EventSetup &setup) override
write output into the event
std::map< int, std::vector< int > > refs_
management of daughter indices for fillRefs
TopDecaySubset(const edm::ParameterSet &cfg)
default constructor
RunMode runMode_
run mode (Run1 || Run2)
void checkWBosons(std::vector< const reco::GenParticle * > &tops) const
check whether W bosons are contained in the original gen particle listing
void addRadiation(int &idx, const reco::GenParticle::const_iterator part, reco::GenParticleCollection &target)
fill vector including all radiations from quarks originating from W/top
void fillListing(const std::vector< const reco::GenParticle * > &tops, reco::GenParticleCollection &target)
fill output vector for full decay chain