32 for (uint32_t ig=0;ig<genPars.size();ig++) {
71 uint32_t hundreds=pdgid%1000;
72 if (hundreds>=400 && hundreds<600) {
83 uint32_t thousands=pdgid%10000;
84 if (thousands>=4000 && thousands <6000) {
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
T getParameter(std::string const &) const
virtual int pdgId() const
PDG identifier.
bool isBCMeson(const reco::GenParticle &gp)
virtual double et() const
transverse energy
bool filter(const edm::Event &iEvent)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool isBCBaryon(const reco::GenParticle &gp)
virtual int status() const
status word
bool hasBCAncestors(const reco::GenParticle &gp)
virtual double eta() const
momentum pseudorapidity
BCToEFilterAlgo(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< reco::GenParticleCollection > genParSource_
virtual size_t numberOfMothers() const
number of mothers
Abs< T >::type abs(const T &t)
daughters::value_type motherRef(size_type i=0) const
reference to mother at given position
bool isBCHadron(const reco::GenParticle &gp)