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_(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());
edm::Association< CVal > as_t
void insert(const H &h, I begin, I end)
void produce(edm::Event &, const edm::EventSetup &)
AssociationMapOneToOne2Association(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::AssociationMap< edm::OneToOne< CKey, CVal > > am_t
tuple size
Write out results.