#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) | |
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 &iId) | |
Ptr () | |
template<typename U > | |
Ptr (Ptr< U > const &iOther, typename boost::enable_if_c< boost::is_base_of< T, U >::value >::type *=0) | |
template<typename U > | |
Ptr (Ptr< U > const &iOther, typename boost::enable_if_c< boost::is_base_of< U, T >::value >::type *=0) | |
RefCore const & | refCore () const |
~Ptr () | |
Destructor. More... | |
Private Member Functions | |
void | getData_ () const |
template<typename C > | |
T const * | getItem_ (C const *product, key_type iKey) |
Ptr (T const *item, key_type item_key) | |
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 50 of file AssociativeIterator.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 82 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 93 of file Ptr.h.
|
inline |
|
inlineexplicit |
Returns C++ pointer to the item.
Definition at line 143 of file Ptr.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), PFEGammaAlgo::buildRefinedSuperCluster(), PFECALSuperClusterAlgo::buildSuperCluster(), pat::Jet::cacheCaloTowers(), pat::Jet::cachePFCandidates(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), PFRecoTauDiscriminationAgainstMuon2::discriminate(), edm::FwdPtr< FFTJPTJet >::get(), pat::EventHypothesis::getAs(), reco::CaloJet::getCaloConstituent(), pat::Jet::getCaloConstituent(), betterConfigParser.BetterConfigParser::getCompares(), ReflectedIterator::getEt(), MultipleAlgoIterator::getEt(), ParametrizedSubtractor::getEt(), MultipleAlgoIterator::getEta(), ReflectedIterator::getEta(), ParametrizedSubtractor::getEta(), betterConfigParser.BetterConfigParser::getGeneral(), reco::PFJet::getPFConstituent(), pat::Jet::getPFConstituent(), betterConfigParser.BetterConfigParser::getResultingSection(), NjettinessAdder::getTau(), PileUpSubtractor::ieta(), cms::SubEventGenJetProducer::inputTowers(), VirtualJetProducer::inputTowers(), PileUpSubtractor::iphi(), pat::MET::MET(), reco::PFClusterJet::pfCluster(), EcalDigiSelector::produce(), PFRecoTauChargedHadronProducer::produce(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), pat::Tau::Tau(), rrapi.RRApi::templates(), reco::TrackJet::track(), and rrapi.RRApi::workspaces().
Definition at line 194 of file Ptr.h.
|
private |
Definition at line 212 of file Ptr.h.
References edm::detail::GetProduct< COLLECTION >::address().
Definition at line 171 of file Ptr.h.
Referenced by edm::Ptr< PileUpPFCandidate >::getData_(), edm::FwdPtr< FFTJPTJet >::hasProductCache(), and edm::PtrVector< reco::FFTJPTJet >::push_back().
Accessor for product ID.
Definition at line 164 of file Ptr.h.
Referenced by pat::PATUserDataMerger< ObjectType, Operation >::add(), pat::Jet::cacheCaloTowers(), pat::Jet::cachePFCandidates(), ConvertedPhotonProducer::cleanCollections(), pat::PATElectronProducer::fillElectron2(), reco::CaloJet::getCaloConstituent(), pat::Jet::getCaloConstituent(), reco::PFJet::getPFConstituent(), pat::Jet::getPFConstituent(), edm::FwdPtr< FFTJPTJet >::id(), ClusterClusterMapping::overlap(), pat::helper::RefHelper< T >::parentOrNull(), reco::PFRecoTauChargedHadron::print(), reco::Jet::print(), pat::PATTrackAndVertexUnpacker::produce(), pat::helper::RefHelper< T >::recursiveLookup(), ConvertedPhotonProducer::solveAmbiguity(), and metsig::SignPFSpecificAlgo::useOriginalPtrs().
Checks if collection is in memory or available in the event. No type checking is done.
Definition at line 158 of file Ptr.h.
Referenced by PileupJetIdAlgo::computeIdVariables(), edm::FwdPtr< FFTJPTJet >::get(), reco::CaloJet::getCaloConstituent(), reco::PFJet::getPFConstituent(), edm::FwdPtr< FFTJPTJet >::isAvailable(), pat::Tau::leadCand(), pat::Tau::leadChargedHadrCand(), pat::Tau::leadNeutralCand(), reco::PFCandidateFwdPtrFactory::operator()(), TopProjectorFwdPtrOverlap< Top, Bottom >::operator()(), edm::FwdPtr< FFTJPTJet >::operator*(), edm::FwdPtr< FFTJPTJet >::operator->(), reco::PFClusterJet::pfCluster(), and reco::TrackJet::track().
Checks for non-null.
Definition at line 152 of file Ptr.h.
Referenced by reco::tau::RecoTauConstructor::addTauChargedHadron(), L25TauAnalyzer::analyze(), HPSPFRecoTauAlgorithm::applyElectronRejection(), HPSPFRecoTauAlgorithm::applyMuonRejection(), PFRecoTauAlgorithm::buildPFTau(), HPSPFRecoTauAlgorithm::buildPFTau(), reco::FlavorHistoryEvent::cache(), ConversionProducer::checkTrackPair(), PileupJetIdAlgo::computeIdVariables(), reco::tau::RecoTauConstructor::convertToPtr(), EGEnergyCorrector::CorrectedEnergyWithError(), PFRecoTauDiscriminationByFlight::discriminate(), PFRecoTauDiscriminationByNProngs::discriminate(), PFRecoTauDiscriminationAgainstMuon2::discriminate(), reco::CaloJet::getCaloConstituent(), reco::tau::RecoTauVertexAssociator::getLeadTrack(), reco::PFJet::getPFConstituent(), reco::FlavorHistory::hasMatchedJet(), reco::PFTau::hasMuonReference(), reco::FlavorHistory::hasParton(), reco::FlavorHistory::hasProgenitor(), reco::FlavorHistory::hasSister(), reco::FlavorHistory::hasSisterJet(), edm::FwdPtr< FFTJPTJet >::id(), pat::helper::RefHelper< T >::isAncestorOf(), edm::FwdPtr< FFTJPTJet >::isNonnull(), edm::Ptr< PileUpPFCandidate >::isNull(), edm::FwdPtr< FFTJPTJet >::key(), AntiElectronIDMVA5GBR::MVAValue(), pat::Muon::numberOfSourceCandidatePtrs(), reco::PFCandidateFwdPtrFactory::operator()(), reco::tau::RecoTauElectronRejectionPlugin::operator()(), reco::tau::RecoTauImpactParameterSignificancePlugin::operator()(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), TopProjectorFwdPtrOverlap< Top, Bottom >::operator()(), reco::PFCandidate::overlap(), pat::helper::RefHelper< T >::parentOrSelf(), reco::PFClusterJet::pfCluster(), reco::PFRecoTauChargedHadron::print(), reco::Jet::print(), L1HLTTauMatching::produce(), reco::ParticleFlowForChargedMETProducer::produce(), pat::PATJetProducer::produce(), PFRecoTauChargedHadronProducer::produce(), pat::PATElectronProducer::produce(), CorrectedECALPFClusterProducer::produce(), pat::helper::RefHelper< T >::recursiveLookup(), edm::FwdPtr< FFTJPTJet >::refCore(), reco::tau::setChargedHadronP4(), PFCandidateMaker::SetVars(), pat::Muon::sourceCandidatePtr(), and reco::TrackJet::track().
Checks for null.
Definition at line 148 of file Ptr.h.
Referenced by pat::helper::RefHelper< T >::ancestorOrSelf(), PileupJetIdAlgo::computeIdVariables(), pat::helper::OverlapBySuperClusterSeed::fillOverlapsForItem(), edm::PtrVector< T >::fillView(), edm::FwdPtr< FFTJPTJet >::FwdPtr(), edm::Ptr< PileUpPFCandidate >::get(), reco::tau::RecoTauVertexAssociator::getLeadTrack(), reco::PFTau::hasMuonReference(), pat::Tau::leadChargedHadrCand(), pat::Tau::leadNeutralCand(), edm::Ptr< PileUpPFCandidate >::operator!(), reco::PFCandidate::overlap(), WMuNuProducer::produce(), PFElectronMaker::SetVars(), PFCandidateMaker::SetVars(), and metsig::SignPFSpecificAlgo::useOriginalPtrs().
Checks if this Ptr is transient (i.e. not persistable).
Definition at line 161 of file Ptr.h.
Referenced by edm::FwdPtr< FFTJPTJet >::isTransient().
Definition at line 169 of file Ptr.h.
Referenced by PFEGammaAlgo::attachPSClusters(), pat::Jet::cacheCaloTowers(), pat::Jet::cachePFCandidates(), ConvertedPhotonProducer::cleanCollections(), reco::tau::RecoTauConstructor::convertToPtr(), reco::tau::disc::EMFraction(), reco::CaloJet::getCaloConstituent(), pat::Jet::getCaloConstituent(), reco::PFJet::getPFConstituent(), pat::Jet::getPFConstituent(), edm::FwdPtr< FFTJPTJet >::key(), reco::tau::RecoTauPhotonFilter::operator()(), TopProjectorFwdPtrOverlap< Top, Bottom >::operator()(), reco::FlavorHistory::operator<(), operator<<(), reco::FlavorHistory::operator==(), reco::FlavorHistory::operator>(), ClusterClusterMapping::overlap(), reco::RecoTauPiZero::print(), reco::PFRecoTauChargedHadron::print(), reco::Jet::print(), pat::PATTrackAndVertexUnpacker::produce(), CorrectedECALPFClusterProducer::produce(), TriggerMatcherToHLTDebug::produce(), edm::PtrVector< reco::FFTJPTJet >::push_back(), PFCandidateMaker::SetVars(), and ConvertedPhotonProducer::solveAmbiguity().
Member dereference operator.
Definition at line 233 of file Ptr.h.
References compareJSON::const.
Referenced by edm::Ptr< PileUpPFCandidate >::get().
|
inline |
Accessor for product getter.
Definition at line 167 of file Ptr.h.
Referenced by edm::Ptr< PileUpPFCandidate >::getData_(), and edm::FwdPtr< FFTJPTJet >::productGetter().
Definition at line 173 of file Ptr.h.
Referenced by TopProjectorFwdPtrOverlap< Top, Bottom >::operator()(), edm::PtrVector< reco::FFTJPTJet >::push_back(), and edm::FwdPtr< FFTJPTJet >::refCore().
|
friend |
Definition at line 206 of file Ptr.h.
Referenced by edm::Ptr< PileUpPFCandidate >::getData_(), edm::Ptr< PileUpPFCandidate >::hasProductCache(), edm::Ptr< PileUpPFCandidate >::id(), edm::Ptr< PileUpPFCandidate >::isAvailable(), edm::Ptr< PileUpPFCandidate >::isTransient(), edm::Ptr< PileUpPFCandidate >::productGetter(), and edm::Ptr< PileUpPFCandidate >::refCore().
Definition at line 207 of file Ptr.h.
Referenced by edm::Ptr< PileUpPFCandidate >::getData_(), edm::Ptr< PileUpPFCandidate >::isNonnull(), and edm::Ptr< PileUpPFCandidate >::key().