21 namespace modulesNew {
41 pdgId_(
cfg.getParameter<std::vector<int>>(
"matchPDGId")) {
42 produces<reco::GenParticleMatch>();
48 desc.add<std::vector<edm::InputTag>>(
"matchMaps");
49 desc.add<std::vector<int>>(
"matchPDGId");
60 std::vector<const GenParticleMatch *> maps;
62 for (
size_t i = 0;
i != nMaps; ++
i) {
65 maps.push_back(&*matchMap);
68 auto matchMap = std::make_unique<GenParticleMatch>(match.ref());
69 int size =
cands->size();
70 vector<int>::const_iterator begin =
pdgId_.begin(), end =
pdgId_.end();
74 for (
int i = 0;
i != size; ++
i) {
100 namespace modulesNew {
edm::EDGetTokenT< CandidateView > srcToken_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< edm::EDGetTokenT< reco::GenParticleMatch > > matchMapTokens_
MCTruthCompositeMatcher(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void addDefault(ParameterSetDescription const &psetDescription)
Abs< T >::type abs(const T &t)
def template(fileName, svg, replaceme="REPLACEME")
#define DEFINE_FWK_MODULE(type)
std::vector< int > pdgId_
MCTruthCompositeMatcher MCTruthCompositeMatcherNew
RefToBaseProd< T > makeRefToBaseProdFrom(RefToBase< T > const &iRef, Event const &iEvent)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)