CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
edm::View< T > Class Template Reference

#include <CaloClusterFwd.h>

Inheritance diagram for edm::View< T >:
edm::ViewBase

Public Types

typedef boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
 
typedef T const * const_pointer
 
typedef T const & const_reference
 
typedef boost::indirect_iterator< typename seq_t::const_reverse_iterator > const_reverse_iterator
 
typedef seq_t::difference_type difference_type
 
typedef T const * pointer
 
typedef T const & reference
 
typedef unsigned int size_type
 
typedef T value_type
 

Public Member Functions

const_reference at (size_type pos) const
 
const_reference back () const
 
const_iterator begin () const
 
size_type capacity () const
 
bool empty () const
 
const_iterator end () const
 
const_reference front () const
 
size_type max_size () const
 
Viewoperator= (View const &rhs)
 
const_reference operator[] (size_type pos) const
 
Ptr< value_typeptrAt (size_type i) const
 
std::vector< Ptr< value_type > > const & ptrs () const
 
const_reverse_iterator rbegin () const
 
RefToBase< value_typerefAt (size_type i) const
 
const_reverse_iterator rend () const
 
size_type size () const
 
void swap (View &other)
 
 View ()
 
 View (std::vector< void const * > const &pointers, FillViewHelperVector const &helpers, EDProductGetter const *getter)
 
 ~View () override
 
- Public Member Functions inherited from edm::ViewBase
std::unique_ptr< ViewBaseclone () const
 
virtual ~ViewBase ()
 

Static Public Member Functions

static void fill_from_range (T *first, T *last, View &output)
 

Private Types

typedef std::vector< T const * > seq_t
 

Private Member Functions

std::unique_ptr< ViewBasedoClone () const override
 

Private Attributes

seq_t items_
 
std::vector< Ptr< value_type > > vPtrs_
 

Additional Inherited Members

- Protected Member Functions inherited from edm::ViewBase
ViewBaseoperator= (ViewBase const &)
 
void swap (ViewBase &)
 
 ViewBase ()
 
 ViewBase (ViewBase const &)
 

Detailed Description

template<typename T>
class edm::View< T >

Class template View<T>

View<T> provides a way to allow reference to the elements (of type T) of some collection in an Event, without knowing about the type of the collection itself. For example, View<int> can refer to the ints in either a vector<int> or a list<int>, without the client code knowing about which type of container manages the ints.

View<T> is not persistable.

View<T> can be used to reference objects of any type that has T as a public base.

Definition at line 14 of file CaloClusterFwd.h.

Member Typedef Documentation

template<typename T>
typedef boost::indirect_iterator<typename seq_t::const_iterator> edm::View< T >::const_iterator

Definition at line 86 of file View.h.

template<typename T>
typedef T const* edm::View< T >::const_pointer

Definition at line 79 of file View.h.

template<typename T>
typedef T const& edm::View< T >::const_reference

Definition at line 82 of file View.h.

template<typename T>
typedef boost::indirect_iterator<typename seq_t::const_reverse_iterator> edm::View< T >::const_reverse_iterator

Definition at line 93 of file View.h.

template<typename T>
typedef seq_t::difference_type edm::View< T >::difference_type

Definition at line 91 of file View.h.

template<typename T>
typedef T const* edm::View< T >::pointer

Definition at line 78 of file View.h.

template<typename T>
typedef T const& edm::View< T >::reference

Definition at line 81 of file View.h.

template<typename T>
typedef std::vector<T const*> edm::View< T >::seq_t
private

Definition at line 76 of file View.h.

template<typename T>
typedef unsigned int edm::View< T >::size_type

Definition at line 90 of file View.h.

template<typename T>
typedef T edm::View< T >::value_type

Definition at line 84 of file View.h.

Constructor & Destructor Documentation

template<typename T>
edm::View< T >::View ( )
template<typename T>
edm::View< T >::View ( std::vector< void const * > const &  pointers,
FillViewHelperVector const &  helpers,
EDProductGetter const *  getter 
)
template<typename T>
edm::View< T >::~View ( )
override

Member Function Documentation

template<typename T>
const_reference edm::View< T >::at ( size_type  pos) const
template<typename T>
const_reference edm::View< T >::back ( ) const
template<typename T>
const_iterator edm::View< T >::begin ( ) const

