#include <ClusterTPAssociation.h>
Public Types | |
using | const_iterator = typename map_type::const_iterator |
using | key_type = OmniClusterRef |
using | map_type = std::vector< value_type > |
using | mapped_type = TrackingParticleRef |
using | range = std::pair< const_iterator, const_iterator > |
using | value_type = std::pair< key_type, mapped_type > |
Public Member Functions | |
void | addKeyID (edm::ProductID id) |
const_iterator | begin () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
void | checkKeyProductID (const OmniClusterRef &key) const |
void | checkKeyProductID (const edm::ProductID &id) const |
void | checkMappedProductID (const edm::HandleBase &mappedHandle) const |
void | checkMappedProductID (const TrackingParticleRef &tp) const |
void | checkMappedProductID (const edm::ProductID &id) const |
ClusterTPAssociation () | |
ClusterTPAssociation (const edm::HandleBase &mappedHandle) | |
ClusterTPAssociation (const edm::ProductID &mappedProductId) | |
void | emplace_back (const OmniClusterRef &cluster, const TrackingParticleRef &tp) |
bool | empty () const |
const_iterator | end () const |
range | equal_range (const OmniClusterRef &key) const |
const map_type & | map () const |
size_t | size () const |
void | sortAndUnique () |
void | swap (ClusterTPAssociation &other) |
Static Private Member Functions | |
static bool | compare (const value_type &i, const value_type &j) |
static bool | compareSort (const value_type &i, const value_type &j) |
Private Attributes | |
edm::VecArray< edm::ProductID, 2 > | keyProductIDs_ |
map_type | map_ |
edm::ProductID | mappedProductId_ |
Maps OmniClusterRefs to TrackingParticleRefs
Assumes that the TrackingParticleRefs point to a single TrackingParticle collection.
Definition at line 21 of file ClusterTPAssociation.h.
using ClusterTPAssociation::const_iterator = typename map_type::const_iterator |
Definition at line 27 of file ClusterTPAssociation.h.
Definition at line 23 of file ClusterTPAssociation.h.
using ClusterTPAssociation::map_type = std::vector<value_type> |
Definition at line 26 of file ClusterTPAssociation.h.
Definition at line 24 of file ClusterTPAssociation.h.
using ClusterTPAssociation::range = std::pair<const_iterator, const_iterator> |
Definition at line 28 of file ClusterTPAssociation.h.
using ClusterTPAssociation::value_type = std::pair<key_type, mapped_type> |
Definition at line 25 of file ClusterTPAssociation.h.
|
inline |
Definition at line 30 of file ClusterTPAssociation.h.
|
inlineexplicit |
Definition at line 31 of file ClusterTPAssociation.h.
|
inlineexplicit |
Definition at line 32 of file ClusterTPAssociation.h.
|
inline |
Definition at line 34 of file ClusterTPAssociation.h.
References begin, edm::VecArray< T, N >::emplace_back(), end, spr::find(), and keyProductIDs_.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 72 of file ClusterTPAssociation.h.
References checkKeyProductID(), and OmniClusterRef::id().
Referenced by checkKeyProductID(), emplace_back(), and equal_range().
void ClusterTPAssociation::checkKeyProductID | ( | const edm::ProductID & | id | ) | const |
Definition at line 4 of file ClusterTPAssociation.cc.
References begin, MillePedeFileConverter_cfg::e, end, Exception, spr::find(), mps_fire::i, keyProductIDs_, and edm::VecArray< T, N >::size().
|
inline |
Definition at line 75 of file ClusterTPAssociation.h.
References checkMappedProductID(), and edm::HandleBase::id().
Referenced by checkMappedProductID(), and emplace_back().
|
inline |
Definition at line 76 of file ClusterTPAssociation.h.
References checkMappedProductID(), and edm::Ref< C, T, F >::id().
Referenced by checkMappedProductID().
void ClusterTPAssociation::checkMappedProductID | ( | const edm::ProductID & | id | ) | const |
Definition at line 19 of file ClusterTPAssociation.cc.
References Exception, and mappedProductId_.
|
inlinestaticprivate |
Definition at line 80 of file ClusterTPAssociation.h.
Referenced by compareSort(), and equal_range().
|
inlinestaticprivate |
Definition at line 84 of file ClusterTPAssociation.h.
References compare().
Referenced by sortAndUnique().
|
inline |
Definition at line 41 of file ClusterTPAssociation.h.
References checkKeyProductID(), checkMappedProductID(), OmniClusterRef::id(), and map_.
|
inline |
Definition at line 57 of file ClusterTPAssociation.h.
References map_.
Referenced by QuickTrackAssociatorByHitsImpl::associateTrack().
|
inline |
|
inline |
Definition at line 65 of file ClusterTPAssociation.h.
References checkKeyProductID(), compare(), and map_.
Referenced by QuickTrackAssociatorByHitsImpl::associateTrack(), QuickTrackAssociatorByHitsImpl::getDoubleCount(), and TrackingNtuple::matchCluster().
|
inline |
Definition at line 70 of file ClusterTPAssociation.h.
References map_.
Referenced by BDHadronTrackMonitoringAnalyzer::analyze().
|
inline |
Definition at line 58 of file ClusterTPAssociation.h.
References map_.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
|
inline |
Definition at line 46 of file ClusterTPAssociation.h.
References compareSort(), plotBeamSpotDB::last, map_, and tier0::unique().
|
inline |
Definition at line 52 of file ClusterTPAssociation.h.
References map_, mappedProductId_, and edm::ProductID::swap().
|
private |
Definition at line 91 of file ClusterTPAssociation.h.
Referenced by addKeyID(), and checkKeyProductID().
|
private |
Definition at line 90 of file ClusterTPAssociation.h.
Referenced by begin(), cbegin(), cend(), emplace_back(), empty(), end(), equal_range(), map(), size(), sortAndUnique(), and swap().
|
private |
Definition at line 92 of file ClusterTPAssociation.h.
Referenced by checkMappedProductID(), and swap().