CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static 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 std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
 
typedef C product_type
 for export 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...
 
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 (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 *item, key_type itemKey, C const *)
 Constructor for use in the various X::fillView(...) functions. More...
 
 Ref (ProductID const &iProductID, T const *item, key_type itemKey)
 
 Ref (ProductID const &iProductID, T const *item, key_type itemKey, bool transient)
 
 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...
 

Static Public Member Functions

static short Class_Version ()
 
static key_type invalidKey ()
 

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 RefVectorIterator< C, T, F >
 

Detailed Description

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
class edm::Ref< C, T, F >

Definition at line 51 of file AssociativeIterator.h.

Member Typedef Documentation

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
typedef boost::binary_traits<F>::second_argument_type edm::Ref< C, T, F >::argument_type

Definition at line 168 of file Ref.h.

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
typedef T const edm::Ref< C, T, F >::element_type

Definition at line 166 of file Ref.h.

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
typedef F edm::Ref< C, T, F >::finder_type

Definition at line 167 of file Ref.h.

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
typedef std::remove_cv<typename std::remove_reference<argument_type>::type>::type edm::Ref< C, T, F >::key_type

Definition at line 169 of file Ref.h.

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
typedef C edm::Ref< C, T, F >::product_type

for export

Definition at line 164 of file Ref.h.

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
typedef T edm::Ref< C, T, F >::value_type

Definition at line 165 of file Ref.h.

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
typedef refhelper::FindRefVectorUsingAdvance<RefToBaseVector<T> > edm::Ref< C, T, F >::VBF
private

Definition at line 156 of file Ref.h.

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
typedef refhelper::FindRefVectorUsingAdvance<RefVector<C, T, F> > edm::Ref< C, T, F >::VF
private

Definition at line 155 of file Ref.h.

Constructor & Destructor Documentation

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
edm::Ref< C, T, F >::Ref ( )
inline
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 465 of file Ref.h.

References cmsBatch::handle, edm::Handle< T >::product(), edm::Ref< C, T, F >::product_, and edm::Ref< C, T, F >::Ref().

465  :
466  product_(handle.id(), nullptr, nullptr, false), index_(itemKey) {
467  if(itemKey == key_traits<key_type>::value) return;
468  refitem::findRefItem<C, T, F, key_type>(product_, handle.product(), itemKey);
469  }
static const key_type value
Definition: traits.h:36
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 ( OrphanHandle< C > const &  handle,
key_type  itemKey,
bool  setNow = true 
)
inline

General purpose constructor from orphan handle.

Definition at line 485 of file Ref.h.

References cmsBatch::handle, edm::OrphanHandle< T >::product(), edm::Ref< C, T, F >::product_, and edm::Ref< C, T, F >::Ref().

