Go to the documentation of this file.
52 produces<reco::GenParticleRefVector>();
55 if (iConfig.
exists(
"acceptNoDaughters")) {
56 acceptNoDaughters = iConfig.
getParameter<
bool>(
"acceptNoDaughters");
58 acceptNoDaughters =
false;
60 if (iConfig.
exists(
"skipFirstN")) {
61 skipFirstN = iConfig.
getParameter<
unsigned int>(
"skipFirstN");
65 if (iConfig.
exists(
"withTop")) {
85 auto thePartons = std::make_unique<GenParticleRefVector>();
94 bool isAParton =
false;
95 bool isALepton =
false;
104 if (aParticle.
status() == 3 && isAParton) {
110 int nparton_daughters = 0;
114 if ((daughterFlavour == 1 || daughterFlavour == 2 || daughterFlavour == 3 || daughterFlavour == 4 ||
115 daughterFlavour == 5 || daughterFlavour == 6 || daughterFlavour == 21)) {
119 if (nparton_daughters == 0) {
~PartonSelector() override
size_t numberOfDaughters() const override
number of daughters
int status() const final
status word
edm::Ref< edm::HepMCProduct, HepMC::GenParticle > GenParticleRef
PartonSelector(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
int pdgId() const final
PDG identifier.
edm::EDGetTokenT< reco::GenParticleCollection > tokenGenParticles_
virtual int pdgId() const =0
PDG identifier.
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode)
Abs< T >::type abs(const T &t)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override