1 #ifndef SimTracker_TrackerHitAssociation_ClusterTPAssociation_h 2 #define SimTracker_TrackerHitAssociation_ClusterTPAssociation_h 28 using range = std::pair<const_iterator, const_iterator>;
44 map_.emplace_back(cluster, tp);
81 return i.first.rawIndex() > j.first.rawIndex();
87 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
void checkKeyProductID(const OmniClusterRef &key) const
const_iterator begin() const
typename map_type::const_iterator const_iterator
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void swap(ProductID &other)
void emplace_back(Args &&...args)
edm::ProductID mappedProductId_
ProductID id() const
Accessor for product ID.
const_iterator end() const
void addKeyID(edm::ProductID id)
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
edm::ProductID id() const
std::pair< const_iterator, const_iterator > range
const map_type & map() const
edm::VecArray< edm::ProductID, 2 > keyProductIDs_
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)