CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
edm::HandleBase Class Reference

#include <HandleBase.h>

Inheritance diagram for edm::HandleBase:
edm::Handle< T > edm::Handle< Association< reco::GenJetCollection > > edm::Handle< C1 > edm::Handle< CSCRecHit2DCollection > edm::Handle< CSCSegmentCollection > edm::Handle< double > edm::Handle< DTRecHitCollection > edm::Handle< DTRecSegment4DCollection > edm::Handle< EBDigiCollection > edm::Handle< edm::Association > edm::Handle< edm::Association< reco::GenJetCollection > > edm::Handle< edm::Association< T > > edm::Handle< edm::AssociationMap > edm::Handle< edm::AssociationVector > edm::Handle< edm::DetSetVector< PixelDigiSimLink > > edm::Handle< edm::DetSetVector< RPCDigiSimLink > > edm::Handle< edm::DetSetVector< StripDigiSimLink > > edm::Handle< edm::HepMCProduct > edm::Handle< edm::RangeMap > edm::Handle< edm::RefVector > edm::Handle< edm::SimTrackContainer > edm::Handle< edm::SortedCollection > edm::Handle< edm::TriggerResults > edm::Handle< edm::ValueMap > edm::Handle< edm::ValueMap< float > > edm::Handle< edm::ValueMap< pat::pat::VertexAssociation > > edm::Handle< edm::ValueMap< reco::MuonCosmicCompatibility > > edm::Handle< edm::ValueMap< reco::MuonMETCorrectionData > > edm::Handle< edm::ValueMap< reco::MuonShower > > edm::Handle< edm::View< BT > > edm::Handle< edm::View< element_type > > edm::Handle< edm::View< reco::CaloCluster > > edm::Handle< edm::View< reco::Jet > > edm::Handle< edm::View< reco::MET > > edm::Handle< edm::View< reco::Track > > edm::Handle< edm::View< T > > edm::Handle< edmNew::DetSetVector > edm::Handle< edmNew::DetSetVector< SiPixelCluster > > edm::Handle< edmNew::DetSetVector< SiStripCluster > > edm::Handle< EEDigiCollection > edm::Handle< int > edm::Handle< L1GctHFBitCountsCollection > edm::Handle< L1GctHFRingEtSumsCollection > edm::Handle< L1GtTriggerMenuLite > edm::Handle< LTCDigiCollection > edm::Handle< MeasurementTrackerEvent > edm::Handle< PFBlockCollection > edm::Handle< PFCandidateCollection > edm::Handle< PFTauDiscriminator > edm::Handle< PFTauTagInfoCollection > edm::Handle< reco::BasicJetCollection > edm::Handle< reco::BeamSpot > edm::Handle< reco::CaloJetCollection > edm::Handle< reco::CaloMETCollection > edm::Handle< reco::CaloTauDiscriminator > edm::Handle< reco::CandidateCollection > edm::Handle< reco::Centrality > edm::Handle< reco::ConversionCollection > edm::Handle< reco::edm::View > edm::Handle< reco::ElectronSeedCollection > edm::Handle< reco::GenJetCollection > edm::Handle< reco::GenParticleCollection > edm::Handle< reco::GsfElectronCollection > edm::Handle< reco::GsfElectronCoreCollection > edm::Handle< reco::GsfPFRecTrackCollection > edm::Handle< reco::GsfTrackCollection > edm::Handle< reco::IsoDepositMap > edm::Handle< reco::JetMatchedPartonsCollection > edm::Handle< reco::MuonCollection > edm::Handle< reco::MuonTimeExtraMap > edm::Handle< reco::MuonTrackLinksCollection > edm::Handle< reco::PFCandidateCollection > edm::Handle< reco::PFCluster::EEtoPSAssociation > edm::Handle< reco::PFClusterCollection > edm::Handle< reco::PFDisplacedVertexCollection > edm::Handle< reco::PFJetCollection > edm::Handle< reco::PFMETCollection > edm::Handle< reco::PFRecHitCollection > edm::Handle< reco::PFSimParticleCollection > edm::Handle< reco::PFTauDiscriminator > edm::Handle< reco::PhotonCollection > edm::Handle< reco::TrackCollection > edm::Handle< reco::TrackRefVector > edm::Handle< reco::TrackToTrackingParticleAssociator > edm::Handle< reco::TrackToTrackMap > edm::Handle< reco::VertexCollection > edm::Handle< reco::VertexCompositeCandidateCollection > edm::Handle< reco::VoronoiMap > edm::Handle< RPCDigiCollection > edm::Handle< RPCRecHitCollection > edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList > edm::Handle< SiPixelClusterShapeCache > edm::Handle< SortedCollection< CaloTower > > edm::Handle< std::vector< int > > edm::Handle< std::vector< reco::CaloJet > > edm::Handle< std::vector< reco::GenParticle > > edm::Handle< std::vector< reco::Vertex > > edm::Handle< std::vector< Trajectory > > edm::Handle< TauCollection > edm::Handle< TauDiscriminator > edm::Handle< TrackCandidateCollection > edm::Handle< TrackingParticleCollection > edm::Handle< trigger::HLTPrescaleTable > edm::Handle< trigger::TriggerEvent > edm::Handle< trigger::TriggerEventWithRefs > edm::Handle< vector< pat::Jet > > edm::Handle< View< Jet > >

Public Member Functions

void clear ()
 
bool failedToGet () const
 
 HandleBase ()
 
 HandleBase (void const *prod, Provenance const *prov)
 
ProductID id () const
 
bool isValid () const
 
HandleBaseoperator= (HandleBase const &rhs)
 
Provenance const * provenance () const
 
void swap (HandleBase &other)
 
std::shared_ptr< cms::ExceptionwhyFailed () const
 
