11 HeavyQuarkFlavour=(int)iConfig.
getParameter<
int>(
"HQFlavour");
24 iEvent.
getByLabel(genParSource_,genParsHandle);
28 for (uint32_t ig=0;ig<genPars.size();ig++) {
30 if (
abs(gp.
pdgId())==HeavyQuarkFlavour) {
35 if(gp.
status()>=40 && fromMPI==
false){
42 if( hasMPIAncestor( &part) ){
66 if( hasMPIAncestor( &part )){
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
T getParameter(std::string const &) const
virtual int pdgId() const
PDG identifier.
virtual int status() const
status word
const_iterator end() const
Termination of iteration.
const_iterator begin() const
Initialize an iterator over the RefVector.
~HeavyQuarkFromMPIFilterAlgo()
bool filter(const edm::Event &iEvent)
bool hasMPIAncestor(const reco::GenParticle *)
const mothers & motherRefVector() const
references to mothers
Abs< T >::type abs(const T &t)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
HeavyQuarkFromMPIFilterAlgo(const edm::ParameterSet &)