1 #ifndef HepMCCandAlgos_MCTruthPairSelector_h
2 #define HepMCCandAlgos_MCTruthPairSelector_h
18 for (
I i = begin;
i !=
end; ++
i)
51 std::vector<std::string> bools = cfg.template getParameterNamesForType<bool>();
55 typedef std::vector<int>
vint;
56 std::vector<std::string> ints = cfg.template getParameterNamesForType<vint>();
57 found =
find(ints.begin(), ints.end(), matchPDGId) != ints.end();
59 vint ids = cfg.template getParameter<vint>(matchPDGId);
const edm::EventSetup & c
virtual int status() const =0
status word
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
static helpers::MCTruthPairSelector< T > make(const edm::ParameterSet &cfg)
Abs< T >::type abs(const T &t)
const std::complex< double > I
virtual int charge() const =0
electric charge
virtual int pdgId() const =0
PDG identifier.
MCTruthPairSelector(bool checkCharge=false)
MCTruthPairSelector(const I &begin, const I &end, bool checkCharge=false)
bool operator()(const T &c, const reco::Candidate &mc) const
std::set< int > matchIds_