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
int pdgId() const final
PDG identifier.
bool isBCMeson(const reco::GenParticle &gp)
double eta() const final
momentum pseudorapidity
bool filter(const edm::Event &iEvent)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool isBCBaryon(const reco::GenParticle &gp)
size_t numberOfMothers() const override
number of mothers
bool hasBCAncestors(const reco::GenParticle &gp)
BCToEFilterAlgo(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< reco::GenParticleCollection > genParSource_
double et() const final
transverse energy
Abs< T >::type abs(const T &t)
daughters::value_type motherRef(size_type i=0) const
reference to mother at given position
int status() const final
status word
bool isBCHadron(const reco::GenParticle &gp)