std::shared_ptr
< HandleExceptionFactory >
const & 
whyFailedFactory () const
 
 ~HandleBase ()
 

Protected Member Functions

void const * productStorage () const
 

Private Attributes

void const * product_
 
Provenance const * prov_
 
std::shared_ptr
< HandleExceptionFactory
whyFailedFactory_
 

Detailed Description

Definition at line 41 of file HandleBase.h.

Constructor & Destructor Documentation

edm::HandleBase::HandleBase ( )
inline

Definition at line 43 of file HandleBase.h.

43  :
44  product_(0),
45  prov_(0) {}
Provenance const * prov_
Definition: HandleBase.h:126
void const * product_
Definition: HandleBase.h:125
edm::HandleBase::HandleBase ( void const *  prod,
Provenance const *  prov 
)
inline

Definition at line 47 of file HandleBase.h.

References assert().

47  :
48  product_(prod), prov_(prov) {
49  assert(prod);
50  assert(prov);
51  }
assert(m_qm.get())
Provenance const * prov_
Definition: HandleBase.h:126
void const * product_
Definition: HandleBase.h:125
edm::HandleBase::~HandleBase ( )
inline

Definition at line 53 of file HandleBase.h.

53 {}

Member Function Documentation

void edm::HandleBase::clear ( void  )
inline

Definition at line 55 of file HandleBase.h.

References product_, prov_, and whyFailedFactory_.

Referenced by MultiTrackValidatorGenPs::analyze(), MultiTrackValidator::analyze(), L1TdeGCT::analyze(), egHLT::OffEvt::clear(), Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), edm::EventBase::get(), edm::Event::get(), edm::EventBase::getByLabel(), edm::RunBase::getByLabel(), edm::LuminosityBlock::getByLabel(), edm::LuminosityBlockBase::getByLabel(), edm::Run::getByLabel(), edm::Event::getByLabel(), edm::LuminosityBlock::getByToken(), edm::Run::getByToken(), edm::Event::getByToken(), getCollection(), MuonIdProducer::init(), SiStripZeroSuppression::MergeCollectionsZeroSuppression(), L2TauJetsProvider::produce(), L1Comparator::produce(), CaloRecHitMixer< T >::produce(), reco::modules::CosmicTrackSplitter::produce(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().

55  {
56  product_ = 0;
57  prov_ = 0;
58  whyFailedFactory_.reset();
59  }
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_
Definition: HandleBase.h:127
Provenance const * prov_
Definition: HandleBase.h:126
void const * product_
Definition: HandleBase.h:125
bool edm::HandleBase::failedToGet ( ) const
inline

Definition at line 79 of file HandleBase.h.

References whyFailedFactory_.

Referenced by SiStripMonitorDigi::analyze(), SiStripMonitorCluster::analyze(), TopDiLeptonDQM::analyze(), SiPixelTrackResidualSource::analyze(), DQMExample_Step1::analyze(), SiStripFEDMonitorPlugin::analyze(), HLTMuonPlotter::analyze(), SiStripMonitorMuonHLT::analyze(), RunHistogramManager::beginRun(), MEtoMEComparitor::compare(), L1BitComputer::compute(), HLTBitVariable::eval(), SimpleValueVariable< TYPE >::eval(), SimpleValueVectorVariable< TYPE >::eval(), MuonCosmicCompatibilityFiller::eventActivity(), DigiBXCorrHistogramMaker< T >::fill(), AdHocNTupler::fill(), MuonIdProducer::fillGlbQuality(), LogErrorFilter::filter(), edm::EventBase::get(), edm::Event::get(), edm::EventBase::getByLabel(), edm::RunBase::getByLabel(), edm::LuminosityBlock::getByLabel(), edm::LuminosityBlockBase::getByLabel(), edm::Run::getByLabel(), edm::Event::getByLabel(), edm::LuminosityBlock::getByToken(), edm::Run::getByToken(), edm::Event::getByToken(), JetPlusTrackCorrector::getElectrons(), JetPlusTrackCorrector::getMuons(), TrackProducer::getTransient(), MuonCosmicCompatibilityFiller::isOverlappingMuon(), JetPlusTrackCorrector::jtaUsingEventData(), MuonIdProducer::makeMuon(), MuonCosmicCompatibilityFiller::muonTiming(), MuonCosmicCompatibilityFiller::nMuons(), TwoObjectVariable< LHS, lLHS, RHS, lRHS, Calculator >::objects(), TtDilepLRSignalSelObservables::operator()(), TtSemiLRJetCombObservables::operator()(), TrackRefitter::produce(), GsfTrackRefitter::produce(), TrackProducer::produce(), TrackProducerWithSCAssociation::produce(), TrackListMerger::produce(), SimpleTrackListMerger::produce(), BSCTrigger::produce(), MuonsFromRefitTracksProducer::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), edm::Handle< GenericObject >::product(), edm::Handle< FWGenericObject >::product(), MuonCosmicCompatibilityFiller::pvMatches(), DualByL2TSG::selectTSG(), MuonsFromRefitTracksProducer::storeMatchMaps(), StringBranchHelper< Object, Collection >::StringBranchHelper(), StringLeaveHelper< Object >::StringLeaveHelper(), ClusterChecker::tooManyClusters(), MeasurementTrackerEventProducer::updatePixels(), and MeasurementTrackerEventProducer::updateStrips().

79  {
80  return bool(whyFailedFactory_);
81  }
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_
Definition: HandleBase.h:127
ProductID edm::HandleBase::id ( void  ) const

Definition at line 15 of file HandleBase.cc.

References edm::Provenance::productID(), prov_, and whyFailedFactory_.

