12 : stableOnly_(
cfg.getParameter<
bool>(
"stableOnly")),
16 const string excludeString(
"excludeList");
17 const string includeString(
"includeList");
19 vector<string> vPdtParams =
cfg.getParameterNamesForType<
vpdt>();
20 bool found =
std::find(vPdtParams.begin(), vPdtParams.end(), includeString) != vPdtParams.end();
22 includeList =
cfg.getParameter<
vpdt>(includeString);
23 found =
find(vPdtParams.begin(), vPdtParams.end(), excludeString) != vPdtParams.end();
26 const string partonsString(
"partons");
27 vector<string> vBoolParams =
cfg.getParameterNamesForType<
bool>();
28 found =
find(vBoolParams.begin(), vBoolParams.end(), partonsString) != vBoolParams.end();
31 bool bExclude =
false;
32 if (!includeList.empty())
38 throw cms::Exception(
"ConfigError",
"not allowed to use both includeList and excludeList at the same time\n");
45 throw cms::Exception(
"ConfigError",
"not allowed to have both stableOnly and partons true at the same time\n");
51 int id =
abs(
p.pdgId());
54 else if (
partons_ && (
p.numberOfDaughters() > 0 && (
p.daughter(0)->pdgId() == 91 ||
p.daughter(0)->pdgId() == 92)) &&
GenJetParticleSelector(const edm::ParameterSet &, edm::ConsumesCollector &iC)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
std::vector< PdtEntry > vpdt
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Abs< T >::type abs(const T &t)
void init(const edm::EventSetup &)
const edm::ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord > tableToken_
bool operator()(const reco::Candidate &)