12 : stableOnly_(cfg.getParameter<bool>(
"stableOnly")),
16 const string excludeString(
"excludeList");
17 const string includeString(
"includeList");
18 vpdt includeList, excludeList;
20 bool found =
std::find(vPdtParams.begin(), vPdtParams.end(), includeString) != vPdtParams.end();
23 found =
find(vPdtParams.begin(), vPdtParams.end(), excludeString) != vPdtParams.end();
26 const string partonsString(
"partons");
28 found =
find(vBoolParams.begin(), vBoolParams.end(), partonsString) != vBoolParams.end();
31 bool bExclude =
false;
32 if (!includeList.empty())
34 if (!excludeList.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");
GenJetParticleSelector(const edm::ParameterSet &, edm::ConsumesCollector &iC)
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)
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
bool getData(T &iHolder) const
virtual size_type numberOfDaughters() const =0
number of daughters
Abs< T >::type abs(const T &t)
void init(const edm::EventSetup &)
virtual int pdgId() const =0
PDG identifier.
const edm::ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord > tableToken_
T getParameter(std::string const &) const
bool operator()(const reco::Candidate &)