Referenced by ZMuMuAnalyzer::analyze(), ZMuMuAnalyzer_cynematics::analyze(), HLTInfo::analyze(), TrackGenAssociatorByChi2Impl::associateGenToReco(), TrackGenAssociatorByChi2::associateGenToReco(), MuonToSimAssociatorByHits::associateMuons(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), TrackGenAssociatorByChi2Impl::associateRecoToGen(), TrackGenAssociatorByChi2::associateRecoToGen(), reco::TrackToTrackingParticleAssociatorBaseImpl::associateRecoToSim(), TrackAssociatorBase::associateRecoToSim(), reco::TrackToTrackingParticleAssociatorBaseImpl::associateSimToReco(), TrackAssociatorBase::associateSimToReco(), TopDecaySubset::checkShowerModel(), CandCombinerBase< OutputCollection, CandPtr >::combine(), MuonMCClassifier::convertAndPush(), ConversionFinder::getConversionInfos(), EcalSelectiveReadoutProducer::getEBDigis(), EcalSelectiveReadoutProducer::getEEDigis(), ctfseeding::HitExtractorPIX::hits(), MuIsolatorResultProducer< BT >::initAssociation(), MeasurementTrackerEvent::MeasurementTrackerEvent(), pat::PATVertexSlimmer::produce(), PdfWeightProducer::produce(), TkAlCaOverlapTagger::produce(), pat::PATLostTracks::produce(), TopBottomClusterInfoProducer::produce(), edm::ThinningProducer< Collection, Selector >::produce(), pat::PATPackedCandidateProducer::produce(), HLTTrackClusterRemoverNew::produce(), SeedClusterRemover::produce(), HITrackClusterRemover::produce(), TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce(), MuonMCClassifier::produce(), TriggerMatcherToHLTDebug::produce(), HadronAndPartonSelector::produce(), TeVMuonTrackCleaner::produceTrackExtras(), TeVMuonTrackMixer::produceTrackExtras(), PFTauSelectorDefinition::select(), MeasurementTrackerEventProducer::updatePixels(), and MeasurementTrackerEventProducer::updateStrips().

15  {
16  if (whyFailedFactory_) {
17  throw *whyFailedFactory_->make();
18  }
19  return prov_->productID();
20  }
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_
Definition: HandleBase.h:127
Provenance const * prov_
Definition: HandleBase.h:126
ProductID const & productID() const
Definition: Provenance.h:78
bool edm::HandleBase::isValid ( void  ) const
inline

Definition at line 75 of file HandleBase.h.

References product_, and prov_.

