CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
edm::Ref< C, T, F > Class Template Reference

#include <AssociativeIterator.h>

Public Types

typedef boost::binary_traits
< F >::second_argument_type 
argument_type
 
typedef T const element_type
 
typedef F finder_type
 
typedef boost::remove_cv
< typename
boost::remove_reference
< argument_type >::type >
::type 
key_type
 
typedef C product_type
 etc. etc.: more nesting levels could be supported ... More...
 
typedef T value_type
 

Public Member Functions

T const * get () const
 Returns C++ pointer to the item. More...
 
bool hasProductCache () const
 Returns true if container referenced by the Ref has been cached. More...
 
ProductID id () const
 Accessor for product ID. More...
 
key_type index () const
 
bool isAvailable () const
 
bool isNonnull () const
 Checks for non-null. More...
 
bool isNull () const
 Checks for null. More...
 
bool isTransient () const
 Checks if this ref is transient (i.e. not persistable). More...
 
key_type key () const
 Accessor for product key. More...
 
bool operator! () const
 Checks for null. More...
 
T const & operator* () const
 Dereference operator. More...
 
T const * operator-> () const
 Member dereference operator. More...
 
C const * product () const
 Accessor for product collection. More...
 
EDProductGetter const * productGetter () const
 Accessor for product getter. More...
 
 Ref ()
 Default constructor needed for reading from persistent store. Not for direct use. More...
 
 Ref (Handle< C > const &handle, key_type itemKey, bool setNow=true)
 General purpose constructor from handle. More...
 
 Ref (OrphanHandle< C > const &handle, key_type itemKey, bool setNow=true)
 General purpose constructor from orphan handle. More...
 
 Ref (RefVector< C, T, F > const &refvector, key_type itemKey, bool setNow=true)
 Constructor from RefVector and index into collection. More...
 
 Ref (C const *product, key_type itemKey, bool setNow=true)
 Constructors for ref to object that is not in an event. More...
 
 Ref (TestHandle< C > const &handle, key_type itemKey, bool setNow=true)
 Constructor from test handle. More...
 
 Ref (ProductID const &productID, key_type itemKey, EDProductGetter const *prodGetter)
 
 Ref (ProductID const &iProductID, T const *, key_type iItemKey, C const *iProduct)
 Constructor for use in the various X::fillView(...) functions. More...
 
 Ref (ProductID const &iId)
 
 Ref (RefProd< C > const &refProd, key_type itemKey)
 Constructor from RefProd<C> and key. More...
 
 Ref (RefCore const &iRefCore, key_type const &iKey)
 
RefCore const & refCore () const
 
 ~Ref ()
 Destructor. More...
 

Private Types

typedef
refhelper::FindRefVectorUsingAdvance
< RefToBaseVector< T > > 
VBF
 
typedef
refhelper::FindRefVectorUsingAdvance
< RefVector< C, T, F > > 
VF
 

Private Member Functions

void checkTypeAtCompileTime (C const *)
 

Private Attributes

key_type index_
 
RefCore product_
 

Friends

class RefVector< C, T, F >
 
class RefVector< RefVector< C, T, F >, T, VBF >
 
class RefVector< RefVector< C, T, F >, T, VF >
 
class RefVector< RefVector< RefVector< C, T, F >, T, VBF >, T, VBF >
 
class RefVector< RefVector< RefVector< C, T, F >, T, VF >, T, VF >
 
class RefVectorIterator< C, T, F >
 

Detailed Description

template<class C, class T, class F>
class edm::Ref< C, T, F >

Definition at line 51 of file AssociativeIterator.h.

Member Typedef Documentation

template<class C, class T, class F>
typedef boost::binary_traits<F>::second_argument_type edm::Ref< C, T, F >::argument_type

Definition at line 169 of file Ref.h.

template<class C, class T, class F>
typedef T const edm::Ref< C, T, F >::element_type

Definition at line 167 of file Ref.h.

template<class C, class T, class F>
typedef F edm::Ref< C, T, F >::finder_type

Definition at line 168 of file Ref.h.

template<class C, class T, class F>
typedef boost::remove_cv<typename boost::remove_reference<argument_type>::type>::type edm::Ref< C, T, F >::key_type

Definition at line 170 of file Ref.h.

template<class C, class T, class F>
typedef C edm::Ref< C, T, F >::product_type

etc. etc.: more nesting levels could be supported ...

for export

Definition at line 165 of file Ref.h.

template<class C, class T, class F>
typedef T edm::Ref< C, T, F >::value_type

Definition at line 166 of file Ref.h.

template<class C, class T, class F>
typedef refhelper::FindRefVectorUsingAdvance<RefToBaseVector<T> > edm::Ref< C, T, F >::VBF
private

Definition at line 154 of file Ref.h.

template<class C, class T, class F>
typedef refhelper::FindRefVectorUsingAdvance<RefVector<C, T, F> > edm::Ref< C, T, F >::VF
private

Definition at line 153 of file Ref.h.

Constructor & Destructor Documentation

template<class C, class T, class F>
edm::Ref< C, T, F >::Ref ( )
inline

Default constructor needed for reading from persistent store. Not for direct use.

C is the type of the collection T is the type of a member the collection

Definition at line 175 of file Ref.h.

key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
template<typename C, typename T , typename F >
edm::Ref< C, T, F >::Ref ( Handle< C > const &  handle,
key_type  itemKey,
bool  setNow = true 
)
inline

General purpose constructor from handle.

Definition at line 468 of file Ref.h.

References edm::Ref< C, T, F >::checkTypeAtCompileTime(), edm::Ref< C, T, F >::index_, edm::Ref< C, T, F >::key(), edm::Handle< T >::product(), and edm::Ref< C, T, F >::product_.

468  :
469  product_(handle.id(), handle.product(), 0, false), index_(itemKey){
470  checkTypeAtCompileTime(handle.product());
471  assert(key() == itemKey);
472 
473  if (setNow) {getPtr_<C, T, F>(product_, index_);}
474  }
void checkTypeAtCompileTime(C const *)
Definition: Ref.h:294
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
key_type key() const
Accessor for product key.
Definition: Ref.h:266
template<typename C, typename T , typename F >
edm::Ref< C, T, F >::Ref ( OrphanHandle< C > const &  handle,
key_type  itemKey,
bool  setNow = true 
)
inline

General purpose constructor from orphan handle.

Definition at line 490 of file Ref.h.

References edm::Ref< C, T, F >::checkTypeAtCompileTime(), edm::Ref< C, T, F >::index_, edm::Ref< C, T, F >::key(), edm::OrphanHandle< T >::product(), and edm::Ref< C, T, F >::product_.