Referenced by metsig::SignPFSpecificAlgo::addPFJets(), DimuonStatistics::analyze(), GlbMuQualityCutsAnalysis::analyze(), PatBTagAnalyzer::analyze(), TtSemiLepSignalSelMVATrainer::analyze(), RecoMuonValidator::analyze(), ParticleListDrawer::analyze(), TrackingMonitor::analyze(), B2GDQM::analyzeJets(), L2MuonSeedGenerator::associateOfflineSeedToL1(), L2MuonSeedGeneratorFromL1T::associateOfflineSeedToL1(), TrackAssociatorByHitsImpl::associateRecoToSim(), TrackAssociatorByHitsImpl::associateSimToReco(), pat::TrackerIsolationPt::calculate(), reco::PFMETProducerMVA::chargedFracInCone(), PrimaryVertexAssignment::chargedHadronVertex(), reco::PFMETProducerMVA::computeLeptonInfo(), reco::PFMETProducerMVA::computePFCandidateInfo(), pat::helper::BasicOverlapTest::fillOverlapsForItem(), BVertexFilterT< VTX >::filter(), EcalDeadCellDeltaRFilter::filter(), FlavorHistoryProducer::getClosestJet(), pat::PATMHTProducer::getElectrons(), pat::PATMHTProducer::getJets(), pat::PATMHTProducer::getMuons(), HLTMinDPhiMETFilter::hltFilter(), L2MuonSeedGeneratorFromL1T::isAssociateOfflineSeedToL1(), fftjetcms::FFTJetInterface::loadInputCollection(), MatcherUsingTracksAlgorithm::match(), egammaisolation::EgammaTrackSelector::operator()(), DimuonMCMatcher::produce(), CandOneToOneDeltaRMatcher::produce(), TtSemiLepSignalSelMVAComputer::produce(), CandReducer::produce(), PFCandIsolatorFromDeposits::produce(), CandIsolatorFromDeposits::produce(), PuppiPhoton::produce(), ShiftedParticleMETcorrInputProducer::produce(), ShiftedJetProducerByMatchedObjectT< T >::produce(), InputGenJetsParticleSelector::produce(), HLTMhtProducer::produce(), NoPileUpPFMEtProducer::produce(), HLTHtMhtProducer::produce(), pat::PATJetUpdater::produce(), MuonDetCleaner< T1, T2 >::produce(), ShiftedParticleProducer::produce(), ShiftedPFCandidateProducerForPFMVAMEt::produce(), CaloCleaner< T >::produce(), TrackerCleaner< T >::produce(), HLTTrackMETProducer::produce(), MuMuForEmbeddingSelector::produce(), pat::PATJetProducer::produce(), DeepFlavourTagInfoProducer::produce(), SoftKillerProducer::produce(), DeepDoubleBTagInfoProducer::produce(), ObjectViewMatcher< T1, T2 >::produce(), FastPrimaryVertexWithWeightsProducer::produce(), FlavorHistoryProducer::produce(), CATopJetTagger::produce(), FastPrimaryVertexProducer::produce(), EmbeddingLHEProducer::produce(), SoftLepton::produce(), pat::helper::BasicOverlapTest::readInput(), MuonTrackFinder::reconstruct(), PFSpecificAlgo::run(), tnp::TagProbePairMaker::run(), METAlgo::run(), ecaldqm::RecoSummaryTask::runOnBasicClusters(), ecaldqm::ClusterTask::runOnBasicClusters(), and TtSemiLepSignalSel::TtSemiLepSignalSel().

template<typename T>
size_type edm::View< T >::capacity ( ) const
template<typename T>
std::unique_ptr<ViewBase> edm::View< T >::doClone ( ) const
overrideprivatevirtual

Implements edm::ViewBase.

template<typename T>
bool edm::View< T >::empty ( ) const
template<typename T>
const_iterator edm::View< T >::end ( ) const

