1 #ifndef CommonTools_UtilAlgos_AssociationMapOneToOne2Association_h
2 #define CommonTools_UtilAlgos_AssociationMapOneToOne2Association_h
16 template<
typename CKey,
typename CVal>
33 template<
typename CKey,
typename CVal>
35 am_(consumes<
am_t>(cfg.
template getParameter<edm::InputTag>(
"src"))) {
39 template<
typename CKey,
typename CVal>
46 auto_ptr<as_t> as(
new as_t);
49 size_t size = am->size();
51 indices.reserve(
size);
53 indices.push_back(
i->val.key());
55 filler.
insert(am->refProd().key, indices.begin(), indices.end());
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::Association< CVal > as_t
void insert(const H &h, I begin, I end)
AssociationMapOneToOne2Association(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::AssociationMap< edm::OneToOne< CKey, CVal > > am_t
edm::EDGetTokenT< am_t > am_
tuple size
Write out results.