1 #ifndef SimTracker_TrackerHitAssociation_ClusterTPAssociation_h 2 #define SimTracker_TrackerHitAssociation_ClusterTPAssociation_h 27 using range = std::pair<const_iterator, const_iterator>;
35 map_.emplace_back(cluster, tp);
68 return i.first.rawIndex() > j.first.rawIndex();
74 return compare(i, j) || (i.first.rawIndex() == j.first.rawIndex() && i.second.key() > j.second.key());
const_iterator cbegin() const
void checkMappedProductID(const TrackingParticleRef &tp) const
const_iterator begin() const
typename map_type::const_iterator const_iterator
void swap(ProductID &other)
edm::ProductID mappedProductId_
ProductID id() const
Accessor for product ID.
const_iterator end() const
const_iterator cend() const
def unique(seq, keepstr=True)
static bool compareSort(const value_type &i, const value_type &j)
range equal_range(const OmniClusterRef &key) const
static bool compare(const value_type &i, const value_type &j)
std::vector< value_type > map_type
ClusterTPAssociation(const edm::HandleBase &mappedHandle)
void swap(ClusterTPAssociation &other)
void checkMappedProductID(const edm::HandleBase &mappedHandle) const
std::pair< const_iterator, const_iterator > range
const map_type & map() const
std::pair< key_type, mapped_type > value_type
edm::Ref< TrackingParticleCollection > TrackingParticleRef
void emplace_back(const OmniClusterRef &cluster, const TrackingParticleRef &tp)
ClusterTPAssociation(const edm::ProductID &mappedProductId)