Referenced by metsig::SignPFSpecificAlgo::addPFJets(), DimuonStatistics::analyze(), GlbMuQualityCutsAnalysis::analyze(), PatBTagAnalyzer::analyze(), TtSemiLepSignalSelMVATrainer::analyze(), RecoMuonValidator::analyze(), ParticleListDrawer::analyze(), TrackingMonitor::analyze(), B2GDQM::analyzeJets(), TrackAssociatorByHitsImpl::associateRecoToSim(), TrackAssociatorByHitsImpl::associateSimToReco(), pat::TrackerIsolationPt::calculate(), reco::PFMETProducerMVA::chargedFracInCone(), PrimaryVertexAssignment::chargedHadronVertex(), reco::PFMETProducerMVA::computeLeptonInfo(), reco::PFMETProducerMVA::computePFCandidateInfo(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), pat::helper::BasicOverlapTest::fillOverlapsForItem(), BVertexFilterT< VTX >::filter(), EcalDeadCellDeltaRFilter::filter(), FlavorHistoryProducer::getClosestJet(), pat::PATMHTProducer::getElectrons(), pat::PATMHTProducer::getJets(), pat::PATMHTProducer::getMuons(), HLTMinDPhiMETFilter::hltFilter(), fftjetcms::FFTJetInterface::loadInputCollection(), SignCaloSpecificAlgo::makeVectorOutOfCaloTowers(), MatcherUsingTracksAlgorithm::match(), egammaisolation::EgammaTrackSelector::operator()(), DimuonMCMatcher::produce(), CandOneToOneDeltaRMatcher::produce(), CandReducer::produce(), TtSemiLepSignalSelMVAComputer::produce(), PuppiPhoton::produce(), ShiftedParticleMETcorrInputProducer::produce(), ShiftedJetProducerByMatchedObjectT< T >::produce(), InputGenJetsParticleSelector::produce(), HLTMhtProducer::produce(), NoPileUpPFMEtProducer::produce(), HLTHtMhtProducer::produce(), pat::PATJetUpdater::produce(), pat::PATPackedCandidateProducer::produce(), ShiftedParticleProducer::produce(), ShiftedPFCandidateProducerForPFMVAMEt::produce(), MuonDetCleaner< T1, T2 >::produce(), CaloCleaner< T >::produce(), TrackerCleaner< T >::produce(), HLTTrackMETProducer::produce(), MuMuForEmbeddingSelector::produce(), pat::PATJetProducer::produce(), DeepFlavourTagInfoProducer::produce(), SoftKillerProducer::produce(), DeepDoubleBTagInfoProducer::produce(), FastPrimaryVertexWithWeightsProducer::produce(), FlavorHistoryProducer::produce(), CATopJetTagger::produce(), FastPrimaryVertexProducer::produce(), EmbeddingLHEProducer::produce(), SoftLepton::produce(), pat::helper::BasicOverlapTest::readInput(), MuonTrackFinder::reconstruct(), PFSpecificAlgo::run(), tnp::TagProbePairMaker::run(), METAlgo::run(), ecaldqm::RecoSummaryTask::runOnBasicClusters(), and ecaldqm::ClusterTask::runOnBasicClusters().

