#include <DataFormats/Common/interface/Ptr.h>
Public Types | |
typedef unsigned long | key_type |
typedef T | value_type |
Public Member Functions | |
T const * | get () const |
Returns C++ pointer to the item. More... | |
bool | hasProductCache () const |
ProductID | id () const |
Accessor for product ID. More... | |
bool | isAvailable () const |
bool | isNonnull () const |
Checks for non-null. More... | |
bool | isNull () const |
Checks for null. More... | |
bool | isTransient () const |
Checks if this Ptr is transient (i.e. not persistable). More... | |
key_type | key () const |
bool | operator! () const |
Checks for null. More... | |
T const & | operator* () const |
Dereference operator. More... | |
T const * | operator-> () const |
Member dereference operator. More... | |
void const * | product () const |
EDProductGetter const * | productGetter () const |
Accessor for product getter. More... | |
template<typename C > | |
Ptr (Handle< C > const &handle, key_type itemKey, bool=true) | |
template<typename C > | |
Ptr (OrphanHandle< C > const &handle, key_type itemKey, bool=true) | |
template<typename C > | |
Ptr (C const *iProduct, key_type iItemKey, bool=true) | |
Ptr (T const *item, key_type iItemKey) | |
template<typename C > | |
Ptr (TestHandle< C > const &handle, key_type itemKey, bool=true) | |
Ptr (ProductID const &productID, key_type itemKey, EDProductGetter const *prodGetter) | |
Ptr (ProductID const &productID, T const *item, key_type item_key) | |
Ptr (ProductID const &productID, T const *item, key_type item_key, bool transient) | |
Ptr (ProductID const &iId) | |
Ptr () | |
template<typename U > | |
requires std::is_base_of_v< T, U > | Ptr (Ptr< U > const &iOther) |
template<typename U > | |
requires std::is_base_of_v< U, T > | Ptr (Ptr< U > const &iOther) |
RefCore const & | refCore () const |
~Ptr () | |
Destructor. More... | |
Static Public Member Functions | |
static short | Class_Version () |
Private Member Functions | |
void | getData_ (bool throwIfNotFound=true) const |
template<typename C > | |
T const * | getItem_ (C const *product, key_type iKey) |
Private Attributes | |
RefCore | core_ |
key_type | key_ |
Friends | |
class | PtrVectorBase |
Description: Persistent 'pointer' to an item in a collection where the collection is in the edm::Event
Usage: <usage>
Definition at line 31 of file AssociationVector.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
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 87 of file Ptr.h.
|
inline |
Constructor for use in the various X::fillView(...) functions or for extracting a persistent Ptr from a PtrVector. It is an error (not diagnosable at compile- or run-time) to call this constructor with a pointer to a T unless the pointed-to T object is already in a collection of type C stored in the Event. The given ProductID must be the id of the collection in the Event.
Definition at line 97 of file Ptr.h.
|
inline |
|
inline |
|
inlineexplicit |
Returns C++ pointer to the item.
Definition at line 141 of file Ptr.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), TransientTrackBuilder::build(), PFEGammaAlgo::buildRefinedSuperCluster(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), PileupJetIdAlgo::computeIdVariables(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), util.rrapi.RRApi::data(), rrapi.RRApi::data(), TauDiscriminationAgainstElectronMVA6< TauType, TauDiscriminator, ElectronType >::discriminate(), TICLCandidateValidator::fillCandidateHistos(), l1tVertexFinder::TP::fillUse(), l1tVertexFinder::TP::fillUseForEff(), l1tVertexFinder::TP::fillUseForVertexReco(), PFECALSuperClusterAlgo::finalizeSuperCluster(), edm::FwdPtr< T >::get(), pat::EventHypothesis::getAs(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific(), TTClusterAssociationMap< T >::isCombinatoric(), TTClusterAssociationMap< T >::isGenuine(), MuonPFIsolationWithConeVeto::isInIsolationCone(), ElectronPFIsolationWithConeVeto::isInIsolationCone(), PhotonPFIsolationWithConeVeto::isInIsolationCone(), PhotonPFIsolationWithMapBasedVeto::isInIsolationCone(), ElectronPFIsolationWithMapBasedVeto::isInIsolationCone(), TTClusterAssociationMap< T >::isUnknown(), reco::tau::lead_track_chi2(), pat::MET::MET(), AntiElectronDeadECAL::operator()(), reco::PFClusterJet::pfCluster(), reco::RecoTauPiZero::print(), EcalDigiSelector::produce(), pat::PATTauProducer::produce(), SoftPFMuonTagInfoProducer::produce(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), BoostedDoubleSVProducer::setTracksPV(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), toTrackRef(), reco::TrackJet::track(), GsfEleCalPFClusterIsoCut::value(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().
|
inlineprivate |
Definition at line 183 of file Ptr.h.
|
private |
Definition at line 211 of file Ptr.h.
Definition at line 169 of file Ptr.h.
Referenced by edm::FwdPtr< T >::hasProductCache(), edm::Ptr< CaloRecHit >::Ptr(), and edm::PtrVector< reco::CaloCluster >::push_back().
Accessor for product ID.
Definition at line 162 of file Ptr.h.
Referenced by MuonTrajectoryCleaner::clean(), pat::PATElectronProducer::fillElectron2(), edm::PtrVector< reco::CaloCluster >::fillView(), pat::helper::getPtrForProd(), edm::FwdPtr< T >::id(), ClusterClusterMapping::overlap(), reco::PFRecoTauChargedHadron::print(), ShiftedParticleMETcorrInputProducer::produce(), ShiftedParticleProducer::produce(), edmtest::OtherThingAlgorithm::run(), ConvertedPhotonProducer::solveAmbiguity(), and metsig::SignPFSpecificAlgo::useOriginalPtrs().
Checks if collection is in memory or available in the event. No type checking is done. This function is potentially costly as it might cause a disk read (note that it does not cause the data to be cached locally)
Definition at line 234 of file Ptr.h.
Referenced by B2GDQM::analyzeAllHad(), B2GDQM::analyzeSemiE(), B2GDQM::analyzeSemiMu(), MVAJetPuId::computeIdVariables(), edm::FwdPtr< T >::get(), edm::FwdPtr< T >::isAvailable(), reco::PFCandidateFwdPtrFactory::operator()(), TopProjectorFwdPtrOverlap< Top, Bottom >::operator()(), edm::FwdPtr< T >::operator*(), edm::FwdPtr< T >::operator->(), reco::PFClusterJet::pfCluster(), JetFlavourClustering::produce(), and reco::TrackJet::track().
Checks for non-null.
Definition at line 148 of file Ptr.h.
Referenced by reco::tau::RecoTauConstructor::addTauChargedHadron(), ZCountingElectrons::analyze(), B2GDoubleLeptonHLTValidation::analyze(), B2GHadronicHLTValidation::analyze(), B2GSingleLeptonHLTValidation::analyze(), reco::FlavorHistoryEvent::cache(), BoostedDoubleSVProducer::calcNsubjettiness(), ConversionProducer::checkTrackPair(), MVAJetPuId::computeIdVariables(), reco::tau::RecoTauConstructor::convertToPtr(), EGEnergyCorrector::CorrectedEnergyWithError(), PFRecoTauDiscriminationByNProngs::discriminate(), TauDiscriminationAgainstElectronMVA6< TauType, TauDiscriminator, ElectronType >::discriminate(), PFRecoTauDiscriminationAgainstMuon2Helper::eval(), PATTauHybridProducer::fillTauFromJet(), AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific(), reco::FlavorHistory::hasMatchedJet(), reco::PFTau::hasMuonReference(), reco::FlavorHistory::hasParton(), reco::FlavorHistory::hasProgenitor(), reco::FlavorHistory::hasSister(), reco::FlavorHistory::hasSisterJet(), edm::FwdPtr< T >::id(), MuonPFIsolationWithConeVeto::isInIsolationCone(), ElectronPFIsolationWithConeVeto::isInIsolationCone(), PhotonPFIsolationWithConeVeto::isInIsolationCone(), PhotonPFIsolationWithMapBasedVeto::isInIsolationCone(), edm::FwdPtr< T >::isNonnull(), edm::Ptr< CaloRecHit >::isNull(), edm::FwdPtr< T >::key(), reco::tau::lead_track_chi2(), pat::Muon::numberOfSourceCandidatePtrs(), reco::PFCandidateFwdPtrFactory::operator()(), reco::tau::RecoTauElectronRejectionPlugin::operator()(), reco::tau::RecoTauBuilderConePlugin::operator()(), AntiElectronDeadECAL::operator()(), TopProjectorFwdPtrOverlap< Top, Bottom >::operator()(), reco::PFCandidate::overlap(), reco::PFClusterJet::pfCluster(), reco::PFRecoTauChargedHadron::print(), PFTauElecRejectionBenchmark::process(), L1THLTTauMatching::produce(), L1HLTTauMatching::produce(), PseudoTopProducer::produce(), PATMuonMerger::produce(), LowPtGsfElectronIDProducer::produce(), PFTauPrimaryVertexProducerBase::produce(), pat::PATTauProducer::produce(), pat::PATElectronProducer::produce(), JetFlavourClustering::produce(), edm::FwdPtr< T >::refCore(), reco::tau::setChargedHadronP4(), reco::tau::RecoTauBuilderConePlugin::setTauQuantities(), and reco::TrackJet::track().
Checks for null.
Definition at line 144 of file Ptr.h.
Referenced by l1tVertexFinder::VertexNTupler::analyze(), MVAJetPuId::computeIdVariables(), PATTauHybridProducer::fillTauFromJet(), l1tVertexFinder::Stub::fillTruth(), edm::PtrVector< reco::CaloCluster >::fillView(), pat::PATSingleVertexSelector::filter_(), edm::Ptr< CaloRecHit >::get(), reco::PFTau::hasMuonReference(), TTClusterAssociationMap< T >::isCombinatoric(), TTClusterAssociationMap< T >::isGenuine(), TTClusterAssociationMap< T >::isUnknown(), EG9X105XObjectUpdateModifier::modifyObject(), edm::Ptr< CaloRecHit >::operator!(), reco::CaloRecHitCandidate::overlap(), reco::PFCandidate::overlap(), PseudoTopProducer::produce(), LowPtGsfElectronSCProducer::produce(), citk::PFIsolationSumProducerForPUPPI::produce(), L1TruthTrackFastJetProducer::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), and metsig::SignPFSpecificAlgo::useOriginalPtrs().
Checks if this Ptr is transient (i.e. not persistable).
Definition at line 159 of file Ptr.h.
Referenced by edm::FwdPtr< T >::isTransient().
Definition at line 167 of file Ptr.h.
Referenced by PFEGammaAlgo::attachPSClusters(), reco::tau::RecoTauConstructor::convertToPtr(), edm::PtrVector< reco::CaloCluster >::fillView(), edm::FwdPtr< T >::key(), TopProjectorFwdPtrOverlap< Top, Bottom >::operator()(), reco::FlavorHistory::operator<(), reco::FlavorHistory::operator==(), reco::FlavorHistory::operator>(), ClusterClusterMapping::overlap(), reco::PFRecoTauChargedHadron::print(), TriggerMatcherToHLTDebug::produce(), edm::PtrVector< reco::CaloCluster >::push_back(), and ConvertedPhotonProducer::solveAmbiguity().
Member dereference operator.
Definition at line 228 of file Ptr.h.
Referenced by edm::Ptr< CaloRecHit >::get().
|
inline |
Accessor for product getter.
Definition at line 165 of file Ptr.h.
Referenced by edm::Ptr< CaloRecHit >::getData_(), and edm::FwdPtr< T >::productGetter().
Definition at line 171 of file Ptr.h.
Referenced by TopProjectorFwdPtrOverlap< Top, Bottom >::operator()(), edm::PtrVector< reco::CaloCluster >::push_back(), and edm::FwdPtr< T >::refCore().
|
friend |
Definition at line 205 of file Ptr.h.
Referenced by edm::Ptr< CaloRecHit >::getData_(), edm::Ptr< CaloRecHit >::hasProductCache(), edm::Ptr< CaloRecHit >::id(), edm::Ptr< CaloRecHit >::isTransient(), edm::Ptr< CaloRecHit >::productGetter(), edm::Ptr< CaloRecHit >::Ptr(), and edm::Ptr< CaloRecHit >::refCore().
Definition at line 206 of file Ptr.h.
Referenced by edm::Ptr< CaloRecHit >::getData_(), edm::Ptr< CaloRecHit >::isNonnull(), and edm::Ptr< CaloRecHit >::key().