#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 () |
Static Public Member Functions | |
static short | Class_Version () |
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 88 of file AssociationMap.h.
Referenced by DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), reco::JetTrackMatch< JetC >::allJets(), SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), FWTrackProxyBuilderFF::build(), L25TauAnalyzer::matchedToPFTau(), ShallowSimTracksProducer::produce(), DeDxEstimatorProducer::produce(), DeDxDiscriminatorProducer::produce(), PF_PU_AssoMapAlgos::SortAssociationMap(), PFCand_AssoMapAlgos::SortPFCandAssociationMap(), and FWTrackProxyBuilderFF::visibilityModelChanges().
|
inlinestatic |
Definition at line 148 of file AssociationMap.h.
|
inline |
clear map
Definition at line 75 of file AssociationMap.h.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
|
inline |
return true if empty
Definition at line 79 of file AssociationMap.h.
Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
|
inline |
last iterator over the map (read only)
Definition at line 90 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(), FWTrackProxyBuilderFF::build(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::find(), muon::getTevRefitTrack(), L25TauAnalyzer::matchedToPFTau(), HLTEgammaCaloIsolFilterPairs::PassCaloIsolation(), MCTrackMatcher::produce(), ShallowSimTracksProducer::produce(), DeDxEstimatorProducer::produce(), DeDxDiscriminatorProducer::produce(), NuclearInteractionEDProducer::produce(), TrackAlgoCompareUtil::produce(), PF_PU_AssoMapAlgos::SortAssociationMap(), PFCand_AssoMapAlgos::SortPFCandAssociationMap(), and tevOptimizedTMR().
|
inline |
erase the element whose key is k
Definition at line 97 of file AssociationMap.h.
|
inline |
find element with specified reference key
Definition at line 92 of file AssociationMap.h.
Referenced by BeautifulSoup.Tag::__getattr__(), 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(), BeautifulSoup.Tag::firstText(), muon::getTevRefitTrack(), HLTEgammaCaloIsolFilterPairs::PassCaloIsolation(), MCTrackMatcher::produce(), HFRecoEcalCandidateAlgo::produce(), NuclearInteractionEDProducer::produce(), TrackAlgoCompareUtil::produce(), and tevOptimizedTMR().
|
inlineprivate |
find element with index i
Definition at line 158 of file AssociationMap.h.
Referenced by BeautifulSoup.Tag::__getattr__(), and BeautifulSoup.Tag::firstText().
|
inline |
insert an association
Definition at line 81 of file AssociationMap.h.
Referenced by BeautifulSoup.PageElement::_invert(), VertexAssociatorByTracks::associateRecoToSim(), TrackAssociatorByHits::associateRecoToSim(), MuonAssociatorByHits::associateRecoToSim(), TrackAssociatorByPosition::associateRecoToSim(), TrackAssociatorByChi2::associateRecoToSim(), QuickTrackAssociatorByHits::associateRecoToSimImplementation(), VertexAssociatorByTracks::associateSimToReco(), TrackAssociatorByHits::associateSimToReco(), MuonAssociatorByHits::associateSimToReco(), TrackAssociatorByPosition::associateSimToReco(), TrackAssociatorByChi2::associateSimToReco(), QuickTrackAssociatorByHits::associateSimToRecoImplementation(), reco::JetTrackMatch< JetC >::insert(), CosmicMuonLinksProducer::mapTracks(), EgammaHLTCombinedIsolationProducer::produce(), EgammaHLTBcHcalIsolationProducersRegional::produce(), EgammaHLTClusterShapeProducer::produce(), EgammaHLTR9Producer::produce(), EgammaHLTEcalRecIsolationProducer::produce(), EgammaHLTR9IDProducer::produce(), EgammaHLTElectronTrackIsolationProducers::produce(), EgammaHLTPhotonTrackIsolationProducersRegional::produce(), EgammaHLTHcalIsolationDoubleConeProducers::produce(), EgammaHLTHcalIsolationProducersRegional::produce(), EgammaHLTEcalIsolationProducersRegional::produce(), EgammaHLTElectronDetaDphiProducer::produce(), EgammaHLTGsfTrackVarProducer::produce(), and NuclearTrackCorrector::produce().
|
inline |
Definition at line 84 of file AssociationMap.h.
Referenced by BeautifulSoup.PageElement::_invert().
|
inline |
fill and return a transient key vector required for ROOT interactive usage
Definition at line 124 of file AssociationMap.h.
|
inline |
fill and return a transient map required for ROOT interactive usage
Definition at line 119 of file AssociationMap.h.
|
inline |
number of associations to a key
Definition at line 108 of file AssociationMap.h.
Referenced by VertexAssociatorByTracks::associateRecoToSim(), and VertexAssociatorByTracks::associateSimToReco().
|
inline |
find element with specified reference key
Definition at line 103 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 164 of file AssociationMap.h.
|
inline |
post insert action
Definition at line 133 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 77 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 129 of file AssociationMap.h.
|
friend |
Definition at line 178 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(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::find(), and ShallowSimTracksProducer::produce().
|
friend |
Definition at line 179 of file AssociationMap.h.
Definition at line 183 of file AssociationMap.h.
|
friend |
Definition at line 184 of file AssociationMap.h.
Definition at line 182 of file AssociationMap.h.
Definition at line 181 of file AssociationMap.h.
|
friend |
Definition at line 180 of file AssociationMap.h.
|
private |
index map
Definition at line 154 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 152 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 156 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[]().