490  :
491  product_(handle.id(), handle.product(), 0, false), index_(itemKey) {
492  checkTypeAtCompileTime(handle.product());
493  assert(key() == itemKey);
494 
495  if (setNow) {getPtr_<C, T, F>(product_, index_);}
496  }
void checkTypeAtCompileTime(C const *)
Definition: Ref.h:294
key_type index_
Definition: Ref.h:297
tuple handle
Definition: patZpeak.py:22
RefCore product_
Definition: Ref.h:296
key_type key() const
Accessor for product key.
Definition: Ref.h:266
template<typename C, typename T, typename F>
edm::Ref< C, T, F >::Ref ( RefVector< C, T, F > const &  refvector,
key_type  itemKey,
bool  setNow = true 
)
inline

Constructor from RefVector and index into collection.

Constructor from RefVector and index into the collection.

Definition at line 512 of file Ref.h.

References edm::Ref< C, T, F >::checkTypeAtCompileTime(), edm::Ref< C, T, F >::index_, edm::Ref< C, T, F >::key(), edm::RefVector< C, T, F >::product(), and edm::Ref< C, T, F >::product_.

512  :
513  product_(refvector.id(), refvector.product(), 0, refvector.isTransient()), index_(itemKey) {
514  checkTypeAtCompileTime(refvector.product());
515  assert(key() == itemKey);
516 
517  if (setNow) {getPtr_<C, T, F>(product_, index_);}
518  }
void checkTypeAtCompileTime(C const *)
Definition: Ref.h:294
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
key_type key() const
Accessor for product key.
Definition: Ref.h:266
template<typename C, typename T, typename F>
edm::Ref< C, T, F >::Ref ( C const *  product,
key_type  itemKey,
bool  setNow = true 
)
inline

Constructors for ref to object that is not in an event.

Constructor for refs to object that is not in an event.

Definition at line 540 of file Ref.h.

References edm::Ref< C, T, F >::checkTypeAtCompileTime(), edm::Ref< C, T, F >::index_, edm::Ref< C, T, F >::key(), and edm::Ref< C, T, F >::product_.

540  :
541  product_(ProductID(), iProduct, 0, true), index_(iProduct != 0 ? iItemKey : key_traits<key_type>::value) {
542  checkTypeAtCompileTime(iProduct);
543  assert(key() == (iProduct != 0 ? iItemKey : key_traits<key_type>::value));
544 
545  if (iSetNow && iProduct != 0) {getPtr_<C, T, F>(product_, index_);}
546  }
void checkTypeAtCompileTime(C const *)
Definition: Ref.h:294
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
key_type key() const
Accessor for product key.
Definition: Ref.h:266
template<typename C, typename T, typename F>
edm::Ref< C, T, F >::Ref ( TestHandle< C > const &  handle,
key_type  itemKey,
bool  setNow = true 
)
inline

Constructor from test handle.

constructor from test handle.

Definition at line 562 of file Ref.h.

References edm::Ref< C, T, F >::checkTypeAtCompileTime(), edm::Ref< C, T, F >::index_, edm::Ref< C, T, F >::key(), edm::TestHandle< T >::product(), and edm::Ref< C, T, F >::product_.

562  :
563  product_(handle.id(), handle.product(), 0, true), index_(itemKey) {
564  checkTypeAtCompileTime(handle.product());
565  assert(key() == itemKey);
566 
567  if (setNow) {getPtr_<C, T, F>(product_, index_);}
568  }
void checkTypeAtCompileTime(C const *)
Definition: Ref.h:294
key_type index_
Definition: Ref.h:297
tuple handle
Definition: patZpeak.py:22
RefCore product_
Definition: Ref.h:296
key_type key() const
Accessor for product key.
Definition: Ref.h:266
template<class C, class T, class F>
edm::Ref< C, T, F >::Ref ( ProductID const &  productID,
key_type  itemKey,
EDProductGetter const *  prodGetter 
)
inline

Constructor for those users who do not have a product handle, but have a pointer to a product getter (such as the EventPrincipal). prodGetter will ususally be a pointer to the event principal.

Definition at line 204 of file Ref.h.

204  :
205  product_(productID, 0, mustBeNonZero(prodGetter, "Ref", productID), false), index_(itemKey) {
206  }
EDProductGetter const * mustBeNonZero(EDProductGetter const *prodGetter, std::string refType, ProductID const &productID)
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
template<class C, class T, class F>
edm::Ref< C, T, F >::Ref ( ProductID const &  iProductID,
T const *  ,
key_type  iItemKey,
C const *  iProduct 
)
inline

Constructor for use in the various X::fillView(...) functions.

Definition at line 215 of file Ref.h.

215  :
216  product_(iProductID, iProduct, 0, false), index_(iItemKey)
217  { }
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
template<class C, class T, class F>
edm::Ref< C, T, F >::Ref ( ProductID const &  iId)
inlineexplicit

