89 edm::LogVerbatim(
"PartonSelector") <<
"=== GenParticle size:" << particles->size();
94 for (
size_t m = 0;
m < particles->size();
m++) {
101 bool isAParton =
false;
102 bool isALepton =
false;
110 flavour == 21 ) isAParton =
true;
116 flavour == 16 ) isALepton =
true;
120 if( aParticle.
status() == 3 && isAParton ) {
126 int nparton_daughters = 0;
132 if( (daughterFlavour == 1 || daughterFlavour == 2 || daughterFlavour == 3 ||
133 daughterFlavour == 4 || daughterFlavour == 5 || daughterFlavour == 6 || daughterFlavour == 21)) {
138 if(nparton_daughters == 0){
155 iEvent.
put( thePartons );
virtual int pdgId() const
PDG identifier.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual int status() const
status word
edm::Ref< GenParticleCollection > GenParticleRef
persistent reference to a GenParticle
edm::EDGetTokenT< reco::GenParticleCollection > tokenGenParticles_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual size_t numberOfDaughters() const
number of daughters
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
Abs< T >::type abs(const T &t)
virtual int pdgId() const =0
PDG identifier.
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
int flavour(const Candidate &part)