1 #ifndef DataFormats_Common_Association_h 2 #define DataFormats_Common_Association_h 33 template <
typename RefKey>
35 return get(r.id(), r.key());
44 if (
k >=
ref_->size())
116 template <
typename C>
121 template <
typename C>
reference_type operator[](const RefKey &r) const
void add(const Association< C > &association)
Association< C > operator+(const Association< C > &a1, const Association< C > &a2)
void setRef(const refprod_type &ref)
void swap(ValueMap &other)
Association< C > & operator+=(const Association< C > &o)
#define CMS_CLASS_VERSION(_version_)
size_t rawIndexOf(ProductID id, size_t idx) const
void swap(Association< C > &lhs, Association< C > &rhs)
Ref< typename refprod_type::product_type > reference_type
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
const id_offset_vector & ids() const
meant to be used in AssociativeIterator, not by the ordinary user
std::tuple< layerClusterToCaloParticle, caloParticleToLayerCluster > association
std::vector< std::pair< ProductID, offset > > id_offset_vector
void swap(Association &other)
void add(const Association< C > &o)
void add(const ValueMap< T > &o)
void swap(RefProd< C > &)
ProductID id() const
Accessor for product ID.
edm::RefProd< C > refprod_type
Filler(Association< C > &association)
bool contains(ProductID id) const
void throwIndexMapBound() const
helper::Filler< Association< C > > base
bool isNull() const
Checks for null.
std::vector< std::pair< ProductID, offset > > id_offset_vector
meant to be used in AssociativeIterator, not by the ordinary user
Association & operator=(Association const &rhs)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
bool contains(ProductID id) const