485  :
486  product_(handle.id(), nullptr, nullptr, false), index_(itemKey) {
487  if(itemKey == key_traits<key_type>::value) return;
488  refitem::findRefItem<C, T, F, key_type>(product_, handle.product(), itemKey);
489  }
static const key_type value
Definition: traits.h:36
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 ( 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 511 of file Ref.h.

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

511  :
512  product_(ProductID(), nullptr, nullptr, true), index_(iProduct != nullptr ? itemKey : key_traits<key_type>::value) {
513  if(iProduct != nullptr) {
514  refitem::findRefItem<C, T, F, key_type>(product_, iProduct, itemKey);
515  }
516  }
static const key_type value
Definition: traits.h:36
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 ( TestHandle< C > const &  handle,
key_type  itemKey,
bool  setNow = true 
)
inline

Constructor from test handle.

constructor from test handle.

Definition at line 531 of file Ref.h.

References cmsBatch::handle, edm::TestHandle< T >::product(), edm::Ref< C, T, F >::product_, and edm::Ref< C, T, F >::Ref().

531  :
532  product_(handle.id(), nullptr, nullptr, true), index_(itemKey) {
533  if(itemKey == key_traits<key_type>::value) return;
534  refitem::findRefItem<C, T, F, key_type>(product_, handle.product(), itemKey);
535  }
static const key_type value
Definition: traits.h:36
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
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 199 of file Ref.h.

199  :
200  product_(productID, nullptr, mustBeNonZero(prodGetter, "Ref", productID), false), index_(itemKey) {
201  }
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<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
edm::Ref< C, T, F >::Ref ( ProductID const &  iProductID,
T const *  item,
key_type  itemKey,
C const *   
)
inline

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

Definition at line 210 of file Ref.h.

210  :
211  product_(iProductID, item, 0, false), index_(itemKey)
212  { }
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
edm::Ref< C, T, F >::Ref ( ProductID const &  iProductID,
T const *  item,
key_type  itemKey 
)
inline

Definition at line 214 of file Ref.h.

214  :
215  product_(iProductID, item, nullptr, false), index_(itemKey)
216  { }
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
edm::Ref< C, T, F >::Ref ( ProductID const &  iProductID,
T const *  item,
key_type  itemKey,
bool  transient 
)
inline

Definition at line 218 of file Ref.h.

218  :
219  product_(iProductID, item, nullptr, transient), index_(itemKey)
220  { }
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
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 226 of file Ref.h.

226  :
227  product_(iId, nullptr, nullptr, false), index_(key_traits<key_type>::value)
228  { }
static const key_type value
Definition: traits.h:36
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 550 of file Ref.h.

References edm::Ref< C, T, F >::product_, edm::Ref< C, T, F >::Ref(), and edm::RefProd< C >::refCore().

550  :
551  product_(refProd.id(), nullptr, refProd.refCore().productGetter(), refProd.refCore().isTransient()),
552  index_(itemKey) {
553 
554  if(refProd.refCore().productPtr() != nullptr && itemKey != key_traits<key_type>::value) {
555  refitem::findRefItem<C, T, F, key_type>(product_,
556  static_cast<product_type const*>(refProd.refCore().productPtr()),
557  itemKey);
558  }
559  }
static const key_type value
Definition: traits.h:36
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
C product_type
for export
Definition: Ref.h:164
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
edm::Ref< C, T, F >::~Ref ( )
inline

Destructor.

Definition at line 234 of file Ref.h.

234 {}
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
edm::Ref< C, T, F >::Ref ( RefCore const &  iRefCore,
key_type const &  iKey 
)
inline

Definition at line 286 of file Ref.h.

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

Member Function Documentation

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
void edm::Ref< C, T, F >::checkTypeAtCompileTime ( C const *  )
inlineprivate

Definition at line 294 of file Ref.h.

294 {}
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
static short edm::Ref< C, T, F >::Class_Version ( )
inlinestatic

Definition at line 283 of file Ref.h.

286 :
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
T const* edm::Ref< C, T, F >::get ( ) const
inline

Returns C++ pointer to the item.

Definition at line 245 of file Ref.h.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), RecoMuonValidator::analyze(), ZMuMuAnalyzer_cynematics::analyze(), calcTopMass::analyze(), TestOutliers::analyze(), MuonTrackValidator::analyze(), SegmentToTrackAssociator::associate(), reco::RecoCandidate::bestTrack(), reco::Muon::bestTrack(), FWTrajectorySeedProxyBuilder::build(), FWPFTauProxyBuilder::buildViewType(), FWCaloTauProxyBuilder::buildViewType(), reco::CaloMuon::charge(), SimpleCosmicBONSeeder::checkCharge(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), PFMEtSignInterfaceBase::compResolution(), PileupJetIdAlgo::computeIdVariables(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), util.rrapi.RRApi::data(), rrapi.RRApi::data(), PATTauDiscriminationAgainstElectronMVA6::discriminate(), MuonAlignmentAnalyzer::doMatching(), MuonAlignment::doMatching(), MultiTrackValidatorGenPs::dqmAnalyze(), 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(), MuonIdProducer::fillMuonId(), MuonIdProducer::fillMuonIsolation(), ElectronMVAEstimatorRun2Fall17::fillMVAVariables(), ElectronMVAEstimatorRun2Spring15Trig::fillMVAVariables(), ElectronMVAEstimatorRun2Spring15NonTrig::fillMVAVariables(), ElectronMVAEstimatorRun2Spring16GeneralPurpose::fillMVAVariables(), ElectronMVAEstimatorRun2Spring16HZZ::fillMVAVariables(), 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(), ConversionFinder::getConversionInfos(), EgammaEcalIsolation::getEcalEtSum(), BPHTrackReference::getElecPF(), ConversionFinder::getElectronTrack(), BPHTrackReference::getFromGP(), BPHTrackReference::getFromPF(), BPHTrackReference::getFromRC(), betterConfigParser.BetterConfigParser::getGeneral(), getGenTau(), EgammaHcalIsolation::getHcalESum(), EgammaHcalIsolation::getHcalESumDepth1(), EgammaHcalIsolation::getHcalESumDepth2(), EgammaHcalIsolation::getHcalEtSum(), EgammaHcalIsolation::getHcalEtSumDepth1(), EgammaHcalIsolation::getHcalEtSumDepth2(), BPHTrackReference::getMuonBT(), BPHTrackReference::getMuonGT(), TrackerMuonHitExtractor::getMuonHits(), BPHTrackReference::getMuonIT(), BPHTrackReference::getMuonPF(), BPHTrackReference::getMuonSA(), betterConfigParser.BetterConfigParser::getResultingSection(), EgammaRecHitIsolation::getSum_(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTMuonIsoFilter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), PFEGammaAlgo::initializeProtoCands(), CosmicSplitterValidation::is_gold_muon(), SoftPFElectronTagInfoProducer::isElecClean(), cms::MuonTCMETValueMapProducer::isGoodCaloMuon(), MuonIdProducer::makeMuon(), pat::PackedGenParticle::mother(), MuonResidualsFromTrack::MuonResidualsFromTrack(), SoftElectronMVAEstimator::mva(), tautools::RecoTauDecayModeTruthMatchPlugin::operator()(), ZElectronsSelector::operator()(), pat::VertexAssociation::operator->(), reco::CaloMuon::p(), reco::CaloMuon::phi(), TTStub< T >::print(), ElectronSqPtTkIsolationProducer::produce(), MuonTrackProducer::produce(), ShallowSimTracksProducer::produce(), FastTSGFromL2Muon::produce(), HLTDisplacedmumumuVtxProducer::produce(), HLTDisplacedmumuVtxProducer::produce(), SoftPFMuonTagInfoProducer::produce(), EgammaHLTEcalRecIsolationProducer::produce(), SoftPFElectronTagInfoProducer::produce(), EgammaEcalRecHitIsolationProducer::produce(), HLTDisplacedtktkVtxProducer::produce(), HLTDisplacedtktktkVtxProducer::produce(), HLTmumutktkVtxProducer::produce(), FastTrackerRecHitMatcher::produce(), HLTmumutkVtxProducer::produce(), pat::PATIsolatedTrackProducer::produce(), PFTauTransverseImpactParameters::produce(), MuonIdProducer::produce(), reco::modules::JetFlavourIdentifier::produce(), JetCleanerForType1METT< T, Textractor >::produce(), PFJetMETcorrInputProducerT< T, Textractor >::produce(), cms::MuonTCMETValueMapProducer::propagateTrack(), reco::CaloMuon::pt(), reco::CaloMuon::px(), reco::CaloMuon::py(), reco::CaloMuon::pz(), CosmicRegionalSeedGenerator::regions(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), PFTauSelectorDefinition::select(), MuScleFitMuonSelector::selectGeneratedMuons(), GsfElectronAlgo::setAmbiguityData(), PFElectronAlgo::SetCandidates(), PFDisplacedVertexCandidateFinder::setInput(), MuonTrackDT2ChamberResidual::setSegmentResidual(), MuonTrackDT13ChamberResidual::setSegmentResidual(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), ImpactParameterAlgorithm::tag(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), reco::CaloMuon::theta(), reco::TrackJet::track(), MatcherByPullsAlgorithm::track(), pat::PATObject< ObjectType >::triggerObjectMatch(), MuonIdTruthInfo::truthMatchMuon(), PFEGammaAlgo::unwrapSuperCluster(), pat::VertexAssociation::vertex(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().

245  {
246  return isNull() ? nullptr : this->operator->();
247  }
bool isNull() const
Checks for null.
Definition: Ref.h:250
T const * operator->() const
Member dereference operator.
Definition: Ref.h:612
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
bool edm::Ref< C, T, F >::hasProductCache ( ) const
inline

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

Definition at line 271 of file Ref.h.

271 {return product_.productPtr() != 0;}
RefCore product_
Definition: Ref.h:296
void const * productPtr() const
Definition: RefCore.h:52
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
ProductID edm::Ref< C, T, F >::id ( ) const
inline

Accessor for product ID.

Definition at line 259 of file Ref.h.

Referenced by reco::PFCandidate::addElementInBlock(), FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), fireworks::addSiStripClusters(), ZMuMuAnalyzer::analyze(), ZMuMuAnalyzer_cynematics::analyze(), PackedCandidateTrackValidator::analyze(), reco::helper::CastorJetIDHelper::calculate(), ClusterTPAssociation::checkMappedProductID(), SiPixelClusterShapeCache::checkRef(), Phase2ITPixelClusterShapeCache::checkRef(), ConvertedPhotonProducer::cleanCollections(), CastorTowerProducer::ComputeTowerVariable(), MuonSimClassifier::convertAndPush(), MuonMCClassifier::convertAndPush(), electronSelector(), PhotonCoreProducer::fillPhotonCollection(), SimpleJetFilter::filter(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::find(), ConversionFinder::getConversionInfos(), HLTMuonL3PreFilter::hltFilter(), edm::OneToValue< reco::CaloJetCollection, reco::L2TauIsolationInfo >::insert(), edm::OneToMany< reco::TrackJetCollection, reco::TrackCollection >::insert(), ZMuMuAnalyzer_cynematics::isContained(), L3TkMuonProducer::makePseudoRef(), MatcherUsingTracksAlgorithm::match(), TrackingNtuple::matchCluster(), ConversionTools::matchesConversion(), JetPlusTrackCorrector::matchMuons(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::numberOfAssociations(), ZMuMuOverlap::operator()(), reco::tau::RecoTauDiscriminantFromDiscriminator::operator()(), JoinCaloTowerRefVectorsWithoutDuplicates::twrrefcomp::operator()(), ClusterClusterMapping::overlap(), printseed(), SeedClusterRemoverPhase2::process(), SeedClusterRemover::process(), HLTTrackClusterRemoverNew::process(), HITrackClusterRemover::process(), pat::PackedPFCandidateRefMixer::produce(), HLTHcalTowerNoiseCleaner::produce(), HLTHcalTowerNoiseCleanerWithrechit::produce(), GEDPhotonCoreProducer::produce(), GlobalTrackQualityProducer::produce(), pat::PATGenCandsFromSimTracksProducer::produce(), L3TkMuonProducer::produce(), TrackListMerger::produce(), pat::PATPackedCandidateProducer::produce(), pat::PATLostTracks::produce(), Onia2MuMuPAT::produce(), pat::PATIsolatedTrackProducer::produce(), ElectronSeedProducer::produce(), RecoTauProducer::produce(), CastorTowerProducer::produce(), CastorClusterProducer::produce(), MuonProducer::produce(), MuonSimClassifier::produce(), MuonMCClassifier::produce(), TriggerMatcherToHLTDebug::produce(), fireworks::pushNearbyPixelHits(), GsfElectronAlgo::EventData::retreiveOriginalTrackCollections(), SeedClusterRemover::SeedClusterRemover(), HITrackClusterRemover::sensorThickness(), PhotonCoreProducer::solveAmbiguity(), ConvertedPhotonProducer::solveAmbiguity(), and reco::TrackJet::track().

259 {return product_.id();}
RefCore product_
Definition: Ref.h:296
ProductID id() const
Definition: RefCore.h:49
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
key_type edm::Ref< C, T, F >::index ( ) const
inline
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
static key_type edm::Ref< C, T, F >::invalidKey ( )
inlinestatic

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

Definition at line 173 of file Ref.h.

173 { return key_traits<key_type>::value; }
static const key_type value
Definition: traits.h:36
template<typename C , typename T , typename 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 577 of file Ref.h.

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

Referenced by fireworks::addSiStripClusters(), reco::PFCandidate::bestTrack(), FWMuonLegoProxyBuilder::build(), FWPhotonDetailView::build(), FWTracksModulesProxyBuilder::build(), FWTracksRecHitsProxyBuilder::build(), FWElectronLegoProxyBuilder::build(), FWTrackProxyBuilder::build(), FWElectronDetailView::build(), FWTrackHitsDetailView::build(), FWConvTrackHitsDetailView::build(), FWTrackResidualDetailView::build(), FWMuonBuilder::buildMuon(), FWMuonBuilder::calculateField(), helper::MuonCollectionStoreManager::clusterRefsOK(), PFMEtSignInterfaceBase::compResolution(), MVAJetPuId::computeIdVariables(), PFPhotonAlgo::EarlyConversion(), fw::estimate_field(), PatZToMuMuAnalyzer::fill(), EwkMuTauHistManager::fillHistograms(), ElectronMVAEstimatorRun2Fall17::fillMVAVariables(), ElectronMVAEstimatorRun2Phys14NonTrig::fillMVAVariables(), ElectronMVAEstimatorRun2Spring15Trig::fillMVAVariables(), ElectronMVAEstimatorRun2Spring15NonTrig::fillMVAVariables(), ElectronMVAEstimatorRun2Spring16GeneralPurpose::fillMVAVariables(), ElectronMVAEstimatorRun2Spring16HZZ::fillMVAVariables(), pat::helper::OverlapBySuperClusterSeed::fillOverlapsForItem(), MuonBadTrackFilter::filter(), reco::PFCandidate::flag(), BPHTrackReference::getElecPF(), BPHTrackReference::getFromGP(), BPHTrackReference::getFromPF(), BPHTrackReference::getFromRC(), BTagPerformanceAnalyzerMC::getJetWithGenJet(), BPHTrackReference::getMuonBT(), BPHTrackReference::getMuonGT(), BPHTrackReference::getMuonIT(), BPHTrackReference::getMuonPF(), BPHTrackReference::getMuonSA(), CandMCMatchTableProducer::getParentHadronFlag(), FWPFTrackUtils::getTrack(), edm::Ref< L1GctEmCandCollection >::hasProductCache(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::hasProductCache(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), GSFTrackImporter::importToBlock(), PFEGammaAlgo::initializeProtoCands(), pat::VertexAssociation::isAvailable(), fireworks::makeRhoPhiSuperCluster(), fireworks::makeRhoZSuperCluster(), EGRegressionModifierV2::modifyObject(), EGRegressionModifierV1::modifyObject(), pat::PackedGenParticle::motherRef(), ElectronMVAEstimator::mva(), SoftElectronMVAEstimator::mva(), EGammaMvaEleEstimatorCSA14::mvaValue(), EGammaMvaEleEstimator::mvaValue(), AntiElectronIDMVA5::MVAValue(), AntiElectronIDMVA6::MVAValue(), MuonIdProducer::phiOfMuonIneteractionRegion(), fireworks::prepareTrack(), pat::PATMuonProducer::produce(), pat::PATTauProducer::produce(), HLTScoutingEgammaProducer::produce(), pat::PATJetProducer::produce(), HLTScoutingMuonProducer::produce(), pat::PATElectronProducer::produce(), MuonIdProducer::produce(), TrackExtrapolator::propagateTrackToVolume(), fireworks::pushNearbyPixelHits(), FWElectronProxyBuilder::requestCommon(), MuScleFitMuonSelector::selectGeneratedMuons(), PFElectronAlgo::SetCandidates(), FWElectronDetailView::setTextInfo(), pat::tau::TauPFEssential::TauPFEssential(), pat::tau::TauPFSpecific::TauPFSpecific(), tevOptimizedTMR(), PFMuonSelector::TopPag12LjetsCuts(), toTrackRef(), MuonBadTrackFilter::trackInfo(), and PFEGammaAlgo::unwrapSuperCluster().

577  {
578  if(product_.isAvailable()) {
579  return true;
580  }
581  return isThinnedAvailable<C>(product_, index_);
582  }
key_type index_
Definition: Ref.h:297
RefCore product_
Definition: Ref.h:296
bool isAvailable() const
Definition: RefCore.cc:169
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
bool edm::Ref< C, T, F >::isNonnull ( ) const
inline

Checks for non-null.

Definition at line 253 of file Ref.h.

Referenced by reco::tau::RecoTauPiZeroStripPlugin2::addCandsToStrip(), reco::tau::RecoTauPiZeroStripPlugin3::addCandsToStrip(), pat::PATObject< ObjectType >::addGenParticleRef(), BetaCalculatorRPC::addInfoToCandidate(), PFMuonAlgo::addMissingMuons(), fireworks::addSiStripClusters(), PFCandConnector::analyseNuclearWPrim(), DimuonStatistics::analyze(), ZHistogrammer::analyze(), ZMCHistogrammer::analyze(), TrackTypeMonitor::analyze(), PatTrackAnalyzer::analyze(), ZMuMuEfficiency::analyze(), ElectronMcFakeValidator::analyze(), RecoMuonValidator::analyze(), MuonRecoAnalyzer::analyze(), SimplePhotonAnalyzer::analyze(), ZeePlots::analyze(), WenuPlots::analyze(), ZMuMuPerformances::analyze(), SiStripElectronAnalyzer::analyze(), ZMuMu_MCanalyzer::analyze(), TagProbeFitTreeProducer::analyze(), gamma_radiative_analyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), SiPixelTrackResidualSource::analyze(), MCAcceptanceAnalyzer::analyze(), calcTopMass::analyze(), PhotonValidator::analyze(), PhotonAnalyzer::analyze(), HPSPFRecoTauAlgorithm::applyElectronRejection(), HPSPFRecoTauAlgorithm::applyMuonRejection(), MuonToSimAssociatorByHits::associateMuons(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), ZToMuMuGammaAnalyzer::basicMuonSelection(), reco::RecoCandidate::bestTrack(), reco::PFCandidate::bestTrack(), reco::RecoCandidate::bestTrackRef(), CaloRecoTauAlgorithm::buildCaloTau(), ConversionProducer::buildCollection(), ConvertedPhotonProducer::buildCollections(), PFRecoTauAlgorithm::buildPFTau(), HPSPFRecoTauAlgorithm::buildPFTau(), PFEGammaAlgo::calculate_ele_mva(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), QGTagger::calcVariables(), reco::PFMETProducerMVA::chargedFracInCone(), ConversionProducer::checkPhi(), PFMuonAlgo::cleanPunchThroughAndFakes(), helper::GsfElectronCollectionStoreManager::cloneAndStore(), TCMETAlgo::closeToElectron(), PFMEtSignInterfaceBase::compResolution(), EcalPFClusterIsolation< T1 >::computedRVeto(), MVAJetPuId::computeIdVariables(), PileupJetIdAlgo::computeIdVariables(), pat::SoftMuonMvaEstimator::computeMva(), reco::PFMETProducerMVA::computePFCandidateInfo(), MuonSimClassifier::convertAndPush(), MuonMCClassifier::convertAndPush(), reco::tau::RecoTauConstructor::convertToPtr(), reco::GsfElectron::deltaEtaSeedClusterTrackAtVtx(), PFCandWithSuperClusterExtractor::depositFromObject(), dEtaInSeed(), ElectronIdentifier::dEtaInSeed(), PFRecoTauDiscriminationByLeadingObjectPtCut::discriminate(), CaloRecoTauDiscriminationByLeadingTrackPtCut::discriminate(), RecoTauDiscriminationByGenMatch::discriminate(), PFRecoTauDiscriminationByNProngs::discriminate(), PFRecoTauDiscriminationByTauPolarization::discriminate(), PFRecoTauDiscriminationAgainstMuon::discriminate(), PATTauDiscriminationAgainstElectronMVA6::discriminate(), PFRecoTauDiscriminationAgainstElectronMVA6::discriminate(), PFRecoTauDiscriminationAgainstElectronMVA5::discriminate(), PFRecoTauDiscriminationByIsolation::discriminate(), V0Validator::doFakeRates(), PFPhotonAlgo::EarlyConversion(), pat::GenericParticle::embedCaloTower(), pat::GenericParticle::embedCombined(), pat::GenericParticle::embedGsfTrack(), pat::GenericParticle::embedStandalone(), pat::GenericParticle::embedSuperCluster(), pat::GenericParticle::embedTrack(), PFIsolationEstimator::fGetIsolationInRings(), PFPhotonIsolationCalculator::fGetIsolationInRings(), RecoMuonValidator::MuonME::fill(), egHLT::OffHelper::fillHLTData(), MuonIdProducer::fillMuonId(), MuonIdProducer::fillMuonIsolation(), ElectronMVAEstimatorRun2Fall17::fillMVAVariables(), ElectronMVAEstimatorRun2Phys14NonTrig::fillMVAVariables(), ElectronMVAEstimatorRun2Spring15Trig::fillMVAVariables(), ElectronMVAEstimatorRun2Spring15NonTrig::fillMVAVariables(), ElectronMVAEstimatorRun2Spring16GeneralPurpose::fillMVAVariables(), ElectronMVAEstimatorRun2Spring16HZZ::fillMVAVariables(), PhotonCoreProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), PrimaryVertexValidation::fillTrackHistos(), ZtoEEEventSelector::filter(), WtoLNuSelector::filter(), reco::tau::AssociationMatchRefSelector< InputType, MatchedType, OutputType, ClonePolicy >::filter(), HSCPTreeBuilder::filter(), pat::PATSingleVertexSelector::filter_(), Onia2MuMuPAT::findJpsiMCInfo(), reco::PFCandidate::flag(), pat::PATObject< reco::Muon >::genParticle(), ConversionFinder::getConversionInfo(), ConversionFinder::getConversionInfos(), BPHTrackReference::getElecPF(), ConversionFinder::getElectronTrack(), BPHTrackReference::getFromGP(), BPHTrackReference::getFromPF(), BPHTrackReference::getFromRC(), HSCParticleProducer::getHSCPSeedCollection(), BTagPerformanceAnalyzerMC::getJetWithGenJet(), BPHTrackReference::getMuonBT(), BPHTrackReference::getMuonGT(), BPHTrackReference::getMuonIT(), BPHTrackReference::getMuonPF(), BPHTrackReference::getMuonSA(), CandMCMatchTableProducer::getParentHadronFlag(), MuonSimClassifier::getTpMother(), MuonMCClassifier::getTpMother(), reco::PFJet::getTrackRefs(), reco::PFTau::hasMuonReference(), RecoTracktoTP::hasRV(), TPtoRecoTrack::hasRVA(), TPtoRecoTrack::hasRVB(), track_associator::hitsToClusterRefs(), HLTElectronMissingHitsFilter::hltFilter(), HLTMuonL3SimplePreFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTMuonIsoFilter::hltFilter(), HLTDoubletDZ< T1, T2 >::hltFilter(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), GSFTrackImporter::importToBlock(), reco::isodeposit::OtherJetConstituentsDeltaRVeto::initialize(), PFEGammaAlgo::initializeProtoCands(), 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< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::isNull(), EGammaMvaEleEstimator::isoMvaValue(), MuonCosmicCompatibilityFiller::isOverlappingMuon(), PFPhotonIsolationCalculator::isPhotonParticleVetoed(), PFIsolationEstimator::isPhotonParticleVetoed(), PFCandConnector::isPrimaryNucl(), PFElectronAlgo::isPrimaryTrack(), PFEGammaAlgo::isPrimaryTrack(), PFCandConnector::isSecondaryNucl(), muon::isTrackerHighPtMuon(), PFMuonAlgo::isTrackerLooseMuon(), PFMuonAlgo::isTrackerTightMuon(), l1extra::L1EmParticle::L1EmParticle(), l1extra::L1JetParticle::L1JetParticle(), ECALAndECALLinker::linkPrefilter(), pat::PATGenCandsFromSimTracksProducer::makeGenParticle_(), MatcherUsingTracksAlgorithm::match(), RecoTracktoTP::matched(), TPtoRecoTrack::matchedA(), TPtoRecoTrack::matchedB(), PFEGammaAlgo::mergeROsByAnyLink(), pat::PackedGenParticle::motherRef(), MuonResidualsFromTrack::MuonResidualsFromTrack(), MuonCosmicCompatibilityFiller::muonTiming(), PFMuonAlgo::muonTracks(), ElectronMVAEstimator::mva(), SoftElectronMVAEstimator::mva(), EGammaMvaEleEstimatorCSA14::mvaValue(), EGammaMvaEleEstimator::mvaValue(), AntiElectronIDMVA5::MVAValue(), AntiElectronIDMVA6::MVAValue(), normalizedGsfChi2(), KinematicVertex::operator reco::Vertex(), MuonMomQualityCut::operator()(), MuonDxyCut::operator()(), MuonDzCut::operator()(), GhostTrackComputer::operator()(), reco::modules::MCMatchCandRefSelector::operator()(), reco::tau::RecoTauElectronRejectionPlugin::operator()(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::RecoTauImpactParameterSignificancePlugin::operator()(), reco::tau::RecoTauBuilderConePlugin::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(), pat::PackedCandidate::packVtx(), PFBlockBasedIsolation::passesCleaningPhoton(), reco::PFTauTransverseImpactParameter::primaryVertexPos(), MuonBadTrackFilter::printMuonProperties(), PFMuonAlgo::printMuonProperties(), PFTauElecRejectionBenchmark::process(), PFAlgo::processBlock(), TrackClassifier::processesAtSimulation(), helper::MuonCollectionStoreManager::processMuon(), DimuonMCMatcher::produce(), MuonWithPFIsoProducer::produce(), DistortedPFCandProducer::produce(), UpdatedMuonInnerTrackRef::produce(), ParticleBasedIsoProducer::produce(), CaloMuonMerger::produce(), reco::ParticleFlowForChargedMETProducer::produce(), GEDPhotonCoreProducer::produce(), pat::PATMuonSlimmer::produce(), ZMuMuTrackUserData::produce(), ZMuMuMuonUserData::produce(), ZMuMuUserDataOneTrack::produce(), ZMuMuUserData::produce(), pat::PATGenCandsFromSimTracksProducer::produce(), PuppiProducer::produce(), PFTrackProducer::produce(), PFLinker::produce(), pat::PATPackedCandidateProducer::produce(), L3MuonProducer::produce(), GlobalMuonProducer::produce(), pat::PATLostTracks::produce(), Onia2MuMuPAT::produce(), ZToLLEdmNtupleDumper::produce(), pat::PATPackedGenParticleProducer::produce(), DeepFlavourTagInfoProducer::produce(), CandMCMatchTableProducer::produce(), pat::PATIsolatedTrackProducer::produce(), pat::PATMuonProducer::produce(), TrajectorySeedFromMuonProducer::produce(), pat::PATTauProducer::produce(), pat::PATJetProducer::produce(), PFTauTransverseImpactParameters::produce(), pat::PATElectronProducer::produce(), SimPFProducer::produce(), BoostedDoubleSVProducer::produce(), PFElecTkProducer::produce(), MuonSimClassifier::produce(), PFTauPrimaryVertexProducer::produce(), MuonMCClassifier::produce(), reco::modules::JetFlavourIdentifier::produce(), JetCleanerForType1METT< T, Textractor >::produce(), PFJetMETcorrInputProducerT< T, Textractor >::produce(), cms::MuonTCMETValueMapProducer::propagateTrack(), fireworks::pushNearbyPixelHits(), MuonCosmicCompatibilityFiller::pvMatches(), btagbtvdeep::ChargedCandidateConverter::RecoCandidateToFeatures(), PFMuonAlgo::reconstructMuon(), PFAlgo::reconstructTrack(), RecoTauDifferenceAnalyzer::RecoTauDifferenceAnalyzer(), GsfElectronAlgo::EventData::retreiveOriginalTrackCollections(), ConvBremPFTrackFinder::runConvBremFinder(), RecoTracktoTP::RV(), TPtoRecoTrack::RVA(), TPtoRecoTrack::RVB(), SelectionStep< Object >::select(), PFElectronAlgo::SetCandidates(), reco::PFCandidate::setConversionRef(), reco::PFCandidate::setDisplacedVertexRef(), JetFlavourClustering::setFlavours(), reco::PFCandidate::setGsfElectronRef(), reco::PFCandidate::setGsfTrackRef(), PFElectronAlgo::SetIDOutputs(), 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(), MatcherUsingTracksAlgorithm::targetState(), TauIdMVAAuxiliaries::tau_leadTrackChi2(), pat::tau::TauPFEssential::TauPFEssential(), pat::tau::TauPFSpecific::TauPFSpecific(), GSFAndBREMLinker::testLink(), GSFAndGSFLinker::testLink(), TrackAndGSFLinker::testLink(), ECALAndECALLinker::testLink(), TrackAndTrackLinker::testLink(), PFRecoTauDiscriminationByFlightPathSignificance::threeProngFlightPathSig(), muon::TMR(), PFMuonSelector::TopPag12LjetsCuts(), toTrackRef(), 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(), pat::PackedCandidate::unpackVtx(), PFEGammaAlgo::unwrapSuperCluster(), egHLT::OffEle::validCTFTrack(), and BPHWriteSpecificDecay::write().

key_type index_
Definition: Ref.h:297
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
bool edm::Ref< C, T, F >::isNull ( ) const
inline

Checks for null.

Definition at line 250 of file Ref.h.

Referenced by DebugZMCTruth::analyze(), ElectronMcSignalValidator::analyze(), EwkMuDQM::analyze(), TtSemiLepSignalSelMVATrainer::analyze(), dEdxHitAnalyzer::analyze(), MuonPFAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), ElectronConversionRejectionValidator::analyze(), PackedCandidateTrackValidator::analyze(), TrackDetectorAssociator::associate(), reco::tau::RecoTauVertexAssociator::associatedVertex(), HPSPFRecoTauAlgorithm::associateIsolationCandidates(), TrackerHitAssociator::associatePhase2TrackerRecHit(), TrackerHitAssociator::associatePixelRecHit(), PFAlgo::associatePSClusters(), ElectronHEEPIDValueMapProducer::calTrkIso(), PrimaryVertexAssignment::chargedHadronVertex(), MuonIdProducer::checkLinks(), TagProbeFitTreeProducer::checkMother(), GsfElectronAlgo::completeElectrons(), PFElectronTranslator::createBasicCluster(), PFPhotonTranslator::createBasicCluster(), GsfElectronAlgo::createElectron(), PFCand_AssoMapAlgos::CreatePFCandToVertexMap(), PFCand_AssoMapAlgos::CreateVertexToPFCandMap(), PFRecoTauDiscriminationByIsolationMVA2::discriminate(), PFRecoTauDiscriminationByMVAIsolationRun2::discriminate(), PATTauDiscriminationByMVAIsolationRun2::discriminate(), reco::TauImpactParameterInfo::discriminator(), TemplatedJetProbabilityComputer< Container, Base >::discriminator(), TemplatedJetBProbabilityComputer< Container, Base >::discriminator(), reco::PFBlockElementBrem::Dump(), reco::PFBlockElementTrack::Dump(), reco::PFBlockElementGsfTrack::Dump(), metsig::SignAlgoResolutions::evalPF(), MuonCaloCompatibility::evaluate(), TrackHistory::evaluate(), VertexHistory::evaluate(), CandKinematicVertexFitter::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), pat::PATElectronProducer::fillElectron(), PFElectronTranslator::fillMVAValueMap(), ElectronMVAEstimatorRun2Fall17::fillMVAVariables(), ElectronMVAEstimatorRun2Spring15Trig::fillMVAVariables(), ElectronMVAEstimatorRun2Spring15NonTrig::fillMVAVariables(), ElectronMVAEstimatorRun2Spring16GeneralPurpose::fillMVAVariables(), ElectronMVAEstimatorRun2Spring16HZZ::fillMVAVariables(), pat::helper::OverlapBySuperClusterSeed::fillOverlapsForItem(), MuonTimingFiller::fillRPCTime(), MuonTimingFiller::fillTiming(), MuonIdProducer::fillTrackerKink(), RecoTauDifferenceAnalyzer::filter(), WMuNuValidator::filter(), BadParticleFilter::filter(), ChargedHadronTrackResolutionFilter::filter(), MuonBadTrackFilter::filter(), HSCPFilter::filter(), HSCParticleProducer::filter(), LeptonRecoSkim::filter(), Onia2MuMuPAT::findJpsiMCInfo(), UpdatedMuonInnerTrackRef::findNewRef(), edm::FwdRef< JetEisolAssociationCollection >::FwdRef(), edm::Ref< L1GctEmCandCollection >::get(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::get(), HSCParticleProducer::getHSCPSeedCollection(), CaloRecoTauTagInfoAlgorithm::getNeutralEcalBasicClusters(), reco::GsfElectronCore::GsfElectronCore(), ConversionTools::hasMatchedConversion(), ConversionTools::hasMatchedPromptElectron(), reco::PFTau::hasMuonReference(), HLTEcalPixelIsolTrackFilter::hltFilter(), HLTMuonTrackMassFilter::hltFilter(), GeneralTracksImporter::importToBlock(), GeneralTracksImporterWithVeto::importToBlock(), PFEGammaAlgo::initializeProtoCands(), edm::OneToValue< reco::CaloJetCollection, reco::L2TauIsolationInfo >::insert(), edm::OneToMany< reco::TrackJetCollection, reco::TrackCollection >::insert(), KDTreeLinkerTrackHcal::insertFieldClusterElt(), KDTreeLinkerPSEcal::insertFieldClusterElt(), KDTreeLinkerTrackEcal::insertFieldClusterElt(), heppy::CMGMuonCleanerBySegmentsAlgo::isBetterMuon(), PFPhotonIsolationCalculator::isChargedParticleVetoed(), PFIsolationEstimator::isChargedParticleVetoed(), pat::VertexAssociation::isNull(), CandidateSelector::isSelected(), PFEGammaAlgo::linkRefinableObjectGSFTracksToKFs(), MuonIdProducer::makeMuon(), L3TkMuonProducer::makePseudoRef(), MuonErrorMatrixAdjuster::makeTrackExtra(), ConversionTools::matchedConversion(), ConversionTools::matchedPromptElectron(), ConversionTools::matchesConversion(), PFEGammaAlgo::mergeROsByAnyLink(), reco::tau::qcuts::minTrackVertexWeight(), ZMuMuIsolationAnalyzer::muTag(), edm::Ref< L1GctEmCandCollection >::operator!(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::operator!(), MuonTrackCut::operator()(), tautools::RecoTauDistanceFromTruthPlugin::operator()(), tautools::RecoTauDecayModeTruthMatchPlugin::operator()(), CandMatcherBase< C1, C2 >::operator()(), pat::VertexAssociation::operator->(), reco::utilsNew::CandMatcher< C >::operator[](), PromptTrackCountingComputer::orderedSignificances(), TemplatedTrackCountingComputer< Container, Base >::orderedSignificances(), MuonIdProducer::overlap(), HLTMuonTrackMassFilter::pairMatched(), reco::PFBlockElementGsfTrack::PFBlockElementGsfTrack(), reco::PFBlockElementTrack::PFBlockElementTrack(), PFCandidateChecker::printElementsInBlocks(), PFJetBenchmark::process(), PFAlgo::processBlock(), DistortedMuonProducer::produce(), DistortedPFCandProducer::produce(), reco::modulesNew::MCTruthCompositeMatcher::produce(), PFElectronTranslator::produce(), TtSemiLepSignalSelMVAComputer::produce(), GlobalTrackQualityProducer::produce(), FastTrackerRecHitCombiner::produce(), MuonReSeeder::produce(), EgammaHLTPFPhotonIsolationProducer::produce(), WMuNuProducer::produce(), L3MuonCandidateProducer::produce(), FastTrackerRecHitMatcher::produce(), AlCaElectronTracksReducer::produce(), HLTScoutingEgammaProducer::produce(), FFTJetPFPileupCleaner::produce(), RecoTauProducer::produce(), HLTScoutingMuonProducer::produce(), PFPhotonTranslator::produce(), GsfElectronCoreEcalDrivenProducer::produceEcalDrivenCore(), GEDGsfElectronCoreProducer::produceElectronCore(), L3TkMuonProducer::seedRefBypT(), pf2pat::MuonIDPFCandidateSelectorDefinition::select(), pf2pat::ElectronIDPFCandidateSelectorDefinition::select(), GsfElectronAlgo::setCutBasedPreselectionFlag(), JetFlavourClustering::setFlavours(), GsfElectronAlgo::setPixelMatchInfomation(), PropagateToMuon::startingState(), MatcherUsingTracksAlgorithm::startingState(), reco::GsfElectronCore::superCluster(), ECALAndHCALLinker::testLink(), ECALAndHCALCaloJetLinker::testLink(), HCALAndHOLinker::testLink(), HFEMAndHFHADLinker::testLink(), TrackAndHOLinker::testLink(), SCAndECALLinker::testLink(), PreshowerAndECALLinker::testLink(), SCAndHGCalLinker::testLink(), LinkByRecHit::testTrackAndClusterByRecHit(), PFRecoTauDiscriminationByFlightPathSignificance::threeProngFlightPathSig(), MuonBadTrackFilter::trackInfo(), GlobalCosmicMuonTrajectoryBuilder::trajectories(), reco::tau::qcuts::trkLongitudinalImpactParameter(), reco::tau::qcuts::trkTransverseImpactParameter(), MuonTrackCut::value(), MuonDzCut::value(), MuonDxyCut::value(), and pat::VertexAssociation::vertex().

250 {return !isNonnull(); }
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:253
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
bool edm::Ref< C, T, F >::isTransient ( ) const
inline

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

Definition at line 278 of file Ref.h.

Referenced by edm::OneToValue< reco::CaloJetCollection, reco::L2TauIsolationInfo >::insert(), and edm::OneToMany< reco::TrackJetCollection, reco::TrackCollection >::insert().

278 {return product_.isTransient();}
RefCore product_
Definition: Ref.h:296
bool isTransient() const
Definition: RefCore.h:106
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
key_type edm::Ref< C, T, F >::key ( ) const
inline

Accessor for product key.

Definition at line 265 of file Ref.h.

Referenced by TkPixelMeasurementDet::accept(), TkStripMeasurementDet::accept(), RecoTrackAccumulator::accumulateEvent(), FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), pat::PATLostTracks::addPackedCandidate(), TrackingNtuple::addStripMatchedHit(), ZMuMuAnalyzer::analyze(), SiPixelHitEfficiencySource::analyze(), ZMuMuAnalyzer_cynematics::analyze(), SiPixelTrackResidualSource::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), OverlapProblemTSOSAnalyzer::analyze(), TrackerDpgAnalysis::analyze(), MuonTrackValidator::analyze(), PackedCandidateTrackValidator::analyze(), QuickTrackAssociatorByHitsImpl::associateTrack(), pat::PATPackedCandidateProducer::candsOrdering(), ConvertedPhotonProducer::cleanCollections(), PFMuonAlgo::cleanPunchThroughAndFakes(), reco::tau::RecoTauConstructor::convertToPtr(), electronSelector(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::erase(), TriggerSummaryProducerAOD::fillFilterObjectMember(), PhotonCoreProducer::fillPhotonCollection(), TrackingNtuple::fillSeeds(), TrackingNtuple::fillTracks(), OverlapProblemTSOSPositionFilter::filter(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::find(), reco::PFCandidate::flag(), pat::PackedCandidate::fromPV(), ConversionFinder::getConversionInfo(), ConversionFinder::getConversionInfos(), GenParticlePruner::getDaughterKeys(), reco::TauMassTagInfo::getInvariantMass(), GenParticlePruner::getMotherKeys(), TrackerMuonHitExtractor::getMuonHits(), CandMCMatchTableProducer::getParentHadronFlag(), egamma::getRandomSeedFromSC(), Basic2DGenericPFlowClusterizer::growPFClusters(), PFlow2DClusterizerWithTime::growPFClusters(), HLTMuonL3PreFilter::hltFilter(), GeneralTracksImporterWithVeto::importToBlock(), edm::OneToValue< reco::CaloJetCollection, reco::L2TauIsolationInfo >::insert(), edm::OneToMany< reco::TrackJetCollection, reco::TrackCollection >::insert(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::isAvailable(), ZMuMuAnalyzer_cynematics::isContained(), TCMETAlgo::isElectron(), TCMETAlgo::isGoodTrack(), NuclearInteractionEDProducer::isInside(), TCMETAlgo::isMuon(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::isNonnull(), noPuUtils::isVertexAssociated_fast(), L3TkMuonProducer::makePseudoRef(), TrackingNtuple::matchCluster(), ConversionTools::matchesConversion(), reco::modules::HICaloCompatibleTrackSelector::matchPFCandToTrack(), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::numberOfAssociations(), pat::TriggerEvent::objectInCondition(), pat::TriggerEvent::objectInFilter(), ZMuMuOverlap::operator()(), CandMatcherBase< C1, C2 >::operator()(), edm::CompareRefDetSet< T, C >::operator()(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::operator*(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::operator->(), V0Validator::V0Couple::operator<(), GenParticlesHelper::operator<<(), V0Validator::V0Couple::operator==(), reco::utilsNew::CandMatcher< C >::operator[](), edm::AssociationMap< edm::OneToMany< reco::BasicJetCollection, reco::TrackCollection > >::operator[](), ClusterClusterMapping::overlap(), printseed(), SeedClusterRemoverPhase2::process(), SeedClusterRemover::process(), HLTTrackClusterRemoverNew::process(), HITrackClusterRemover::process(), QualityFilter::produce(), TrackListCombiner::produce(), MuonTrackProducer::produce(), DistortedPFCandProducer::produce(), L1TStage2ObjectComparison< T >::produce(), pat::PackedPFCandidateRefMixer::produce(), PFConversionProducer::produce(), PFV0Producer::produce(), reco::modulesNew::MCTruthCompositeMatcher::produce(), GEDPhotonCoreProducer::produce(), TrackInfoProducer::produce(), TkAlCaOverlapTagger::produce(), pat::PATGenCandsFromSimTracksProducer::produce(), L3TkMuonProducer::produce(), Type0PFMETcorrInputProducer::produce(), TrackListMerger::produce(), HSCPDeDxInfoProducer::produce(), RecoTauJetRegionProducer::produce(), pat::PATPackedCandidateProducer::produce(), L3MuonProducer::produce(), pat::PATLostTracks::produce(), GlobalMuonProducer::produce(), CosmicTrackSelector::produce(), Onia2MuMuPAT::produce(), pat::PATPackedGenParticleProducer::produce(), RecoTauPiZeroProducer::produce(), DeepFlavourTagInfoProducer::produce(), CandMCMatchTableProducer::produce(), pat::PATIsolatedTrackProducer::produce(), FFTJetPFPileupCleaner::produce(), PFTauTransverseImpactParameters::produce(), MuonProducer::produce(), PFRecoTauChargedHadronProducer::produce(), reco::modules::TrackFullCloneSelectorBase< Selector >::produce(), reco::modules::HICaloCompatibleTrackSelector::produce(), SimPFProducer::produce(), MuonSimClassifier::produce(), MuonMCClassifier::produce(), reco::modules::TrackerTrackHitFilter::produce(), TriggerMatcherToHLTDebug::produce(), PFTau3ProngReco::produce(), edm::RefVector< reco::CastorTowerCollection, typename Ref< reco::CastorTowerCollection >::value_type, typename Ref< reco::CastorTowerCollection >::finder_type >::push_back(), TkStripMeasurementDet::recHits(), PFElecTkProducer::resolveGsfTracks(), noPuUtils::reversePFCandToVertexAssociation(), AnalyticalTrackSelector::run(), DAFTrackProducerAlgorithm::runWithCandidate(), SeedClusterRemover::SeedClusterRemover(), HITrackClusterRemover::sensorThickness(), reco::PFCandidate::setConversionRef(), reco::PFCandidate::setDisplacedVertexRef(), reco::PFCandidate::setGsfElectronRef(), reco::PFCandidate::setGsfTrackRef(), 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(), reco::TrackJet::track(), V0Validator::V0Couple::V0Couple(), and RecoTauCleanerImpl< Prod >::~RecoTauCleanerImpl().

265 {return index_;}
key_type index_
Definition: Ref.h:297
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
bool edm::Ref< C, T, F >::operator! ( ) const
inline

Checks for null.

Definition at line 256 of file Ref.h.

256 {return isNull();}
bool isNull() const
Checks for null.
Definition: Ref.h:250
template<typename C , typename T , typename F >
T const & edm::Ref< C, T, F >::operator* ( ) const
inline
template<typename C , typename T , typename F >
T const * edm::Ref< C, T, F >::operator-> ( ) const
inline
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
EDProductGetter const* edm::Ref< C, T, F >::productGetter ( ) const
inline
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
RefCore const& edm::Ref< C, T, F >::refCore ( ) const
inline

Friends And Related Function Documentation

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
friend class RefVector< C, T, F >
friend

Definition at line 158 of file Ref.h.

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
friend class RefVector< RefVector< C, T, F >, T, VBF >
friend

Definition at line 160 of file Ref.h.

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
friend class RefVector< RefVector< C, T, F >, T, VF >
friend

Definition at line 159 of file Ref.h.

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
friend class RefVectorIterator< C, T, F >
friend

Definition at line 157 of file Ref.h.

Member Data Documentation

template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
key_type edm::Ref< C, T, F >::index_
private
template<typename C, typename T = typename refhelper::ValueTrait<C>::value, typename F = typename refhelper::FindTrait<C, T>::value>
RefCore edm::Ref< C, T, F >::product_
private

Definition at line 296 of file Ref.h.

Referenced by edm::Ref< L1GctEmCandCollection >::hasProductCache(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::hasProductCache(), edm::Ref< L1GctEmCandCollection >::id(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::id(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::index(), edm::Ref< C, T, F >::isAvailable(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::isAvailable(), edm::Ref< L1GctEmCandCollection >::isTransient(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::isTransient(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::key(), edm::Ref< C, T, F >::operator*(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::operator*(), edm::Ref< C, T, F >::operator->(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::operator->(), edm::Ref< L1GctEmCandCollection >::productGetter(), edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::productGetter(), edm::Ref< C, T, F >::Ref(), edm::Ref< L1GctEmCandCollection >::refCore(), and edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::refCore().