11 stableOnly_(cfg.getParameter<bool>(
"stableOnly")),
13 const string excludeString(
"excludeList");
14 const string includeString(
"includeList");
15 vpdt includeList, excludeList;
17 bool found =
std::find(vPdtParams.begin(), vPdtParams.end(), includeString) != vPdtParams.end();
19 found =
find(vPdtParams.begin(), vPdtParams.end(), excludeString) != vPdtParams.end();
21 const string partonsString(
"partons");
23 found =
find(vBoolParams.begin(), vBoolParams.end(), partonsString) != vBoolParams.end();
25 bool bExclude =
false;
26 if (includeList.size() > 0)
bInclude_ =
true;
27 if (excludeList.size() > 0) bExclude =
true;
30 throw cms::Exception(
"ConfigError",
"not allowed to use both includeList and excludeList at the same time\n");
39 throw cms::Exception(
"ConfigError",
"not allowed to have both stableOnly and partons true at the same time\n");
T getParameter(std::string const &) const
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual int status() const =0
status word
std::vector< PdtEntry > vpdt
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
GenJetParticleSelector(const edm::ParameterSet &)
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
virtual size_type numberOfDaughters() const =0
number of daughters
void init(const edm::EventSetup &)
virtual int pdgId() const =0
PDG identifier.
bool operator()(const reco::Candidate &)