Referenced by TriggerHelper::acceptDcs(), GenericTriggerEventFlag::acceptDcs(), TriggerHelper::acceptGt(), GenericTriggerEventFlag::acceptGtLogicalExpression(), TriggerHelper::acceptHlt(), GenericTriggerEventFlag::acceptHlt(), HcalDigitizer::accumulate(), SiStripDigitizer::accumulate(), cms::SiPixelDigitizer::accumulate(), EcalDigiProducer::accumulateCaloHits(), SiStripQualityHotStripIdentifier::algoAnalyze(), SiStripMonitorTrack::AllClusters(), RazorVarAnalyzer::analyze(), CastorDigiAnalyzerImpl::analyze(), CastorHitAnalyzerImpl::analyze(), CSCALCTDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), CSCStripDigiValidation::analyze(), L1Scalers::analyze(), CSCWireDigiValidation::analyze(), HLTBJet::analyze(), CSCComparatorDigiValidation::analyze(), PFCandidateDQMAnalyzer::analyze(), PFJetDQMAnalyzer::analyze(), PFMETDQMAnalyzer::analyze(), PFMuonDQMAnalyzer::analyze(), ESRecoSummary::analyze(), HLTTauDQML1Plotter::analyze(), EcalTBHodoscopeRawInfoDumper::analyze(), EcalTBTDCRawInfoDumper::analyze(), CMSDAS11DijetAnalyzer::analyze(), CMSDAS11DijetTestAnalyzer::analyze(), ESPedestalTask::analyze(), PlaybackRawDataProvider::analyze(), KVFTrackUpdate::analyze(), BTagPerformanceAnalyzerOnData::analyze(), EventHeader::analyze(), ESDcsInfoTask::analyze(), RECOVertex::analyze(), RPCRecHitProbability::analyze(), CaloTowerAnalyzer::analyze(), ElectronMcSignalValidator::analyze(), BTagPerformanceAnalyzerMC::analyze(), ElectronGeneralAnalyzer::analyze(), HCALRecHitAnalyzer::analyze(), SUSYDQMAnalyzer::analyze(), TrackTypeMonitor::analyze(), PrimaryVertexMonitor::analyze(), DQMMessageLogger::analyze(), StandaloneTrackMonitor::analyze(), EgammaBasicClusters::analyze(), PatTrackAnalyzer::analyze(), RPCMonitorDigi::analyze(), EgammaSuperClusters::analyze(), HLTTauDQMOfflineSource::analyze(), DQMHcalPhiSymAlCaReco::analyze(), ObjectCounter< C >::analyze(), CSCTFAnalyzer::analyze(), HLTMCtruth::analyze(), HLTEventAnalyzerAOD::analyze(), HLTEventAnalyzerRAW::analyze(), AlCaElectronsTest::analyze(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::analyze(), TtSemiLepSignalSelMVATrainer::analyze(), CaloTowersValidation::analyze(), SUSY_HLT_InclusiveHT::analyze(), SimHitsValidationHcal::analyze(), CSCTFanalyzer::analyze(), RPCFEDIntegrity::analyze(), SiStripMonitorDigi::analyze(), HcalDeadCellMonitor::analyze(), TkAlCaRecoMonitor::analyze(), DQMHcalDiJetsAlCaReco::analyze(), BPhysicsOniaDQM::analyze(), HLTInspect::analyze(), HiggsToZZ4LeptonsSkimEff::analyze(), EcalPreshowerNoiseDistrib::analyze(), SUSY_HLT_PhotonHT::analyze(), HcalSimHitStudy::analyze(), EcalPileUpDepMonitor::analyze(), TrackerHitAnalyzer::analyze(), MuonRecoAnalyzer::analyze(), EcalDumpRaw::analyze(), ElectronStudy::analyze(), PixelVTXMonitor::analyze(), EcalPedOffset::analyze(), DQMLumiMonitor::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), SUSY_HLT_Muon_BJet::analyze(), DQMSourceEleCalib::analyze(), ElectronMcFakeValidator::analyze(), L1TdeGCT::analyze(), MuonSeedsAnalyzer::analyze(), QcdPhotonsDQM::analyze(), KVFTest::analyze(), HLTTrack::analyze(), dEdxHitAnalyzer::analyze(), VertexMonitor::analyze(), HcalDetDiagNoiseMonitor::analyze(), HTMHTAnalyzer::analyze(), DiMuonHistograms::analyze(), MuonEnergyDepositAnalyzer::analyze(), L1RCTSaveInput::analyze(), SiStripMonitorCluster::analyze(), dEdxAnalyzer::analyze(), DTSegment2DQuality::analyze(), L1TDEMON::analyze(), MuonKinVsEtaAnalyzer::analyze(), L1TDTTF::analyze(), KineExample::analyze(), DTSegment2DSLPhiQuality::analyze(), SUSY_HLT_DoubleEle_Hadronic::analyze(), SUSY_HLT_Electron_BJet::analyze(), BxTiming::analyze(), GctTimingAnalyzer::analyze(), ZeePlots::analyze(), EwkDQM::analyze(), EcalPreshowerDigisValidation::analyze(), HcalCorrPFCalculation::analyze(), EfficiencyAnalyzer::analyze(), WenuPlots::analyze(), StudyHLT::analyze(), EcalPreshowerRecHitsValidation::analyze(), SUSY_HLT_alphaT::analyze(), cms::MinBias::analyze(), HcalQLPlotAnal::analyze(), SUSY_HLT_DiJet_MET::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), NoiseRates::analyze(), EcalBarrelDigisValidation::analyze(), EcalEndcapDigisValidation::analyze(), JetTester::analyze(), SiPixelHitEfficiencySource::analyze(), HLTAnalyzer::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalEndcapRecHitsValidation::analyze(), HcalNoiseRates::analyze(), EcalBarrelSimHitsValidation::analyze(), L1TDTTPG::analyze(), TrackSplittingMonitor::analyze(), EcalPreshowerSimHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), DTResolutionAnalysisTask::analyze(), ZDCMonitorModule::analyze(), L1TRCT::analyze(), testChannel::analyze(), myJetAna::analyze(), DTSegment4DQuality::analyze(), L1TCSCTPG::analyze(), SiPixelHLTSource::analyze(), SiPixelTrackResidualSource::analyze(), L1TGMT::analyze(), L1TRPCTF::analyze(), HiggsDQM::analyze(), SiPixelDigiSource::analyze(), MuonRecoOneHLT::analyze(), GeneralHLTOffline::analyze(), L1TRate::analyze(), DTSegmentAnalysisTask::analyze(), DQMSourcePi0::analyze(), EcalSimHitsValidation::analyze(), ContainmentCorrectionAnalyzer::analyze(), EcalRecHitsValidation::analyze(), TrackingMonitor::analyze(), METTester::analyze(), TTbar_GenLepAnalyzer::analyze(), DQMExample_Step1::analyze(), RPCTTUMonitor::analyze(), HeavyFlavorValidation::analyze(), SUSY_HLT_SingleLepton::analyze(), l1t::GtInputDump::analyze(), L1TRate_Offline::analyze(), HcalRecHitsValidation::analyze(), SiPixelRawDataErrorSource::analyze(), DTRecHitQuality::analyze(), HigPhotonJetHLTOfflineSource::analyze(), HLTMuonMatchAndPlotContainer::analyze(), EcalDigisValidation::analyze(), L1GtTrigReport::analyze(), L1TdeRCT::analyze(), DTLocalTriggerBaseTask::analyze(), LogMessageMonitor::analyze(), TTbar_Kinematics::analyze(), GlobalDigisHistogrammer::analyze(), l1t::GtRecordDump::analyze(), GlobalRecHitsHistogrammer::analyze(), MCVerticesAnalyzer::analyze(), DTDataIntegrityTask::analyze(), L1TGT::analyze(), SiStripFEDMonitorPlugin::analyze(), HLTAlCa::analyze(), HLTHeavyIon::analyze(), FSQDiJetAve::analyze(), PhotonValidator::analyze(), L1TCSCTF::analyze(), L1TRPCTPG::analyze(), HLTEgamma::analyze(), DTChamberEfficiency::analyze(), HLTMuonPlotter::analyze(), L1TdeCSCTF::analyze(), MuonIsolationDQM::analyze(), JetMETHLTOfflineSource::analyze(), JetTester_HeavyIons::analyze(), HLTJets::analyze(), IsoTrig::analyze(), HLTMuon::analyze(), HLTHiggsSubAnalysis::analyze(), PrimaryVertexAnalyzer::analyze(), HcalDigiMonitor::analyze(), HLTInfo::analyze(), EcalCosmicsHists::analyze(), EmDQM::analyze(), GenPurposeSkimmerData::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), L1TCompare::analyze(), GlobalHitsHistogrammer::analyze(), HcalTimingMonitorModule::analyze(), JetAnalyzer::analyze(), JetAnalyzer_HeavyIons::analyze(), EcalMixingModuleValidation::analyze(), L1TSync::analyze(), DTLocalTriggerTask::analyze(), EmDQMReco::analyze(), IsolatedGenParticles::analyze(), SiStripMonitorMuonHLT::analyze(), RPCEfficiency::analyze(), IsolatedTracksCone::analyze(), PhotonAnalyzer::analyze(), HcalDetDiagTimingMonitor::analyze(), L1TSync_Offline::analyze(), METAnalyzer::analyze(), HcalDetDiagLEDMonitor::analyze(), L1TBPTX::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), L1TGCT::analyze(), PrimaryVertexAnalyzer4PU::analyze(), HcalDetDiagPedestalMonitor::analyze(), BeamHaloAnalyzer::analyze(), MCEmbeddingValidationAnalyzer::analyze(), HcalDetDiagLaserMonitor::analyze(), L1GtAnalyzer::analyzeConditionsInEventBlock(), L1GtAnalyzer::analyzeConditionsInLumiBlock(), L1GtAnalyzer::analyzeConditionsInRunBlock(), L1GtAnalyzer::analyzeDecisionReadoutRecord(), EgammaObjects::analyzeElectrons(), L1GtPackUnpackAnalyzer::analyzeGMT(), L1GtPackUnpackAnalyzer::analyzeGT(), L1GtAnalyzer::analyzeL1GtTriggerMenuLite(), L1GtAnalyzer::analyzeObjectMap(), EgammaObjects::analyzePhotons(), L1GtAnalyzer::analyzeTrigger(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), CSCEfficiency::applyTrigger(), GsfElectronBaseProducer::beginEvent(), pat::PATTriggerEventProducer::beginLuminosityBlock(), pat::PATTriggerProducer::beginLuminosityBlock(), pat::PATTriggerEventProducer::beginRun(), LHE2HepMCConverter::beginRun(), FWFFLooper::beginRun(), pat::PATTriggerProducer::beginRun(), RunHistogramManager::beginRun(), FWSimTrackProxyBuilder::build(), FWECALDetailViewBuilder::buildCaloData(), ConversionProducer::buildSuperAndBasicClusterGeoMap(), reco::helper::JetMuonHitsIDHelper::calculate(), EcalHaloAlgo::Calculate(), GlobalHaloAlgo::Calculate(), CSCHaloAlgo::Calculate(), PhotonIsolationCalculator::calculateTrackIso(), FWBeamSpot::checkBeamSpot(), MuonDetLayerMeasurements::checkCSCRecHits(), MuonDetLayerMeasurements::checkDTRecHits(), FWMagField::checkFieldInfo(), EmDQM::checkGeneratedParticlesRequirement(), AlignmentGlobalTrackSelector::checkIsolation(), AlignmentGlobalTrackSelector::checkJetCount(), AlignmentTwoBodyDecayTrackSelector::checkMETMass(), EmDQM::checkRecoParticlesRequirement(), MuonDetLayerMeasurements::checkRPCRecHits(), TopDecaySubset::checkShowerModel(), SiStripAnalyser::checkTrackerFEDs(), L1GtDataEmulAnalyzer::compareDaqRecord(), L1GtHwValidation::compareDaqRecord(), L1GtHwValidation::compareEvmRecord(), HLTBitComputer::compute(), HLTDoubletDZ< T1, T2 >::computeDZ(), TCMETAlgo::correct_MET_for_Tracks(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::count(), PFAlgo::createBlockRef(), GsfElectronAlgo::createElectron(), muonisolation::PixelTrackExtractor::deposit(), muonisolation::TrackExtractor::deposit(), egammaisolation::EgammaTrackExtractor::deposit(), EcalCosmicsHists::determineTriggers(), RPCTTUMonitor::discriminateGMT(), HLTTauRefProducer::doElectrons(), InvRingCalib::duringLoop(), EcalEleCalibLooper::duringLoop(), spr::eECALmatrix(), DQMLumiMonitor::endLuminosityBlock(), GenXSecAnalyzer::endLuminosityBlock(), GlobalHitsProdHistStripper::endRun(), SimpleValueVariable< TYPE >::eval(), SimpleValueVectorVariable< TYPE >::eval(), L1GtPatternGenerator::extractGlobalTriggerData(), extractRecordData(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), DigiVtxPosCorrHistogramMaker::fill(), VertexHistogramMaker::fill(), DigiBXCorrHistogramMaker< T >::fill(), DigiLumiCorrHistogramMaker::fill(), TrackDetectorAssociator::fillCaloTowers(), HTrackAssociator::fillCaloTowers(), reco::HcalNoiseInfoProducer::fillcalotwrs(), reco::HcalNoiseInfoProducer::filldigis(), MuonSimHitsValidAnalyzer::fillDT(), GlobalHitsAnalyzer::fillECal(), GlobalHitsProdHist::fillECal(), GlobalHitsProducer::fillECal(), GlobalDigisProducer::fillECal(), GlobalDigisAnalyzer::fillECal(), TrackDetectorAssociator::fillEcal(), GlobalRecHitsAnalyzer::fillECal(), GlobalRecHitsProducer::fillECal(), TrackerHitProducer::fillG4MC(), GlobalHitsAnalyzer::fillG4MC(), GlobalHitsProdHist::fillG4MC(), GlobalHitsProducer::fillG4MC(), MuonIdProducer::fillGlbQuality(), edm::GetterOfProducts< trigger::HLTPrescaleTable >::fillHandles(), GlobalHitsProdHist::fillHCal(), GlobalHitsAnalyzer::fillHCal(), GlobalHitsProducer::fillHCal(), GlobalDigisProducer::fillHCal(), GlobalDigisAnalyzer::fillHCal(), TrackDetectorAssociator::fillHcal(), HTrackAssociator::fillHcal(), GlobalRecHitsAnalyzer::fillHCal(), GlobalRecHitsProducer::fillHCal(), HTrackAssociator::fillHcalTowers(), HistoFillerReco< T >::fillHistos(), GeneralHLTOffline::fillHltMatrix(), TrackDetectorAssociator::fillHO(), reco::HcalNoiseInfoProducer::filljetinfo(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProdHist::fillMuon(), GlobalHitsProducer::fillMuon(), GlobalDigisProducer::fillMuon(), GlobalDigisAnalyzer::fillMuon(), TrackDetectorAssociator::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), GlobalRecHitsProducer::fillMuon(), MuonIdProducer::fillMuonId(), MuonAnalyzerSBSM::FillPlots(), reco::HcalNoiseInfoProducer::fillrechits(), reco::HcalNoiseInfoProducer::filltracks(), TrackerHitProducer::fillTrk(), GlobalHitsProdHist::fillTrk(), GlobalHitsAnalyzer::fillTrk(), GlobalHitsProducer::fillTrk(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), DetStatus::filter(), DetectorStateFilter::filter(), ZtoMMEventSelector::filter(), CandCollectionExistFilter::filter(), ZToMuMuSelector::filter(), ZtoEEEventSelector::filter(), myFilter::filter(), ClusterMultiplicityFilter::filter(), HLTPathSelector::filter(), ElectronIsolatorFromEffectiveArea::filter(), WtoLNuSelector::filter(), HLTHcalLaserFilter::filter(), JetMETDQMDCSFilter::filter(), HBHENoiseFilter::filter(), HiggsToWW2LeptonsSkim::filter(), ProbeTreeProducer::filter(), HiggsTo2GammaSkim::filter(), EgammaProbeSelector::filter(), HeavyChHiggsToTauNuSkim::filter(), HiggsToZZ4LeptonsPreFilter::filter(), GenLeadTrackFilter::filter(), PhysDecl::filter(), MuScleFitGenFilter::filter(), BeamSplash::filter(), ECALActivity::filter(), HiggsToZZ4LeptonsSkim::filter(), EcalExclusiveTrigFilter::filter(), L1GtBeamModeFilter::filter(), EcalSkim::filter(), EmptyEventsFilter::filter(), PFTauVertexSelector::filter(), HLTPrescaler::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHFFilter2012::filter(), HLTRegionalEcalResonanceFilter::filter(), HLTEcalResonanceFilter::filter(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::find(), SiStripClusterizer::findInput(), SiStripProcessedRawDigiProducer::findInput(), ShallowDigisProducer::findInput(), AlignmentGlobalTrackSelector::findMuons(), triggerExpression::get(), get(), L1TSync_Offline::getBeamConfOffline(), PileUpEventPrincipal::getByLabel(), MatacqProducer::getCalibTriggerType(), L1MuGMTPSB::getCalo(), HiSuperClusterProducer::getClusterPtrVector(), getCollection(), EgammaHLTMulti5x5ClusterProducer::getCollection(), EgammaHLTIslandClusterProducer::getCollection(), CalibratableTest::getCollection(), EDMtoMEConverter::getData(), RawDataConverter::GetDigis(), EcalSimRawData::getEbDigi(), JetPlusTrackCorrector::getElectrons(), EcalClusterLazyToolsBase::getESRecHits(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::getFilteredCands(), HLTExoticaSubAnalysis::getHandlesToObjects(), pat::PATMHTProducer::getMuons(), JetPlusTrackCorrector::getMuons(), MatacqProducer::getOrbitId(), MuonPFAnalyzer::getPrimaryVertex(), L1TEfficiencyMuons_Offline::getPrimaryVertex(), QcdUeDQM::getProduct(), QcdLowPtDQM::getProduct(), QcdUeDQM::getProductSafe(), QcdLowPtDQM::getProductSafe(), GetLumi::getRawValue(), PFSimParticleProducer::getSimIDs(), EcalSimRawData::getSrfs(), SiStripDCSStatus::getStatus(), EcalSimRawData::getTp(), RawDataConverter::GetValidLabels(), HLTTrackSeedMultiplicityFilter::hltFilter(), HLTEcalPixelIsolTrackFilter::hltFilter(), HLTSingleVertexPixelTrackFilter::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), HLTVertexFilter::hltFilter(), HLTBeamModeFilter::hltFilter(), HLTRPCTrigNoSyncFilter::hltFilter(), HLTLevel1GTSeed::hltFilter(), MuonIdProducer::init(), DTHitAssociator::initEvent(), SiStripDCSStatus::initialise(), HLTHiggsSubAnalysis::initobjects(), FWPFCandidateWithHitsProxyBuilder::initPFRecHitsCollections(), PrescaleWeightProvider::initRun(), cms::MuonTCMETValueMapProducer::isGoodMuon(), cms::MuonTCMETValueMapProducer::isGoodTrack(), TCMETAlgo::isGoodTrack(), JetMETHLTOfflineSource::isHLTPathAccepted(), JetPlusTrackCorrector::jtaUsingEventData(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), L1GtUtils::l1Results(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::loopOnTracks(), main(), RPCRecHitProbability::makeDcsInfo(), RPCDcsInfo::makeDcsInfo(), DQMDcsInfo::makeDcsInfo(), RPCMonitorDigi::makeDcsInfo(), DQMDcsInfo::makeGtInfo(), MuPFIsoHelper::makeIsoDeposit(), HLTEgamma::MakeL1IsolatedElectrons(), HLTEgamma::MakeL1IsolatedPhotons(), HLTEgamma::MakeL1NonIsolatedElectrons(), HLTEgamma::MakeL1NonIsolatedPhotons(), MuonIdProducer::makeMuon(), JetPlusTrackCorrector::matchTracks(), PhotonMIPHaloTagger::MIPcalculate(), PFCandidateMixer::mix(), CosmicParametersDefinerForTP::momentum(), GsfEleConversionVetoCut::operator()(), AcceptJet::operator()(), TtDilepLRSignalSelObservables::operator()(), TtSemiLRJetCombObservables::operator()(), CosmicTrackingParticleSelector::operator()(), TSGFromPropagation::passSelection(), FastTSGFromPropagation::passSelection(), FWFFService::postBeginRun(), FWPathsPopup::postEvent(), QuickTrackAssociatorByHits::prepareEitherHitAssociatorOrClusterToTPMap(), L1GtUtils::prescaleFactorSetIndex(), PrescaleWeightProvider::prescaleWeight(), L1Comparator::process(), StandaloneTrackMonitor::processClusters(), HIBestVertexProducer::produce(), HcalTrigPrimDigiProducer::produce(), TrackRefitter::produce(), EcalTBH2TDCRecInfoProducer::produce(), EcalTBHodoscopeRecInfoProducer::produce(), EcalTBTDCRecInfoProducer::produce(), CaloTowersReCreator::produce(), ESRawToDigi::produce(), pat::PATSecondaryVertexSlimmer::produce(), L1RCTInputProducer::produce(), JetExtender::produce(), QuarkoniaTrackSelector::produce(), TrackProducerWithSCAssociation::produce(), EgammaHLTHybridClusterProducer::produce(), ShallowClustersProducer::produce(), GlobalCosmicMuonProducer::produce(), HIPixelClusterVtxProducer::produce(), DTUnpackingModule::produce(), ESZeroSuppressionProducer::produce(), PFConversionProducer::produce(), HybridClusterProducer::produce(), IsolatedEcalPixelTrackCandidateProducer::produce(), TtSemiLepSignalSelMVAComputer::produce(), ElectronRecalibSuperClusterAssociator::produce(), L3MuonCandidateProducerFromMuons::produce(), ReducedESRecHitCollectionProducer::produce(), MuonSeedGenerator::produce(), CandidateTriggerObjectProducer::produce(), RPCPointProducer::produce(), GlobalTrackQualityProducer::produce(), EcalZeroSuppressionProducer::produce(), ConvertObjectMapRecord::produce(), SiStripClusterToDigiProducer::produce(), SimpleTrackListMerger::produce(), CSCTFPacker::produce(), FakeTBEventHeaderProducer::produce(), ConversionTrackMerger::produce(), SoftPFMuonTagInfoProducer::produce(), SoftPFElectronTagInfoProducer::produce(), TBHodoActiveVolumeRawInfoProducer::produce(), PFTrackProducer::produce(), PixelVertexProducer::produce(), CSCTriggerPrimitivesProducer::produce(), pat::PATPackedCandidateProducer::produce(), ReducedRecHitCollectionProducer::produce(), SETMuonSeedProducer::produce(), L1GctEmulator::produce(), GenFilterEfficiencyProducer::produce(), PFSimParticleProducer::produce(), L1EmulBias::produce(), AlCaGammaJetProducer::produce(), L1ExtraParticlesProd::produce(), PFProducer::produce(), pat::PATCompositeCandidateProducer::produce(), JetPlusTrackProducer::produce(), L1GlobalTriggerRecordProducer::produce(), EgammaIsoESDetIdCollectionProducer::produce(), cms::MuonTCMETValueMapProducer::produce(), EgammaIsoHcalDetIdCollectionProducer::produce(), pat::PATMuonProducer::produce(), L1Comparator::produce(), HcalHitSelection::produce(), VertexFromTrackProducer::produce(), EgammaHLTNxNClusterProducer::produce(), RPCTrigger::produce(), FFTJetVertexAdder::produce(), FFTJetPFPileupCleaner::produce(), QuickTrackAssociatorByHitsProducer::produce(), CaloTowersMerger::produce(), PFTauSecondaryVertexProducer::produce(), pat::PATTriggerMatchEmbedder< PATObjectType >::produce(), ConditionDumperInEdm::produce(), PatJPsiProducer::produce(), L1GlobalTriggerEvmRawToDigi::produce(), L1GTEvmDigiToRaw::produce(), PFTauTransverseImpactParameters::produce(), NuclearInteractionEDProducer::produce(), MuIsolatorResultProducer< BT >::produce(), PrimaryVertexProducer::produce(), pat::PATPhotonProducer::produce(), JetPlusTrackProducerAA::produce(), pat::PATElectronProducer::produce(), pat::PATTriggerEventProducer::produce(), L1GTDigiToRaw::produce(), L1GlobalTrigger::produce(), L1GlobalTriggerRawToDigi::produce(), PFPhotonTranslator::produce(), pat::PATTriggerProducer::produce(), EgammaHLTGsfTrackVarProducer::produce(), MuonIdProducer::produce(), PFTauPrimaryVertexProducer::produce(), RPCTechnicalTrigger::produce(), TriggerMatcherToHLTDebug::produce(), HadronAndPartonSelector::produce(), PFTau3ProngReco::produce(), BoostedTopProducer::produce(), reco::HcalHaloDataProducer::produce(), SoftLepton::produce(), reco::EcalHaloDataProducer::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), EvtPlaneProducer::produce(), reco::CSCHaloDataProducer::produce(), reco::GlobalHaloDataProducer::produce(), CollHandle< EEDigiCollection >::read(), edm::service::RandomNumberGeneratorService::readFromEvent(), edm::service::RandomNumberGeneratorService::readFromLuminosityBlock(), AlcaBeamSpotManager::readLumi(), core.AutoHandle.AutoHandle::ReallyLoad(), l1t::GtBoard::receiveCaloObjectData(), L1MuGMTPSB::receiveData(), L1GlobalTriggerPSB::receiveGctObjectData(), L1GlobalTriggerGTL::receiveGmtObjectData(), l1t::GtBoard::receiveMuonObjectData(), L1GlobalTriggerPSB::receiveTechnicalTriggers(), PFAlgo::reconstructParticles(), MuonPFAnalyzer::recoToGenMatch(), GlobalTrackingRegionProducerFromBeamSpot::regions(), GlobalTrackingRegionWithVerticesProducer::regions(), CosmicRegionalSeedGenerator::regions(), TrackingRegionsFromBeamSpotAndL2Tau::regions(), HITrackingRegionForPrimaryVtxProducer::regions(), CandidateSeededTrackingRegionsProducer::regions(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::rejectTrack(), RunManagerMTWorker::resetGenParticleId(), RunManager::resetGenParticleId(), L1RetrieveL1Extra::retrieveL1ExtraObjects(), L1GtUtils::retrieveL1GtTriggerMenuLite(), CutBasedElectronID::robustSelection(), HLTLevel1GTSeed::seedsL1Extra(), HLTLevel1GTSeed::seedsL1TriggerObjectMaps(), pf2pat::PtMinPFCandidateSelectorDefinition::select(), HLTEventSelector::select(), CaloTauSelectorDefinition::select(), HIProtoTrackSelector::select(), PFTauSelectorDefinition::select(), MuScleFitMuonSelector::selectGenSimMuons(), MuScleFitMuonSelector::selectMuons(), MuScleFit::selectMuons(), MuScleFitMuonSelector::selectSimulatedMuons(), L3MuonTrajectoryBuilder::setEvent(), edm::StreamerOutputModuleBase::setHltMask(), PFDisplacedVertexCandidateFinder::setInput(), PFDisplacedVertexFinder::setInput(), TrackingMonitor::setNclus(), PFDisplacedVertexHelper::setPrimaryVertex(), PFDisplacedVertexCandidateFinder::setPrimaryVertex(), MuonMaker::SetVars(), FWECALDetailViewBuilder::showSuperClusters(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), IsoTrig::studyIsolation(), IsoTrig::studyMipCut(), IsoTrig::studyTrigger(), IsoTrig::StudyTrkEbyP(), SiStripMonitorTrack::trackStudy(), GlobalCosmicMuonTrajectoryBuilder::trajectories(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), DTTrig::triggerReco(), edm::Event::triggerResultsByName(), MuonIdTruthInfo::truthMatchMuon(), and CosmicParametersDefinerForTP::vertex().

75  {
76  return product_ && prov_;
77  }
Provenance const * prov_
Definition: HandleBase.h:126
void const * product_
Definition: HandleBase.h:125
HandleBase& edm::HandleBase::operator= ( HandleBase const &  rhs)
inline

Definition at line 69 of file HandleBase.h.

References swap(), and groupFilesInBlocks::temp.

69  {
70  HandleBase temp(rhs);
71  this->swap(temp);
72  return *this;
73  }
void swap(HandleBase &other)
Definition: HandleBase.h:62
void const * edm::HandleBase::productStorage ( ) const
protected

Definition at line 7 of file HandleBase.cc.

References product_, and whyFailedFactory_.

7  {
8  if (whyFailedFactory_) {
9  throw *whyFailedFactory_->make();
10  }
11  return product_;
12  }
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_
Definition: HandleBase.h:127
void const * product_
Definition: HandleBase.h:125
Provenance const* edm::HandleBase::provenance ( ) const
inline
void edm::HandleBase::swap ( HandleBase other)
inline

Definition at line 62 of file HandleBase.h.

References product_, prov_, std::swap(), and whyFailedFactory_.

Referenced by edm::Event::getByLabel(), edm::Event::getByToken(), operator=(), edm::Handle< GenericObject >::operator=(), edm::Handle< FWGenericObject >::operator=(), edm::Handle< GenericObject >::swap(), edm::Handle< FWGenericObject >::swap(), and edm::swap().

62  {
63  using std::swap;
64  swap(product_, other.product_);
65  std::swap(prov_, other.prov_);
66  swap(whyFailedFactory_, other.whyFailedFactory_);
67  }
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_
Definition: HandleBase.h:127
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
void swap(HandleBase &other)
Definition: HandleBase.h:62
Provenance const * prov_
Definition: HandleBase.h:126
void const * product_
Definition: HandleBase.h:125
std::shared_ptr<cms::Exception> edm::HandleBase::whyFailed ( ) const
inline

Definition at line 110 of file HandleBase.h.

References whyFailedFactory_.

Referenced by HLTPhysicsDeclared::filter(), triggerExpression::get(), get(), and L3MuonCandidateProducerFromMuons::produce().

110  {
111  if(whyFailedFactory_.get()) {
112  return whyFailedFactory_->make();
113  }
114  return std::shared_ptr<cms::Exception>();
115  }
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_
Definition: HandleBase.h:127
std::shared_ptr<HandleExceptionFactory> const& edm::HandleBase::whyFailedFactory ( ) const
inline

Definition at line 118 of file HandleBase.h.

References whyFailedFactory_.

118 { return whyFailedFactory_;}
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_
Definition: HandleBase.h:127

Member Data Documentation

void const* edm::HandleBase::product_
private

Definition at line 125 of file HandleBase.h.

Referenced by clear(), isValid(), productStorage(), and swap().

Provenance const* edm::HandleBase::prov_
private
std::shared_ptr<HandleExceptionFactory> edm::HandleBase::whyFailedFactory_
private