#include <AssociationMap.h>
Classes | |
struct | const_iterator |
const iterator More... | |
struct | Find |
find helper More... | |
Public Types | |
typedef Tag::data_type | data_type |
insert data type More... | |
typedef Tag::index_type | index_type |
index type More... | |
typedef std::map< index_type, value_type > | internal_transient_map_type |
transient map type More... | |
typedef Tag::key_type | key_type |
insert key type More... | |
typedef Tag::map_type | map_type |
map type More... | |
typedef Tag::ref_type | ref_type |
reference set type More... | |
typedef value_type::value_type | result_type |
result type More... | |
typedef AssociationMap< Tag > | self |
self type More... | |
typedef map_type::size_type | size_type |
size type More... | |
typedef helpers::KeyVal < key_type, internal_val_type > | value_type |
value type More... | |
Public Member Functions | |
AssociationMap () | |
default constructor More... | |
AssociationMap (const ref_type &ref) | |
default constructor More... | |
const_iterator | begin () const |
first iterator over the map (read only) More... | |
void | clear () |
clear map More... | |
bool | empty () const |
return true if empty More... | |
const_iterator | end () const |
last iterator over the map (read only) More... | |
size_type | erase (const key_type &k) |
erase the element whose key is k More... | |
const_iterator | find (const key_type &k) const |
find element with specified reference key More... | |
void | insert (const key_type &k, const data_type &v) |
insert an association More... | |
void | insert (const value_type &kv) |
Tag::transient_key_vector | keys () |
Tag::transient_map_type | map () |
size_type | numberOfAssociations (const key_type &k) const |
number of associations to a key More... | |
const result_type & | operator[] (const key_type &k) const |
find element with specified reference key More... | |
void | post_insert () |
post insert action More... | |
const ref_type & | refProd () const |
return ref-prod structure More... | |
size_type | size () const |
map size More... | |
Tag::transient_val_vector | values () |
Private Types | |
typedef Tag::val_type | internal_val_type |
insert key type More... | |
Private Member Functions | |
const_iterator | find (size_type i) const |
find element with index i More... | |
const value_type & | operator[] (size_type i) const |
return value_typeelement with key i More... | |
Private Attributes | |
map_type | map_ |
index map More... | |
ref_type | ref_ |
reference set More... | |
internal_transient_map_type | transientMap_ |
transient reference map More... | |
Friends | |
struct | const_iterator |
struct | Find |
template<typename , typename , typename > | |
class | OneToMany |
template<typename , typename , typename , typename > | |
class | OneToManyWithQuality |
template<typename , typename , typename > | |
class | OneToOne |
template<typename , typename , typename > | |
class | OneToValue |
struct | refhelper::FindTrait< self, value_type > |
one-to-many or one-to-one associative map using EDM references
Definition at line 21 of file AssociationMap.h.
typedef Tag::data_type edm::AssociationMap< Tag >::data_type |
insert data type
Definition at line 32 of file AssociationMap.h.
typedef Tag::index_type edm::AssociationMap< Tag >::index_type |
index type
Definition at line 28 of file AssociationMap.h.
typedef std::map<index_type, value_type> edm::AssociationMap< Tag >::internal_transient_map_type |
transient map type
Definition at line 44 of file AssociationMap.h.
|
private |
insert key type
Definition at line 23 of file AssociationMap.h.
typedef Tag::key_type edm::AssociationMap< Tag >::key_type |
insert key type
Definition at line 30 of file AssociationMap.h.
typedef Tag::map_type edm::AssociationMap< Tag >::map_type |
map type
Definition at line 36 of file AssociationMap.h.
typedef Tag::ref_type edm::AssociationMap< Tag >::ref_type |
reference set type
Definition at line 34 of file AssociationMap.h.
typedef value_type::value_type edm::AssociationMap< Tag >::result_type |
result type
Definition at line 42 of file AssociationMap.h.
typedef AssociationMap<Tag> edm::AssociationMap< Tag >::self |
self type
Definition at line 26 of file AssociationMap.h.
typedef map_type::size_type edm::AssociationMap< Tag >::size_type |
size type
Definition at line 38 of file AssociationMap.h.
typedef helpers::KeyVal<key_type, internal_val_type> edm::AssociationMap< Tag >::value_type |
value type
Definition at line 40 of file AssociationMap.h.
|
inline |
|
inlineexplicit |
|
inline |
first iterator over the map (read only)
Definition at line 91 of file AssociationMap.h.
Referenced by DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), reco::JetTrackMatch< JetC >::allJets(), SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), L25TauAnalyzer::matchedToPFTau(), ShallowSimTracksProducer::produce(), DeDxEstimatorProducer::produce(), and DeDxDiscriminatorProducer::produce().
|
inline |
clear map
Definition at line 78 of file AssociationMap.h.
Referenced by python.Vispa.Views.WidgetView.WidgetView::closeEvent(), python.Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), python.Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), python.Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), python.Vispa.Views.WidgetView.WidgetView::setDataObjects(), python.Vispa.Views.TreeView.TreeView::updateContent(), python.Vispa.Views.TableView.TableView::updateContent(), python.Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and python.Vispa.Views.PropertyView.PropertyView::updateContent().
|
inline |
return true if empty
Definition at line 82 of file AssociationMap.h.
Referenced by python.Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and python.Vispa.Gui.VispaWidget.TextField::setAutotruncate().
|
inline |
last iterator over the map (read only)
Definition at line 93 of file AssociationMap.h.
Referenced by DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), reco::JetTrackMatch< JetC >::allJets(), MultiTrackValidator::analyze(), ValidationMisalignedTracker::analyze(), SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), TestTrackHits::analyze(), MuonTrackValidator::analyze(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::find(), L25TauAnalyzer::matchedToPFTau(), HLTEgammaCaloIsolFilterPairs::PassCaloIsolation(), MCTrackMatcher::produce(), ShallowSimTracksProducer::produce(), DeDxEstimatorProducer::produce(), DeDxDiscriminatorProducer::produce(), NuclearInteractionEDProducer::produce(), TrackAlgoCompareUtil::produce(), muon::tevOptimized(), muon::tevOptimizedOld(), and tevOptimizedTMR().
|
inline |
erase the element whose key is k
Definition at line 100 of file AssociationMap.h.
|
inline |
find element with specified reference key
Definition at line 95 of file AssociationMap.h.
Referenced by MultiTrackValidator::analyze(), ValidationMisalignedTracker::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), TestTrackHits::analyze(), MuonTrackValidator::analyze(), pat::ElectronSelector::electronID_(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::find(), HLTEgammaCaloIsolFilterPairs::PassCaloIsolation(), MCTrackMatcher::produce(), HFRecoEcalCandidateAlgo::produce(), NuclearInteractionEDProducer::produce(), TrackAlgoCompareUtil::produce(), muon::tevOptimized(), muon::tevOptimizedOld(), and tevOptimizedTMR().
|
inlineprivate |
find element with index i
Definition at line 161 of file AssociationMap.h.
|
inline |
insert an association
Definition at line 84 of file AssociationMap.h.
Referenced by VertexAssociatorByTracks::associateRecoToSim(), TrackAssociatorByHits::associateRecoToSim(), MuonAssociatorByHits::associateRecoToSim(), TrackAssociatorByPosition::associateRecoToSim(), TrackAssociatorByChi2::associateRecoToSim(), VertexAssociatorByTracks::associateSimToReco(), TrackAssociatorByHits::associateSimToReco(), MuonAssociatorByHits::associateSimToReco(), TrackAssociatorByPosition::associateSimToReco(), TrackAssociatorByChi2::associateSimToReco(), reco::JetTrackMatch< JetC >::insert(), CosmicMuonLinksProducer::mapTracks(), EgammaHLTCombinedIsolationProducer::produce(), EgammaHLTClusterShapeProducer::produce(), EgammaHLTR9Producer::produce(), EgammaHLTElectronDetaDphiProducer::produce(), EgammaHLTR9IDProducer::produce(), EgammaHLTEcalRecIsolationProducer::produce(), EgammaHLTElectronTrackIsolationProducers::produce(), EgammaHLTPhotonTrackIsolationProducersRegional::produce(), EgammaHLTHcalIsolationDoubleConeProducers::produce(), EgammaHLTEcalIsolationProducersRegional::produce(), EgammaHLTHcalIsolationProducersRegional::produce(), and NuclearTrackCorrector::produce().
|
inline |
Definition at line 87 of file AssociationMap.h.
|
inline |
fill and return a transient key vector required for ROOT interactive usage
Definition at line 127 of file AssociationMap.h.
|
inline |
fill and return a transient map required for ROOT interactive usage
Definition at line 122 of file AssociationMap.h.
|
inline |
number of associations to a key
Definition at line 111 of file AssociationMap.h.
Referenced by VertexAssociatorByTracks::associateRecoToSim(), and VertexAssociatorByTracks::associateSimToReco().
|
inline |
find element with specified reference key
Definition at line 106 of file AssociationMap.h.
Referenced by edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::operator[]().
|
inlineprivate |
return value_typeelement with key i
Definition at line 167 of file AssociationMap.h.
|
inline |
post insert action
Definition at line 136 of file AssociationMap.h.
Referenced by MuonTrackValidator::analyze(), TrackAssociatorByHits::associateRecoToSim(), MuonAssociatorByHits::associateRecoToSim(), TrackAssociatorByPosition::associateRecoToSim(), TrackAssociatorByChi2::associateRecoToSim(), TrackAssociatorByHits::associateSimToReco(), MuonAssociatorByHits::associateSimToReco(), TrackAssociatorByPosition::associateSimToReco(), and TrackAssociatorByChi2::associateSimToReco().
|
inline |
|
inline |
map size
Definition at line 80 of file AssociationMap.h.
Referenced by SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), TkConvValidator::analyze(), VertexAssociatorByTracks::associateRecoToSim(), TrackAssociatorByHits::associateRecoToSim(), VertexAssociatorByTracks::associateSimToReco(), TrackAssociatorByHits::associateSimToReco(), CosmicMuonLinksProducer::produce(), DeDxEstimatorProducer::produce(), and DeDxDiscriminatorProducer::produce().
|
inline |
fill and return a transient key vector required for ROOT interactive usage
Definition at line 132 of file AssociationMap.h.
|
friend |
Definition at line 181 of file AssociationMap.h.
Referenced by edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::begin(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::end(), and edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::find().
|
friend |
Definition at line 182 of file AssociationMap.h.
Definition at line 186 of file AssociationMap.h.
|
friend |
Definition at line 187 of file AssociationMap.h.
Definition at line 185 of file AssociationMap.h.
Definition at line 184 of file AssociationMap.h.
|
friend |
Definition at line 183 of file AssociationMap.h.
|
private |
index map
Definition at line 157 of file AssociationMap.h.
Referenced by edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::begin(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::clear(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::empty(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::end(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::erase(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::insert(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::keys(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::map(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::numberOfAssociations(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::operator[](), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::post_insert(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::size(), and edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::values().
|
private |
reference set
Definition at line 155 of file AssociationMap.h.
Referenced by edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::find(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::insert(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::keys(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::map(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::numberOfAssociations(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::operator[](), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::refProd(), and edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::values().
|
mutableprivate |
transient reference map
Definition at line 159 of file AssociationMap.h.
Referenced by edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::clear(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::erase(), and edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::operator[]().