1 #ifndef CommonTools_UtilAlgos_AssociationMapOneToOne2Association_h 2 #define CommonTools_UtilAlgos_AssociationMapOneToOne2Association_h 16 template<
typename CKey,
typename CVal>
33 template<
typename CKey,
typename CVal>
39 template<
typename CKey,
typename CVal>
46 unique_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());
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
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
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
def template(fileName, svg, replaceme="REPLACEME")
edm::AssociationMap< edm::OneToOne< CKey, CVal > > am_t
edm::EDGetTokenT< am_t > am_