template<typename T>
static void edm::View< T >::fill_from_range ( T first,
T last,
View< T > &  output 
)
static
template<typename T>
const_reference edm::View< T >::front ( ) const
template<typename T>
size_type edm::View< T >::max_size ( ) const
template<typename T>
View& edm::View< T >::operator= ( View< T > const &  rhs)
template<typename T>
const_reference edm::View< T >::operator[] ( size_type  pos) const
template<typename T>
Ptr<value_type> edm::View< T >::ptrAt ( size_type  i) const
template<typename T>
std::vector<Ptr<value_type> > const& edm::View< T >::ptrs ( ) const
template<typename T>
const_reverse_iterator edm::View< T >::rbegin ( ) const
template<typename T>
RefToBase<value_type> edm::View< T >::refAt ( size_type  i) const
template<typename T>
const_reverse_iterator edm::View< T >::rend ( ) const
template<typename T>
size_type edm::View< T >::size ( ) const

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), DimuonStatistics::analyze(), GlbMuQualityCutsAnalysis::analyze(), ZMCHistogrammer::analyze(), DebugZMCTruth::analyze(), RPCRecHitProbability::analyze(), RPCMonitorDigi::analyze(), testAnalyzer::analyze(), HLTMCtruth::analyze(), SiPixelPhase1HitsV::analyze(), ZGlobalVsSAIsolationAnalyzer::analyze(), ZMuMuIsolationAnalyzer::analyze(), ZMuMuEfficiency::analyze(), ValidationMisalignedTracker::analyze(), ZMuMuSaMassHistogram::analyze(), RecoMuonValidator::analyze(), PatPhotonSimpleAnalyzer::analyze(), dimuonHLTFilterCheck::analyze(), ZMuMuPerformances::analyze(), ZMuMu_vtxAnalyzer::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), ZMuMu_MCanalyzer::analyze(), TagProbeFitTreeProducer::analyze(), ZMuMu_Radiative_analyzer::analyze(), HLTInclusiveVBFSource::analyze(), gamma_radiative_analyzer::analyze(), MCAcceptanceAnalyzer::analyze(), TrackBuildingAnalyzer::analyze(), TrackingMonitor::analyze(), HTMonitor::analyze(), TrackingNtuple::analyze(), helper::SimpleJetTrackAssociator::associate(), VertexAssociatorByPositionAndTracks::associateRecoToSim(), VertexAssociatorByPositionAndTracks::associateSimToReco(), CandCombinerBase< OutputCollection, CandPtr >::combine(), JetTracksAssociationDR::createJetRefs(), MultiTrackValidator::dqmAnalyze(), EventShapeVariables::EventShapeVariables(), PatBTagCommonHistos::Fill(), BadParticleFilter::filter(), ProbeTreeProducer::filter(), CSCEfficiency::filter(), metsig::METSignificance::getCovariance(), BTagPerformanceAnalyzerMC::getJetWithFlavour(), TagProbeMassProducer::isPassingProbe(), MuonMETAlgo::MuonMETAlgo_run(), dimuonHLTFilterCheck::nDimuonsByType(), dimuonHLTFilterCheck::nMuonsByType(), NanoAODSimpleCrossCleaner::objectSelection(), PatJetAnalyzer::print(), PFAlgo::processBlock(), DimuonMCMatcher::produce(), IsolationProducerForTracks::produce(), CandOneToOneDeltaRMatcher::produce(), CandViewRefMerger::produce(), cms::SubEventGenJetProducer::produce(), PFMuonUntagger::produce(), JetTracksAssociationToTrackRefs::produce(), MVAJetPuIdProducer::produce(), GenParticles2HepMCConverter::produce(), PuppiPhoton::produce(), citk::PFIsolationSumProducerForPUPPI::produce(), ShiftedJetProducerByMatchedObjectT< T >::produce(), VersionedIdProducer< PhysicsObjectPtr, SelectorType >::produce(), PuppiProducer::produce(), MatchedProbeMaker< T >::produce(), pat::PATJetUpdater::produce(), pat::PATPackedCandidateProducer::produce(), TagProbeMassProducer::produce(), citk::PFIsolationSumProducer::produce(), ShiftedPFCandidateProducerForPFMVAMEt::produce(), ZToLLEdmNtupleDumper::produce(), TrackTimeValueMapProducer::produce(), edm::GenericSelectorByValueMap< T, C >::produce(), CandMCMatchTableProducer::produce(), BoostedTauSeedsProducer::produce(), reco::PFMETProducerMVA::produce(), pat::PATJetProducer::produce(), DeepFlavourTagInfoProducer::produce(), DeepDoubleBTagInfoProducer::produce(), SimPFProducer::produce(), PileupJetIdProducer::produce(), VirtualJetProducer::produce(), BeamFitter::readEvent(), pat::helper::BasicOverlapTest::readInput(), CandidateSeededTrackingRegionsProducer::regions(), CandidatePointSeededTrackingRegionsProducer::regions(), PixelUnpackingRegions::run(), pat::helper::AnyNumberAssociationAdaptor::run_(), RecoTrackViewRefSelector::select(), MultiTrackValidator::trackDR(), pathelpers::Record::update(), and NoPileUpPFMEtDataProducer::~NoPileUpPFMEtDataProducer().

template<typename T>
void edm::View< T >::swap ( View< T > &  other)

Member Data Documentation

template<typename T>
seq_t edm::View< T >::items_
private

Definition at line 142 of file View.h.

template<typename T>
std::vector<Ptr<value_type> > edm::View< T >::vPtrs_
private

Definition at line 143 of file View.h.