Constructor that creates an invalid ("null") Ref that is associated with a given product (denoted by that product's ProductID).

Definition at line 223 of file Ref.h.

223  :
224  product_(iId, 0, 0, false), index_(key_traits<key_type>::value)
225  { }
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
template<typename C, typename T, typename F>
edm::Ref< C, T, F >::Ref ( RefProd< C > const &  refProd,
key_type  itemKey 
)
inline

Constructor from RefProd<C> and key.

Definition at line 583 of file Ref.h.

References edm::Ref< C, T, F >::index().

583  :
584  product_(refProd.id(), refProd.refCore().productPtr(), refProd.refCore().productGetter(), refProd.refCore().isTransient()), index_(itemKey) {
585  assert(index() == itemKey);
586  }
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
key_type index() const
Definition: Ref.h:269
template<class C, class T, class F>
edm::Ref< C, T, F >::~Ref ( )
inline

Destructor.

Definition at line 231 of file Ref.h.

231 {}
template<class C, class T, class F>
edm::Ref< C, T, F >::Ref ( RefCore const &  iRefCore,
key_type const &  iKey 
)
inline

Definition at line 287 of file Ref.h.

287  :
288  product_(iRefCore), index_(iKey) {
289  }
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296

Member Function Documentation

template<class C, class T, class F>
void edm::Ref< C, T, F >::checkTypeAtCompileTime ( C const *  )
inlineprivate

Definition at line 294 of file Ref.h.

Referenced by edm::Ref< C, T, F >::Ref().

294 {}
template<class C, class T, class F>
T const* edm::Ref< C, T, F >::get ( void  ) const
inline

Returns C++ pointer to the item.

Definition at line 242 of file Ref.h.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), MultiTrackValidatorGenPs::analyze(), MultiTrackValidator::analyze(), RecoMuonValidator::analyze(), ZMuMuAnalyzer_cynematics::analyze(), calcTopMass::analyze(), TestOutliers::analyze(), SiPixelMuonHLT::analyze(), V0Validator::analyze(), MuonTrackValidator::analyze(), SiStripMonitorMuonHLT::analyzeOnTrackClusters(), SegmentToTrackAssociator::associate(), reco::RecoCandidate::bestTrack(), reco::Muon::bestTrack(), FWPFTauProxyBuilder::buildViewType(), FWCaloTauProxyBuilder::buildViewType(), reco::CaloMuon::charge(), MuonAlignmentAnalyzer::doMatching(), MuonAlignment::doMatching(), reco::CaloMuon::eta(), MuonCaloCompatibility::evaluate(), L1ExtraParticleMapProd::evaluateDoubleDifferentCaloObjectTrigger(), L1ExtraParticleMapProd::evaluateDoubleDifferentObjectSameTypeTrigger(), L1ExtraParticleMapProd::evaluateDoubleDifferentObjectTrigger(), L1ExtraParticleMapProd::evaluateDoublePlusSingleObjectTrigger(), L1ExtraParticleMapProd::evaluateDoubleSameObjectTrigger(), L1ExtraParticleMapProd::evaluateForwardRapidityGap(), L1ExtraParticleMapProd::evaluateJetGapJetTrigger(), L1ExtraParticleMapProd::evaluateQuadSameObjectTrigger(), L1ExtraParticleMapProd::evaluateTripleSameObjectTrigger(), CandIsoDepositProducer::extractTrack(), PFCandCommonVertexFitterBase::fill(), SoftPFElectronTagInfoProducer::fillElecProperties(), METAnalyzer::fillMonitorElement(), CaloMETAnalyzer::fillMonitorElementTriggered(), MuonIdProducer::fillMuonId(), MuonIdProducer::fillMuonIsolation(), SoftPFMuonTagInfoProducer::fillMuonProperties(), l1extra::L1EmParticle::gctEmCand(), l1extra::L1EtMissParticle::gctEtHad(), l1extra::L1EtMissParticle::gctEtMiss(), l1extra::L1EtMissParticle::gctEtTotal(), l1extra::L1HFRings::gctHFBitCounts(), l1extra::L1HFRings::gctHFEtSums(), l1extra::L1EtMissParticle::gctHtMiss(), l1extra::L1JetParticle::gctJetCand(), pat::PATObject< reco::Muon >::genParticle(), betterConfigParser.BetterConfigParser::getCompares(), EgammaEcalIsolation::getEcalEtSum(), ConversionFinder::getElectronTrack(), betterConfigParser.BetterConfigParser::getGeneral(), getGenTau(), EgammaHcalIsolation::getHcalESum(), EgammaHcalIsolation::getHcalESumDepth1(), EgammaHcalIsolation::getHcalESumDepth2(), EgammaHcalIsolation::getHcalEtSum(), EgammaHcalIsolation::getHcalEtSumDepth1(), EgammaHcalIsolation::getHcalEtSumDepth2(), TrackerMuonHitExtractor::getMuonHits(), betterConfigParser.BetterConfigParser::getResultingSection(), PrimaryVertexAnalyzer4PU::getSimEvents(), EgammaRecHitIsolation::getSum_(), HLTDisplacedmumuFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTMuonIsoFilter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), PFEGammaAlgo::initializeProtoCands(), CosmicSplitterValidation::is_gold_muon(), SoftPFElectronTagInfoProducer::isElecClean(), cms::MuonTCMETValueMapProducer::isGoodCaloMuon(), SoftPFMuonTagInfoProducer::isMuonClean(), MuonIdProducer::makeMuon(), MuonResidualsFromTrack::MuonResidualsFromTrack(), SoftElectronMVAEstimator::mva(), ZMuMuOverlap::operator()(), tautools::RecoTauDecayModeTruthMatchPlugin::operator()(), pat::VertexAssociation::operator->(), reco::CaloMuon::p(), reco::CaloMuon::phi(), PrimaryVertexAnalyzer4PU::printEventSummary(), PrimaryVertexAnalyzer4PU::printPVTrks(), GsfElectronCoreEcalDrivenProducer::produce(), ElectronSqPtTkIsolationProducer::produce(), ShallowSimTracksProducer::produce(), MuonTrackProducer::produce(), HLTDisplacedmumumuVtxProducer::produce(), EgammaHLTEcalRecIsolationProducer::produce(), HLTDisplacedmumuVtxProducer::produce(), EgammaEcalRecHitIsolationProducer::produce(), reco::modules::DuplicateListMerger::produce(), MuonIdProducer::produce(), reco::modules::JetFlavourIdentifier::produce(), cms::MuonTCMETValueMapProducer::propagateTrack(), reco::CaloMuon::pt(), reco::CaloMuon::px(), reco::CaloMuon::py(), reco::CaloMuon::pz(), TCTauAlgorithm::recalculateEnergy(), CosmicRegionalSeedGenerator::regions(), PFTauSelectorDefinition::select(), MuScleFitMuonSelector::selectGeneratedMuons(), GsfElectronAlgo::setAmbiguityData(), PFElectronAlgo::SetCandidates(), PFDisplacedVertexCandidateFinder::setInput(), MuonTrackDT2ChamberResidual::setSegmentResidual(), MuonTrackDT13ChamberResidual::setSegmentResidual(), pat::Muon::sourceCandidatePtr(), pat::Electron::sourceCandidatePtr(), reco::CaloMuon::theta(), reco::TrackJet::track(), MatcherByPullsAlgorithm::track(), pat::PATObject< ObjectType >::triggerObjectMatch(), MuonIdTruthInfo::truthMatchMuon(), PFEGammaAlgo::unwrapSuperCluster(), and pat::VertexAssociation::vertex().

242  {
243  return isNull() ? 0 : this->operator->();
244  }
T const * operator->() const
Member dereference operator.
Definition: Ref.h:629
bool isNull() const
Checks for null.
Definition: Ref.h:247
template<class C, class T, class F>
bool edm::Ref< C, T, F >::hasProductCache ( ) const
inline

Returns true if container referenced by the Ref has been cached.

Definition at line 272 of file Ref.h.

272 {return product_.productPtr() != 0;}
void const * productPtr() const
Definition: RefCore.h:32
RefCore product_
Definition: Ref.h:296
template<class C, class T, class F>
ProductID edm::Ref< C, T, F >::id ( void  ) const
inline

Accessor for product ID.

Definition at line 256 of file Ref.h.

