#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 20 of file AssociationMap.h.
typedef Tag::data_type edm::AssociationMap< Tag >::data_type |
insert data type
Definition at line 31 of file AssociationMap.h.
typedef Tag::index_type edm::AssociationMap< Tag >::index_type |
index type
Definition at line 27 of file AssociationMap.h.
typedef std::map<index_type, value_type> edm::AssociationMap< Tag >::internal_transient_map_type |
transient map type
Definition at line 43 of file AssociationMap.h.
|
private |
insert key type
Definition at line 22 of file AssociationMap.h.
typedef Tag::key_type edm::AssociationMap< Tag >::key_type |
insert key type
Definition at line 29 of file AssociationMap.h.
typedef Tag::map_type edm::AssociationMap< Tag >::map_type |
map type
Definition at line 35 of file AssociationMap.h.
typedef Tag::ref_type edm::AssociationMap< Tag >::ref_type |
reference set type
Definition at line 33 of file AssociationMap.h.
typedef value_type::value_type edm::AssociationMap< Tag >::result_type |
result type
Definition at line 41 of file AssociationMap.h.
typedef AssociationMap<Tag> edm::AssociationMap< Tag >::self |
self type
Definition at line 25 of file AssociationMap.h.
typedef map_type::size_type edm::AssociationMap< Tag >::size_type |
size type
Definition at line 37 of file AssociationMap.h.
typedef helpers::KeyVal<key_type, internal_val_type> edm::AssociationMap< Tag >::value_type |
value type
Definition at line 39 of file AssociationMap.h.
|
inline |
|
inlineexplicit |
|
inline |
first iterator over the map (read only)
Definition at line 87 of file AssociationMap.h.
Referenced by DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), reco::JetTrackMatch< reco::GenJetCollection >::allJets(), SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), FWTrackProxyBuilderFullFramework::build(), L25TauAnalyzer::matchedToPFTau(), ShallowSimTracksProducer::produce(), DeDxEstimatorProducer::produce(), DeDxDiscriminatorProducer::produce(), PF_PU_AssoMapAlgos::SortAssociationMap(), PFCand_AssoMapAlgos::SortPFCandAssociationMap(), and FWTrackProxyBuilderFullFramework::visibilityModelChanges().
|
inline |
clear map
Definition at line 74 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 78 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 89 of file AssociationMap.h.
Referenced by DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), reco::JetTrackMatch< reco::GenJetCollection >::allJets(), MultiTrackValidatorGenPs::analyze(), MultiTrackValidator::analyze(), TrackerSeedValidator::analyze(), ValidationMisalignedTracker::analyze(), SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), TestTrackHits::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), MuonTrackValidator::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollectionTP(), FWTrackProxyBuilderFullFramework::build(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::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 96 of file AssociationMap.h.
|
inline |
find element with specified reference key
Definition at line 91 of file AssociationMap.h.
Referenced by BeautifulSoup.Tag::__getattr__(), MultiTrackValidatorGenPs::analyze(), MultiTrackValidator::analyze(), TrackerSeedValidator::analyze(), ValidationMisalignedTracker::analyze(), TestTrackHits::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), MuonTrackValidator::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollectionTP(), pat::ElectronSelector::electronID_(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::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 157 of file AssociationMap.h.
Referenced by BeautifulSoup.Tag::__getattr__(), and BeautifulSoup.Tag::firstText().
|
inline |
insert an association
Definition at line 80 of file AssociationMap.h.
Referenced by BeautifulSoup.PageElement::_invert(), TrackAssociatorByChi2::associateGenToReco(), TrackAssociatorByChi2::associateRecoToGen(), VertexAssociatorByTracks::associateRecoToSim(), MuonAssociatorByHits::associateRecoToSim(), TrackAssociatorByPosition::associateRecoToSim(), QuickTrackAssociatorByHits::associateRecoToSim(), TrackAssociatorByChi2::associateRecoToSim(), QuickTrackAssociatorByHits::associateRecoToSimImplementation(), VertexAssociatorByTracks::associateSimToReco(), MuonAssociatorByHits::associateSimToReco(), TrackAssociatorByPosition::associateSimToReco(), QuickTrackAssociatorByHits::associateSimToReco(), TrackAssociatorByChi2::associateSimToReco(), QuickTrackAssociatorByHits::associateSimToRecoImplementation(), reco::JetTrackMatch< reco::GenJetCollection >::insert(), CosmicMuonLinksProducer::mapTracks(), EgammaHLTPFChargedIsolationProducer::produce(), EgammaHLTPFNeutralIsolationProducer::produce(), EgammaHLTPFPhotonIsolationProducer::produce(), EgammaHLTClusterShapeProducer::produce(), EgammaHLTCombinedIsolationProducer::produce(), EgammaHLTElectronCombinedIsolationProducer::produce(), EgammaHLTEcalRecIsolationProducer::produce(), EgammaHLTElectronDetaDphiProducer::produce(), EgammaHLTElectronTrackIsolationProducers::produce(), EgammaHLTHcalIsolationDoubleConeProducers::produce(), EgammaHLTR9IDProducer::produce(), EgammaHLTHcalIsolationProducersRegional::produce(), EgammaHLTBcHcalIsolationProducersRegional::produce(), EgammaHLTR9Producer::produce(), EgammaHLTPhotonTrackIsolationProducersRegional::produce(), EgammaHLTEcalIsolationProducersRegional::produce(), EgammaHLTGsfTrackVarProducer::produce(), and NuclearTrackCorrector::produce().
|
inline |
Definition at line 83 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 123 of file AssociationMap.h.
|
inline |
fill and return a transient map required for ROOT interactive usage
Definition at line 118 of file AssociationMap.h.
|
inline |
number of associations to a key
Definition at line 107 of file AssociationMap.h.
Referenced by VertexAssociatorByTracks::associateRecoToSim(), and VertexAssociatorByTracks::associateSimToReco().
|
inline |
find element with specified reference key
Definition at line 102 of file AssociationMap.h.
Referenced by edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::operator[]().
|
inlineprivate |
return value_typeelement with key i
Definition at line 163 of file AssociationMap.h.
|
inline |
post insert action
Definition at line 132 of file AssociationMap.h.
Referenced by MuonTrackValidator::analyze(), TrackAssociatorByChi2::associateGenToReco(), TrackAssociatorByChi2::associateRecoToGen(), MuonAssociatorByHits::associateRecoToSim(), TrackAssociatorByPosition::associateRecoToSim(), QuickTrackAssociatorByHits::associateRecoToSim(), TrackAssociatorByChi2::associateRecoToSim(), MuonAssociatorByHits::associateSimToReco(), TrackAssociatorByPosition::associateSimToReco(), QuickTrackAssociatorByHits::associateSimToReco(), and TrackAssociatorByChi2::associateSimToReco().
|
inline |
|
inline |
map size
Definition at line 76 of file AssociationMap.h.
Referenced by SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), TkConvValidator::analyze(), VertexAssociatorByTracks::associateRecoToSim(), QuickTrackAssociatorByHits::associateRecoToSim(), VertexAssociatorByTracks::associateSimToReco(), QuickTrackAssociatorByHits::associateSimToReco(), CosmicMuonLinksProducer::produce(), DeDxEstimatorProducer::produce(), and DeDxDiscriminatorProducer::produce().
|
inline |
fill and return a transient key vector required for ROOT interactive usage
Definition at line 128 of file AssociationMap.h.
|
friend |
Definition at line 177 of file AssociationMap.h.
Referenced by edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::begin(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::end(), and edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::find().
|
friend |
Definition at line 178 of file AssociationMap.h.
Definition at line 182 of file AssociationMap.h.
|
friend |
Definition at line 183 of file AssociationMap.h.
Definition at line 181 of file AssociationMap.h.
Definition at line 180 of file AssociationMap.h.
|
friend |
Definition at line 179 of file AssociationMap.h.
|
private |
index map
Definition at line 153 of file AssociationMap.h.
Referenced by edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::begin(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::clear(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::empty(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::end(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::erase(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::insert(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::keys(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::map(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::numberOfAssociations(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::operator[](), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::post_insert(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::size(), and edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::values().
|
private |
reference set
Definition at line 151 of file AssociationMap.h.
Referenced by edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::find(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::insert(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::keys(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::map(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::numberOfAssociations(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::operator[](), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::refProd(), and edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::values().
|
mutableprivate |
transient reference map
Definition at line 155 of file AssociationMap.h.
Referenced by edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::clear(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::erase(), and edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::operator[]().