Referenced by reco::PFCandidate::addElementInBlock(), FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), ZMuMuAnalyzer::analyze(), ZMuMuAnalyzer_cynematics::analyze(), reco::helper::CastorJetIDHelper::calculate(), ConvertedPhotonProducer::cleanCollections(), CastorTowerProducer::ComputeTowerVariable(), MuonMCClassifier::convertAndPush(), electronSelector(), PhotonCoreProducer::fillPhotonCollection(), SimpleJetFilter::filter(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::find(), HLTMuonL3PreFilter::hltFilter(), ZMuMuAnalyzer_cynematics::isContained(), L3TkMuonProducer::makePseudoRef(), MatcherUsingTracksAlgorithm::match(), ConversionTools::matchesConversion(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::numberOfAssociations(), reco::tau::RecoTauDiscriminantFromDiscriminator::operator()(), JoinCaloTowerRefVectorsWithoutDuplicates::twrrefcomp::operator()(), ClusterClusterMapping::overlap(), printseed(), HLTHcalTowerNoiseCleaner::produce(), GEDPhotonCoreProducer::produce(), GlobalTrackQualityProducer::produce(), pat::PATGenCandsFromSimTracksProducer::produce(), L3TkMuonProducer::produce(), cms::TrackListMerger::produce(), ElectronSeedProducer::produce(), RecoTauProducer::produce(), MuonProducer::produce(), CastorClusterProducer::produce(), CastorTowerProducer::produce(), MuonMCClassifier::produce(), TriggerMatcherToHLTDebug::produce(), GlobalMuonTrackMixer::produceTrackExtras(), GlobalMuonTrackCleaner::produceTrackExtras(), TeVMuonTrackMixer::produceTrackExtras(), TeVMuonTrackCleaner::produceTrackExtras(), edm::RefToBaseProd< T >::RefToBaseProd(), GsfElectronAlgo::EventData::retreiveOriginalTrackCollections(), PhotonCoreProducer::solveAmbiguity(), ConvertedPhotonProducer::solveAmbiguity(), pat::Muon::sourceCandidatePtr(), pat::Electron::sourceCandidatePtr(), and reco::TrackJet::track().

256 {return product_.id();}
RefCore product_
Definition: Ref.h:296
ProductID id() const
Definition: RefCore.h:29
template<class C, class T, class F>
key_type edm::Ref< C, T, F >::index ( ) const
inline

Definition at line 269 of file Ref.h.

Referenced by BeautifulSoup.PageElement::_invert(), PFEGammaAlgo::fillPFCandidates(), and edm::Ref< C, T, F >::Ref().

269 {return index_;}
key_type index_
Definition: Ref.h:297
template<class C, class T, class F>
bool edm::Ref< C, T, F >::isAvailable ( ) const
inline

Checks if collection is in memory or available in the Event. No type checking is done.

Definition at line 276 of file Ref.h.

Referenced by FWMuonLegoProxyBuilder::build(), FWPhotonDetailView::build(), FWTracksModulesProxyBuilder::build(), FWTracksRecHitsProxyBuilder::build(), FWElectronLegoProxyBuilder::build(), FWTrackProxyBuilder::build(), FWElectronDetailView::build(), FWTrackHitsDetailView::build(), FWConvTrackHitsDetailView::build(), FWTrackResidualDetailView::build(), FWMuonBuilder::buildMuon(), FWMuonBuilder::calculateField(), PileupJetIdAlgo::computeIdVariables(), TauDiscriminationAgainstCaloMuon< TauType, TauDiscriminator >::discriminate(), PFPhotonAlgo::EarlyConversion(), pat::Muon::embedPFCandidate(), pat::Electron::embedPFCandidate(), fw::estimate_field(), PatZToMuMuAnalyzer::fill(), EwkMuTauHistManager::fillHistograms(), pat::helper::OverlapBySuperClusterSeed::fillOverlapsForItem(), PFEGammaAlgo::fillPFCandidates(), FWPFTrackUtils::getTrack(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), PFEGammaAlgo::initializeProtoCands(), pat::VertexAssociation::isAvailable(), fireworks::makeRhoPhiSuperCluster(), fireworks::makeRhoZSuperCluster(), ElectronMVAEstimator::mva(), SoftElectronMVAEstimator::mva(), EGammaMvaEleEstimator::mvaValue(), AntiElectronIDMVA5GBR::MVAValue(), reco::operator<<(), PFClusterWidthAlgo::PFClusterWidthAlgo(), MuonIdProducer::phiOfMuonIneteractionRegion(), fireworks::prepareTrack(), pat::PATMuonProducer::produce(), pat::PATJetProducer::produce(), pat::PATTauProducer::produce(), ElectronSeedTrackRefUpdaterAndMerger::produce(), ElectronSeedTrackRefUpdater::produce(), pat::PATElectronProducer::produce(), MuonIdProducer::produce(), TrackExtrapolator::propagateTrackToVolume(), FWElectronProxyBuilder::requestCommon(), MuScleFitMuonSelector::selectGeneratedMuons(), PFElectronAlgo::SetCandidates(), PFBlockAlgo::setInput(), FWElectronDetailView::setTextInfo(), pat::tau::TauPFSpecific::TauPFSpecific(), tevOptimizedTMR(), PFMuonSelector::TopPag12LjetsCuts(), and PFEGammaAlgo::unwrapSuperCluster().

276 {return product_.isAvailable();}
bool isAvailable() const
Definition: RefCore.cc:112
RefCore product_
Definition: Ref.h:296
template<class C, class T, class F>
bool edm::Ref< C, T, F >::isNonnull ( ) const
inline

Checks for non-null.

Definition at line 250 of file Ref.h.

Referenced by pat::PATObject< ObjectType >::addGenParticleRef(), BetaCalculatorRPC::addInfoToCandidate(), PFMuonAlgo::addMissingMuons(), PFCandConnector::analyseNuclearWPrim(), DimuonStatistics::analyze(), ZHistogrammer::analyze(), ZMCHistogrammer::analyze(), ZMuMuEfficiency::analyze(), PatTrackAnalyzer::analyze(), HLTMonHcalIsoTrack::analyze(), ZMuMuPerformances::analyze(), ElectronMcFakeValidator::analyze(), RecoMuonValidator::analyze(), WenuPlots::analyze(), HLTTrack::analyze(), SimplePhotonAnalyzer::analyze(), SiPixelTrackResidualSource::analyze(), gamma_radiative_analyzer::analyze(), ZMuMu_MCanalyzer::analyze(), METTester::analyze(), ZMuMu_Radiative_analyzer::analyze(), TagProbeFitTreeProducer::analyze(), MCAcceptanceAnalyzer::analyze(), calcTopMass::analyze(), PhotonValidator::analyze(), V0Validator::analyze(), PhotonAnalyzer::analyze(), HPSPFRecoTauAlgorithm::applyMuonRejection(), PFElecTkProducer::applySelection(), MuonAssociatorByHits::associateMuons(), ZToMuMuGammaAnalyzer::basicMuonSelection(), reco::RecoCandidate::bestTrack(), reco::RecoCandidate::bestTrackRef(), CaloRecoTauAlgorithm::buildCaloTau(), ConversionProducer::buildCollection(), ConvertedPhotonProducer::buildCollections(), PFRecoTauAlgorithm::buildPFTau(), HPSPFRecoTauAlgorithm::buildPFTau(), PFEGammaAlgo::calculate_ele_mva(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), ConversionProducer::checkPhi(), PFMuonAlgo::cleanPunchThroughAndFakes(), helper::GsfElectronCollectionStoreManager::cloneAndStore(), TCMETAlgo::closeToElectron(), PileupJetIdAlgo::computeIdVariables(), MuonMCClassifier::convertAndPush(), reco::tau::RecoTauConstructor::convertToPtr(), PFCandWithSuperClusterExtractor::depositFromObject(), PFRecoTauDiscriminationByLeadingObjectPtCut::discriminate(), CaloRecoTauDiscriminationByLeadingTrackPtCut::discriminate(), RecoTauDiscriminationByGenMatch::discriminate(), CaloRecoTauDiscriminationByTauPolarization::discriminate(), PFRecoTauDiscriminationByTauPolarization::discriminate(), PFRecoTauDiscriminationAgainstMuon::discriminate(), PFRecoTauDiscriminationAgainstElectron::discriminate(), PFRecoTauDiscriminationAgainstMuon2::discriminate(), PFRecoTauDiscriminationAgainstElectronMVA5GBR::discriminate(), PFRecoTauDiscriminationAgainstMuonMVA::discriminate(), TauDiscriminationAgainstCaloMuon< TauType, TauDiscriminator >::discriminate(), PFRecoTauDiscriminationByIsolation::discriminate(), PrimaryVertexAnalyzer4PU::dumpHitInfo(), PFPhotonAlgo::EarlyConversion(), pat::GenericParticle::embedCaloTower(), pat::GenericParticle::embedCombined(), pat::Muon::embedDytMuon(), pat::GenericParticle::embedGsfTrack(), pat::Muon::embedPFCandidate(), pat::Electron::embedPFCandidate(), pat::Muon::embedPickyMuon(), pat::GenericParticle::embedStandalone(), pat::GenericParticle::embedSuperCluster(), pat::Muon::embedTpfmsMuon(), pat::GenericParticle::embedTrack(), PFIsolationEstimator::fGetIsolationInRings(), PFPhotonIsolationCalculator::fGetIsolationInRings(), RecoMuonValidator::MuonME::fill(), MuonDetCleaner::fillHitMap(), egHLT::OffHelper::fillHLTData(), METAnalyzer::fillMonitorElement(), CaloMETAnalyzer::fillMonitorElementTriggered(), PFEGammaAlgo::fillPFCandidates(), PhotonCoreProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), reco::tau::AssociationMatchRefSelector< InputType, MatchedType, OutputType, ClonePolicy >::filter(), HSCPTreeBuilder::filter(), pat::PATObject< reco::Muon >::genParticle(), ConversionFinder::getElectronTrack(), HSCParticleProducer::getHSCPSeedCollection(), MuonTrackCleanerBase::getMuonMomentum(), MuonMCClassifier::getTpMother(), getTrackDetMatchInfo(), reco::PFJet::getTrackRefs(), susybsm::HSCParticle::hasCaloInfo(), susybsm::HSCParticle::hasMTMuonRef(), susybsm::HSCParticle::hasMuonRef(), reco::PFTau::hasMuonReference(), RecoTracktoTP::hasRV(), TPtoRecoTrack::hasRVA(), TPtoRecoTrack::hasRVB(), susybsm::HSCParticle::hasTrackIsoRef(), susybsm::HSCParticle::hasTrackRef(), HLTElectronMissingHitsFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTDoubletDZ< T1, T2 >::hltFilter(), HLTMuonIsoFilter::hltFilter(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), reco::isodeposit::OtherJetConstituentsDeltaRVeto::initialize(), PFEGammaAlgo::initializeProtoCands(), reco::Muon::isAValidMuonTrack(), TCMETAlgo::isElectron(), PFMuonAlgo::isGlobalLooseMuon(), PFMuonAlgo::isGlobalTightMuon(), cms::MuonTCMETValueMapProducer::isGoodCaloMuon(), cms::MuonTCMETValueMapProducer::isGoodMuon(), cms::MuonTCMETValueMapProducer::isGoodTrack(), PFMuonAlgo::isIsolatedMuon(), TCMETAlgo::isMuon(), pat::VertexAssociation::isNonnull(), edm::Ref< L1GctEmCandCollection >::isNull(), edm::Ref< REF_FOR_VECTOR_ARGS >::isNull(), EGammaMvaEleEstimator::isoMvaValue(), MuonCosmicCompatibilityFiller::isOverlappingMuon(), PFPhotonIsolationCalculator::isPhotonParticleVetoed(), PFIsolationEstimator::isPhotonParticleVetoed(), PFCandConnector::isPrimaryNucl(), PFElectronAlgo::isPrimaryTrack(), PFEGammaAlgo::isPrimaryTrack(), PFElecTkProducer::isSameEgSC(), PFCandConnector::isSecondaryNucl(), PFElecTkProducer::isSharingEcalEnergyWithEgSC(), SoftPFMuonTagInfoProducer::isTightMuon(), PFMuonAlgo::isTrackerLooseMuon(), PFMuonAlgo::isTrackerTightMuon(), l1extra::L1EmParticle::L1EmParticle(), l1extra::L1JetParticle::L1JetParticle(), PFBlockAlgo::link(), pat::PATGenCandsFromSimTracksProducer::makeGenParticle_(), MatcherUsingTracksAlgorithm::match(), RecoTracktoTP::matched(), TPtoRecoTrack::matchedA(), TPtoRecoTrack::matchedB(), ConversionTools::matchesConversion(), PFEGammaAlgo::mergeROsByAnyLink(), PFBlockAlgo::muAssocToTrack(), MuonResidualsFromTrack::MuonResidualsFromTrack(), MuonCosmicCompatibilityFiller::muonTiming(), PFMuonAlgo::muonTracks(), ElectronMVAEstimator::mva(), SoftElectronMVAEstimator::mva(), EGammaMvaEleEstimator::mvaValue(), AntiElectronIDMVA5GBR::MVAValue(), pat::Muon::numberOfSourceCandidatePtrs(), pat::Electron::numberOfSourceCandidatePtrs(), KinematicVertex::operator reco::Vertex(), GhostTrackComputer::operator()(), CombinedSVComputer::operator()(), reco::modules::MCMatchCandRefSelector::operator()(), reco::tau::RecoTauElectronRejectionPlugin::operator()(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::RecoTauImpactParameterSignificancePlugin::operator()(), reco::tau::PFRecoTauChargedHadronFromTrackPlugin::operator()(), reco::tau::RecoTauObjectEmbedder< T >::operator()(), reco::operator<<(), pat::TriggerObject::origL1GctEmCand(), pat::TriggerObject::origL1GctEtHad(), pat::TriggerObject::origL1GctEtMiss(), pat::TriggerObject::origL1GctEtTotal(), pat::TriggerObject::origL1GctHtMiss(), pat::TriggerObject::origL1GctJetCand(), pat::TriggerObject::origL1GmtMuonCand(), pat::GenericParticle::overlap(), reco::PFTauTransverseImpactParameter::primaryVertexPos(), PFMuonAlgo::printMuonProperties(), PrimaryVertexAnalyzer4PU::printRecTrks(), PFTauElecRejectionBenchmark::process(), PFAlgo::processBlock(), TrackClassifier::processesAtSimulation(), helper::MuonCollectionStoreManager::processMuon(), DimuonMCMatcher::produce(), DistortedPFCandProducer::produce(), MuonWithPFIsoProducer::produce(), MuonWithPFIsoProducerCopy::produce(), UpdatedMuonInnerTrackRef::produce(), ParticleBasedIsoProducer::produce(), CaloMuonMerger::produce(), GEDPhotonCoreProducer::produce(), ZMuMuTrackUserData::produce(), ZMuMuMuonUserData::produce(), ZMuMuUserDataOneTrack::produce(), ZMuMuUserData::produce(), PFTrackProducer::produce(), pat::PATGenCandsFromSimTracksProducer::produce(), PFLinker::produce(), L3MuonProducer::produce(), ZToLLEdmNtupleDumper::produce(), GlobalMuonProducer::produce(), OutsideInMuonSeeder::produce(), PFElecTkProducer::produce(), pat::PATMuonProducer::produce(), reco::modules::DuplicateListMerger::produce(), TrajectorySeedFromMuonProducer::produce(), pat::PATTauProducer::produce(), pat::PATJetProducer::produce(), PFTauTransverseImpactParameters::produce(), pat::PATElectronProducer::produce(), PFTauPrimaryVertexProducer::produce(), MuonMCClassifier::produce(), reco::modules::JetFlavourIdentifier::produce(), cms::MuonTCMETValueMapProducer::propagateTrack(), MuonCosmicCompatibilityFiller::pvMatches(), PFMuonAlgo::reconstructMuon(), PFAlgo::reconstructTrack(), GsfElectronAlgo::EventData::retreiveOriginalTrackCollections(), ConvBremPFTrackFinder::runConvBremFinder(), RecoTracktoTP::RV(), TPtoRecoTrack::RVA(), TPtoRecoTrack::RVB(), SelectionStep< Object >::select(), PFElectronAlgo::SetCandidates(), reco::PFCandidate::setConversionRef(), reco::PFCandidate::setDisplacedVertexRef(), reco::PFCandidate::setGsfElectronRef(), reco::PFCandidate::setGsfTrackRef(), PFElectronAlgo::SetIDOutputs(), PFBlockAlgo::setInput(), reco::PFCandidateElectronExtra::setKfTrackRef(), reco::PFCandidateEGammaExtra::setKfTrackRef(), reco::tau::RecoTauQualityCuts::setLeadTrack(), PFElectronAlgo::SetLinks(), reco::PFCandidate::setMuonRef(), reco::PFCandidate::setPFEGammaExtraRef(), reco::PFCandidate::setPFElectronExtraRef(), reco::PFCandidate::setPFPhotonExtraRef(), reco::PFCandidate::setPhotonRef(), reco::PFCandidate::setSuperClusterRef(), reco::PFCandidate::setTrackRef(), reco::PFCandidate::setV0Ref(), SoftPFMuonTagInfoProducer::tagMuon(), MatcherUsingTracksAlgorithm::targetState(), pat::tau::TauPFSpecific::TauPFSpecific(), PFBlockAlgo::testLinkByVertex(), PFRecoTauDiscriminationByFlightPathSignificance::threeProngFlightPathSig(), muon::TMR(), PFMuonSelector::TopPag12LjetsCuts(), RecoTracktoTP::TP(), TPtoRecoTrack::TP(), HistoryBase::traceSimHistory(), MatcherByPullsAlgorithm::track(), pat::PATObject< ObjectType >::triggerObjectMatch(), pat::PATObject< ObjectType >::triggerObjectMatchByAlgorithm(), pat::PATObject< ObjectType >::triggerObjectMatchByCollection(), pat::PATObject< ObjectType >::triggerObjectMatchByCondition(), pat::PATObject< ObjectType >::triggerObjectMatchByFilter(), pat::PATObject< ObjectType >::triggerObjectMatchByPath(), pat::PATObject< ObjectType >::triggerObjectMatchByType(), PFEGammaAlgo::unwrapSuperCluster(), and egHLT::OffEle::validCTFTrack().

key_type index_
Definition: Ref.h:297
template<class C, class T, class F>
bool edm::Ref< C, T, F >::isNull ( ) const
inline

Checks for null.

Definition at line 247 of file Ref.h.

Referenced by GsfElectronAlgo::addPflowInfo(), DebugZMCTruth::analyze(), ElectronMcSignalValidator::analyze(), EwkMuDQM::analyze(), TtSemiLepSignalSelMVATrainer::analyze(), GsfElectronMCAnalyzer::analyze(), MuonPFAnalyzer::analyze(), ElectronConversionRejectionValidator::analyze(), PFElecTkProducer::applySelection(), TrackDetectorAssociator::associate(), reco::tau::RecoTauVertexAssociator::associatedVertex(), HPSPFRecoTauAlgorithm::associateIsolationCandidates(), PFAlgo::associatePSClusters(), MuonIdProducer::checkLinks(), TagProbeFitTreeProducer::checkMother(), GsfElectronAlgo::completeElectrons(), PFElectronTranslator::createBasicCluster(), PFPhotonTranslator::createBasicCluster(), GsfElectronAlgo::createElectron(), PFCand_AssoMapAlgos::CreatePFCandToVertexMap(), PFCand_AssoMapAlgos::CreateVertexToPFCandMap(), PFRecoTauDiscriminationAgainstElectron::discriminate(), PFRecoTauDiscriminationAgainstMuonMVA::discriminate(), PFRecoTauDiscriminationByIsolationMVA2::discriminate(), reco::TauImpactParameterInfo::discriminator(), JetProbabilityComputer::discriminator(), JetBProbabilityComputer::discriminator(), reco::PFBlockElementBrem::Dump(), reco::PFBlockElementTrack::Dump(), reco::PFBlockElementGsfTrack::Dump(), metsig::SignAlgoResolutions::evalPF(), MuonCaloCompatibility::evaluate(), TrackHistory::evaluate(), VertexHistory::evaluate(), CandKinematicVertexFitter::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), pat::PATElectronProducer::fillElectron(), MuonIdProducer::fillMuonId(), MuonIdProducer::fillMuonIsolation(), PFElectronTranslator::fillMVAValueMap(), pat::helper::OverlapBySuperClusterSeed::fillOverlapsForItem(), MuonTimingFiller::fillTiming(), MuonIdProducer::fillTrackerKink(), RecoTauDifferenceAnalyzer::filter(), WMuNuValidator::filter(), HSCPFilter::filter(), HSCParticleProducer::filter(), LeptonRecoSkim::filter(), UpdatedMuonInnerTrackRef::findNewRef(), PFElecTkProducer::FindPfRef(), edm::Ref< L1GctEmCandCollection >::get(), edm::Ref< REF_FOR_VECTOR_ARGS >::get(), HSCParticleProducer::getHSCPSeedCollection(), CaloRecoTauTagInfoAlgorithm::getNeutralEcalBasicClusters(), reco::GsfElectronCore::GsfElectronCore(), ConversionTools::hasMatchedConversion(), ConversionTools::hasMatchedPromptElectron(), reco::PFTau::hasMuonReference(), HLTMuonTrackMassFilter::hltFilter(), PFEGammaAlgo::initializeProtoCands(), edm::OneToValue< reco::CaloJetCollection, reco::L2TauIsolationInfo >::insert(), edm::OneToMany< reco::TrackJetCollection, reco::TrackCollection >::insert(), KDTreeLinkerPSEcal::insertFieldClusterElt(), KDTreeLinkerTrackEcal::insertFieldClusterElt(), KDTreeLinkerTrackHcal::insertFieldClusterElt(), PFPhotonIsolationCalculator::isChargedParticleVetoed(), PFIsolationEstimator::isChargedParticleVetoed(), pat::VertexAssociation::isNull(), CandidateSelector::isSelected(), PFBlockAlgo::link(), PFEGammaAlgo::linkRefinableObjectGSFTracksToKFs(), DisplayManager::loadGPFBlocks(), MuonIdProducer::makeMuon(), L3TkMuonProducer::makePseudoRef(), MuonErrorMatrixAdjuster::makeTrackExtra(), ConversionTools::matchedConversion(), ConversionTools::matchedPromptElectron(), ConversionTools::matchesConversion(), PFRootEventManager::mcTruthMatching(), PFEGammaAlgo::mergeROsByAnyLink(), reco::tau::qcuts::minTrackVertexWeight(), ZMuMuIsolationAnalyzer::muTag(), edm::Ref< L1GctEmCandCollection >::operator!(), edm::Ref< REF_FOR_VECTOR_ARGS >::operator!(), tautools::RecoTauDistanceFromTruthPlugin::operator()(), tautools::RecoTauDecayModeTruthMatchPlugin::operator()(), CandMatcherBase< C1, C2 >::operator()(), pat::VertexAssociation::operator->(), reco::utilsNew::CandMatcher< C >::operator[](), PromptTrackCountingComputer::orderedSignificances(), TrackCountingComputer::orderedSignificances(), MuonIdProducer::overlap(), HLTMuonTrackMassFilter::pairMatched(), reco::PFBlockElementGsfTrack::PFBlockElementGsfTrack(), reco::PFBlockElementTrack::PFBlockElementTrack(), PFCandidateChecker::printElementsInBlocks(), PFJetBenchmark::process(), PFAlgo::processBlock(), PFRootEventManagerColin::processHIGH_E_TAUS(), DistortedPFCandProducer::produce(), DistortedMuonProducer::produce(), reco::modulesNew::MCTruthCompositeMatcher::produce(), PFElectronTranslator::produce(), TtSemiLepSignalSelMVAComputer::produce(), GlobalTrackQualityProducer::produce(), PFTrackProducer::produce(), MuonReSeeder::produce(), L3MuonCandidateProducer::produce(), OutsideInMuonSeeder::produce(), PFElecTkProducer::produce(), ElectronSeedTrackRefUpdater::produce(), RecoTauProducer::produce(), FFTJetPFPileupCleaner::produce(), ElectronSeedTrackRefUpdaterAndMerger::produce(), PFPhotonTranslator::produce(), GsfElectronCoreEcalDrivenProducer::produceEcalDrivenCore(), GEDGsfElectronCoreProducer::produceElectronCore(), edm::Ref< REF_FOR_VECTOR_ARGS >::product(), TCTauAlgorithm::recalculateEnergy(), L3TkMuonProducer::seedRefBypT(), pf2pat::MuonIDPFCandidateSelectorDefinition::select(), pf2pat::ElectronIDPFCandidateSelectorDefinition::select(), GsfElectronAlgo::setCutBasedPreselectionFlag(), PropagateToMuon::startingState(), MatcherUsingTracksAlgorithm::startingState(), reco::GsfElectronCore::superCluster(), LinkByRecHit::testECALAndPSByRecHit(), LinkByRecHit::testTrackAndClusterByRecHit(), PFRecoTauDiscriminationByFlightPathSignificance::threeProngFlightPathSig(), GlobalCosmicMuonTrajectoryBuilder::trajectories(), reco::tau::qcuts::trkLongitudinalImpactParameter(), reco::tau::qcuts::trkTransverseImpactParameter(), and pat::VertexAssociation::vertex().

247 {return !isNonnull(); }
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
template<class C, class T, class F>
bool edm::Ref< C, T, F >::isTransient ( ) const
inline

Checks if this ref is transient (i.e. not persistable).

Definition at line 279 of file Ref.h.

Referenced by TauDiscriminationAgainstCaloMuon< TauType, TauDiscriminator >::discriminate().

279 {return product_.isTransient();}
RefCore product_
Definition: Ref.h:296
bool isTransient() const
Definition: RefCore.h:69
template<class C, class T, class F>
key_type edm::Ref< C, T, F >::key ( ) const
inline

Accessor for product key.

Definition at line 266 of file Ref.h.

Referenced by TkPixelMeasurementDet::accept(), GCC11_FINAL< T, TOPO >::accept(), GenParticlePruner::addDaughterRefs(), FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), GenParticlePruner::addMotherRefs(), ZMuMuAnalyzer::analyze(), SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), ZMuMuAnalyzer_cynematics::analyze(), METTester::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), TrackerDpgAnalysis::analyze(), MuonTrackValidator::analyze(), ConvertedPhotonProducer::cleanCollections(), PFMuonAlgo::cleanPunchThroughAndFakes(), reco::tau::RecoTauConstructor::convertToPtr(), RecoTauIndexDiscriminatorProducer::discriminate(), PFRecoTauDiscriminationAgainstMuon2::discriminate(), electronSelector(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::erase(), TriggerSummaryProducerAOD::fillFilterObjectMember(), PhotonCoreProducer::fillPhotonCollection(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::find(), reco::TauMassTagInfo::getInvariantMass(), TrackerMuonHitExtractor::getMuonHits(), HLTMuonL3PreFilter::hltFilter(), edm::OneToValue< reco::CaloJetCollection, reco::L2TauIsolationInfo >::insert(), edm::OneToMany< reco::TrackJetCollection, reco::TrackCollection >::insert(), ZMuMuAnalyzer_cynematics::isContained(), TCMETAlgo::isElectron(), TCMETAlgo::isGoodTrack(), NuclearInteractionEDProducer::isInside(), TCMETAlgo::isMuon(), edm::Ref< REF_FOR_VECTOR_ARGS >::isNonnull(), DisplayManager::loadGPFBlocks(), L3TkMuonProducer::makePseudoRef(), ConversionTools::matchesConversion(), reco::modules::HICaloCompatibleTrackSelector::matchPFCandToTrack(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::numberOfAssociations(), pat::TriggerEvent::objectInCondition(), pat::TriggerEvent::objectInFilter(), CandMatcherBase< C1, C2 >::operator()(), edm::CompareRefDetSet< T, C >::operator()(), edm::Ref< REF_FOR_VECTOR_ARGS >::operator*(), edm::Ref< REF_FOR_VECTOR_ARGS >::operator->(), GenParticlesHelper::operator<<(), reco::operator<<(), reco::utilsNew::CandMatcher< C >::operator[](), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::operator[](), ClusterClusterMapping::overlap(), printseed(), TrackListCombiner::produce(), QualityFilter::produce(), DistortedPFCandProducer::produce(), MuonTrackProducer::produce(), PFConversionProducer::produce(), PFV0Producer::produce(), FastTrackMerger::produce(), reco::modulesNew::MCTruthCompositeMatcher::produce(), TrackInfoProducer::produce(), GEDPhotonCoreProducer::produce(), pat::PATGenCandsFromSimTracksProducer::produce(), TkAlCaOverlapTagger::produce(), L3TkMuonProducer::produce(), TrackCandidateProducer::produce(), RecoTauJetRegionProducer::produce(), L3MuonProducer::produce(), cms::SimpleTrackListMerger::produce(), cms::TrackListMerger::produce(), GlobalMuonProducer::produce(), DeDxEstimatorProducer::produce(), reco::modules::CosmicTrackSelector::produce(), RecoTauPiZeroProducer::produce(), reco::modules::AnalyticalTrackSelector::produce(), reco::modules::HICaloCompatibleTrackSelector::produce(), FFTJetPFPileupCleaner::produce(), reco::modules::TrackMultiSelector::produce(), MuonProducer::produce(), PFTauTransverseImpactParameters::produce(), PFRecoTauChargedHadronProducer::produce(), reco::modules::TrackFullCloneSelectorBase< Selector >::produce(), MuonMCClassifier::produce(), reco::modules::TrackerTrackHitFilter::produce(), TriggerMatcherToHLTDebug::produce(), PFTau3ProngReco::produce(), GlobalMuonTrackMixer::produceTrackExtras(), GlobalMuonTrackCleaner::produceTrackExtras(), TeVMuonTrackCleaner::produceTrackExtras(), TeVMuonTrackMixer::produceTrackExtras(), edm::RefVector< JetEisolAssociationCollection >::push_back(), edm::Ref< C, T, F >::Ref(), DisplayManager::retrieveBadBrems(), reco::PFCandidate::setConversionRef(), reco::PFCandidate::setDisplacedVertexRef(), reco::PFCandidate::setGsfElectronRef(), reco::PFCandidate::setGsfTrackRef(), PFBlockAlgo::setInput(), reco::PFCandidate::setMuonRef(), reco::PFCandidate::setPFEGammaExtraRef(), reco::PFCandidate::setPFElectronExtraRef(), reco::PFCandidate::setPFPhotonExtraRef(), reco::PFCandidate::setPhotonRef(), reco::PFCandidate::setSuperClusterRef(), reco::PFCandidate::setTrackRef(), reco::PFCandidate::setV0Ref(), PhotonCoreProducer::solveAmbiguity(), ConvertedPhotonProducer::solveAmbiguity(), PF_PU_AssoMapAlgos::SortAssociationMap(), PFCand_AssoMapAlgos::SortPFCandAssociationMap(), pat::Muon::sourceCandidatePtr(), pat::Electron::sourceCandidatePtr(), PFBlockAlgo::testLinkBySuperCluster(), reco::TrackJet::track(), SiStripMonitorTrack::trackStudyFromTrajectory(), and TrackVertexArbitration::trackVertexArbitrator().

266 {return index_;}
key_type index_
Definition: Ref.h:297
template<class C, class T, class F>
bool edm::Ref< C, T, F >::operator! ( ) const
inline

Checks for null.

Definition at line 253 of file Ref.h.

253 {return isNull();}
bool isNull() const
Checks for null.
Definition: Ref.h:247
template<typename C , typename T , typename F >
T const & edm::Ref< C, T, F >::operator* ( ) const
inline

Dereference operator.

Definition at line 615 of file Ref.h.

615  {
616  return *getPtr<C, T, F>(product_, index_);
617  }
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
template<typename C , typename T , typename F >
T const * edm::Ref< C, T, F >::operator-> ( ) const
inline

Member dereference operator.

Definition at line 629 of file Ref.h.

Referenced by edm::Ref< L1GctEmCandCollection >::get(), and edm::Ref< REF_FOR_VECTOR_ARGS >::get().

629  {
630  return getPtr<C, T, F>(product_, index_);
631  }
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
template<typename C , typename T , typename F >
C const * edm::Ref< C, T, F >::product ( ) const
inline

Accessor for product collection.

Definition at line 601 of file Ref.h.

References svgfig::template().

Referenced by edm::RefToBaseProd< T >::RefToBaseProd().

601  {
602  return isNull() ? 0 : edm::template getProduct<C>(product_);
603  }
bool isNull() const
Checks for null.
Definition: Ref.h:247
RefCore product_
Definition: Ref.h:296
def template
Definition: svgfig.py:520
template<class C, class T, class F>
EDProductGetter const* edm::Ref< C, T, F >::productGetter ( ) const
inline
template<class C, class T, class F>
RefCore const& edm::Ref< C, T, F >::refCore ( ) const
inline

Friends And Related Function Documentation

template<class C, class T, class F>
friend class RefVector< C, T, F >
friend

Definition at line 156 of file Ref.h.

template<class C, class T, class F>
friend class RefVector< RefVector< C, T, F >, T, VBF >
friend

Definition at line 159 of file Ref.h.

template<class C, class T, class F>
friend class RefVector< RefVector< C, T, F >, T, VF >
friend

Definition at line 157 of file Ref.h.

template<class C, class T, class F>
friend class RefVector< RefVector< RefVector< C, T, F >, T, VBF >, T, VBF >
friend

Definition at line 160 of file Ref.h.

template<class C, class T, class F>
friend class RefVector< RefVector< RefVector< C, T, F >, T, VF >, T, VF >
friend

Definition at line 158 of file Ref.h.

template<class C, class T, class F>
friend class RefVectorIterator< C, T, F >
friend

Definition at line 155 of file Ref.h.

Member Data Documentation

template<class C, class T, class F>
key_type edm::Ref< C, T, F >::index_
private
template<class C, class T, class F>
RefCore edm::Ref< C, T, F >::product_
mutableprivate