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< 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< L1GctHFBitCountsCollection > edm::Handle< L1GctHFRingEtSumsCollection > edm::Handle< L1GtTriggerMenuLite > edm::Handle< LTCDigiCollection > edm::Handle< MeasurementTrackerEvent > edm::Handle< PFBlockCollection > edm::Handle< PFCandidateCollection > edm::Handle< PFTauDecayModeAssociation > 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::CaloTauCollection > 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::JetTagCollection > 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::PFTauCollection > edm::Handle< reco::PFTauDiscriminator > edm::Handle< reco::PhotonCollection > edm::Handle< reco::TrackCollection > edm::Handle< reco::TrackRefVector > edm::Handle< reco::TrackToTrackMap > edm::Handle< reco::VertexCollection > edm::Handle< reco::VertexCompositeCandidateCollection > 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 42 of file HandleBase.h.

Constructor & Destructor Documentation

edm::HandleBase::HandleBase ( )
inline

Definition at line 44 of file HandleBase.h.

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

Definition at line 48 of file HandleBase.h.

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

Definition at line 54 of file HandleBase.h.

54 {}

Member Function Documentation

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

Definition at line 56 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::Event::get(), edm::EventBase::getByLabel(), edm::RunBase::getByLabel(), edm::LuminosityBlock::getByLabel(), edm::Run::getByLabel(), edm::Event::getByLabel(), edm::LuminosityBlockBase::getByLabel(), edm::LuminosityBlock::getByToken(), edm::Run::getByToken(), edm::Event::getByToken(), getCollection(), MuonIdProducer::init(), SiStripZeroSuppression::MergeCollectionsZeroSuppression(), L2TauJetsProvider::produce(), HLTTauMCProducer::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().

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

Definition at line 80 of file HandleBase.h.

References whyFailedFactory_.

Referenced by HLTMonBitSummary::analyze(), SiStripMonitorDigi::analyze(), SiStripMonitorCluster::analyze(), SiPixelTrackResidualSource::analyze(), TopDiLeptonDQM::analyze(), DQMExample_Step1::analyze(), SiStripFEDMonitorPlugin::analyze(), HLTMuonPlotter::analyze(), SiPixelMuonHLT::analyze(), SiStripMonitorMuonHLT::analyze(), RunHistogramManager::beginRun(), MEtoMEComparitor::compare(), L1BitComputer::compute(), HLTBitVariable::eval(), SimpleValueVariable< TYPE >::eval(), SimpleValueVectorVariable< TYPE >::eval(), MuonCosmicCompatibilityFiller::eventActivity(), DigiBXCorrHistogramMaker< T >::fill(), MuonIdProducer::fillGlbQuality(), LogErrorFilter::filter(), edm::Event::get(), edm::EventBase::getByLabel(), edm::RunBase::getByLabel(), edm::LuminosityBlock::getByLabel(), edm::Run::getByLabel(), edm::Event::getByLabel(), edm::LuminosityBlockBase::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(), cms::SimpleTrackListMerger::produce(), cms::TrackListMerger::produce(), BSCTrigger::produce(), MuonsFromRefitTracksProducer::produce(), edm::Handle< GenericObject >::product(), edm::Handle< FWGenericObject >::product(), MuonCosmicCompatibilityFiller::pvMatches(), DualByL2TSG::selectTSG(), MuonsFromRefitTracksProducer::storeMatchMaps(), ClusterChecker::tooManyClusters(), MeasurementTrackerEventProducer::updatePixels(), and MeasurementTrackerEventProducer::updateStrips().

80  {
81  return bool(whyFailedFactory_);
82  }
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_
Definition: HandleBase.h:128
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(), SiPixelMuonHLT::analyze(), TrackAssociatorByChi2::associateGenToReco(), MuonAssociatorByHits::associateMuons(), TrackAssociatorByChi2::associateRecoToGen(), TrackAssociatorBase::associateRecoToSim(), TrackAssociatorBase::associateSimToReco(), CandCombinerBase< OutputCollection, CandPtr >::combine(), MuonMCClassifier::convertAndPush(), ConversionFinder::getConversionInfos(), EcalSelectiveReadoutProducer::getEBDigis(), EcalSelectiveReadoutProducer::getEEDigis(), ctfseeding::HitExtractorPIX::hits(), MuIsolatorResultProducer< BT >::initAssociation(), MeasurementTrackerEvent::MeasurementTrackerEvent(), PdfWeightProducer::produce(), TkAlCaOverlapTagger::produce(), pat::PATLostTracks::produce(), TopBottomClusterInfoProducer::produce(), HLTTrackClusterRemoverNew::produce(), pat::PATPackedCandidateProducer::produce(), SeedClusterRemover::produce(), TrackClusterRemover::produce(), pat::PATPackedGenParticleProducer::produce(), TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce(), MuonMCClassifier::produce(), TriggerMatcherToHLTDebug::produce(), HadronAndPartonSelector::produce(), TeVMuonTrackMixer::produceTrackExtras(), TeVMuonTrackCleaner::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:128
Provenance const * prov_
Definition: HandleBase.h:127
ProductID const & productID() const
Definition: Provenance.h:78
bool edm::HandleBase::isValid ( void  ) const
inline

Definition at line 76 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(), EcalDigiProducer::accumulateCaloHits(), RecoTrackAccumulator::accumulateEvent(), SiStripQualityHotStripIdentifier::algoAnalyze(), SiStripMonitorTrack::AllClusters(), CastorHitAnalyzerImpl::analyze(), CastorDigiAnalyzerImpl::analyze(), CSCALCTDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), RazorVarAnalyzer::analyze(), CSCStripDigiValidation::analyze(), CSCWireDigiValidation::analyze(), PFCandidateDQMAnalyzer::analyze(), PFJetDQMAnalyzer::analyze(), PFMETDQMAnalyzer::analyze(), HLTBJet::analyze(), CSCComparatorDigiValidation::analyze(), ESRecoSummary::analyze(), HLTTauDQML1Plotter::analyze(), EcalTBTDCRawInfoDumper::analyze(), CMSDAS11DijetAnalyzer::analyze(), CMSDAS11DijetTestAnalyzer::analyze(), EcalTBHodoscopeRawInfoDumper::analyze(), ESPedestalTask::analyze(), PlaybackRawDataProvider::analyze(), KVFTrackUpdate::analyze(), ESDcsInfoTask::analyze(), EventHeader::analyze(), RECOVertex::analyze(), ElectronMcSignalValidator::analyze(), RPCRecHitProbability::analyze(), CaloTowerAnalyzer::analyze(), ElectronGeneralAnalyzer::analyze(), HCALRecHitAnalyzer::analyze(), SUSYDQMAnalyzer::analyze(), DQMMessageLogger::analyze(), EgammaBasicClusters::analyze(), PrimaryVertexMonitor::analyze(), PatTrackAnalyzer::analyze(), RPCMonitorDigi::analyze(), EgammaSuperClusters::analyze(), HLTAlCaMonEcalPhiSym::analyze(), StudyHLT::analyze(), HLTTauDQMOfflineSource::analyze(), SiPixelDaqInfo::analyze(), HLTEventAnalyzerAOD::analyze(), HLTEventAnalyzerRAW::analyze(), CSCTFAnalyzer::analyze(), ObjectCounter< C >::analyze(), AlCaElectronsTest::analyze(), HLTMCtruth::analyze(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::analyze(), TtSemiLepSignalSelMVATrainer::analyze(), DQMHcalPhiSymAlCaReco::analyze(), CSCTFanalyzer::analyze(), IsoTrig::analyze(), HLTMonHcalIsoTrack::analyze(), HLTOniaSource::analyze(), RPCFEDIntegrity::analyze(), SiStripMonitorDigi::analyze(), CaloTowersValidation::analyze(), HcalDeadCellMonitor::analyze(), HcalSimHitStudy::analyze(), HLTMonBTagMuSource::analyze(), HLTMonBTagIPSource::analyze(), L1TdeGCT::analyze(), L1TDEMON::analyze(), HiggsToZZ4LeptonsSkimEff::analyze(), EcalPreshowerNoiseDistrib::analyze(), TkAlCaRecoMonitor::analyze(), SimHitsValidationHcal::analyze(), ElectronMcFakeValidator::analyze(), TrackerHitAnalyzer::analyze(), DQMSourceEleCalib::analyze(), EcalPileUpDepMonitor::analyze(), MuonRecoAnalyzer::analyze(), HLTInspect::analyze(), EcalDumpRaw::analyze(), ElectronStudy::analyze(), DQMHcalDiJetsAlCaReco::analyze(), EcalPedOffset::analyze(), DQMLumiMonitor::analyze(), PixelVTXMonitor::analyze(), SiPixelEDAClient::analyze(), MuonSeedsAnalyzer::analyze(), BPhysicsOniaDQM::analyze(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::analyze(), KVFTest::analyze(), HLTTrack::analyze(), HcalDetDiagNoiseMonitor::analyze(), VertexMonitor::analyze(), HTMHTAnalyzer::analyze(), DiMuonHistograms::analyze(), L1RCTSaveInput::analyze(), MuonEnergyDepositAnalyzer::analyze(), BxTiming::analyze(), SiStripMonitorCluster::analyze(), DTSegment2DQuality::analyze(), dEdxAnalyzer::analyze(), MuonKinVsEtaAnalyzer::analyze(), BTagPerformanceAnalyzerOnData::analyze(), DTSegment2DSLPhiQuality::analyze(), L1Scalers::analyze(), L1TDTTF::analyze(), KineExample::analyze(), GctTimingAnalyzer::analyze(), ZeePlots::analyze(), EwkDQM::analyze(), QcdPhotonsDQM::analyze(), HcalCorrPFCalculation::analyze(), EcalPreshowerDigisValidation::analyze(), WenuPlots::analyze(), cms::MinBias::analyze(), EcalPreshowerRecHitsValidation::analyze(), EfficiencyAnalyzer::analyze(), HcalQLPlotAnal::analyze(), NoiseRates::analyze(), JetTester::analyze(), ZDCMonitorModule::analyze(), EcalBarrelDigisValidation::analyze(), EcalEndcapDigisValidation::analyze(), L1TDTTPG::analyze(), DTResolutionAnalysisTask::analyze(), SiPixelHitEfficiencySource::analyze(), HLTAnalyzer::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalEndcapRecHitsValidation::analyze(), HcalNoiseRates::analyze(), L1TRCT::analyze(), EcalBarrelSimHitsValidation::analyze(), BTagPerformanceAnalyzerMC::analyze(), EcalEndcapSimHitsValidation::analyze(), EcalPreshowerSimHitsValidation::analyze(), TrackSplittingMonitor::analyze(), L1TCSCTPG::analyze(), DTSegmentAnalysisTask::analyze(), testChannel::analyze(), myJetAna::analyze(), SiPixelHLTSource::analyze(), SiPixelTrackResidualSource::analyze(), DTSegment4DQuality::analyze(), HLTAlCaMonPi0::analyze(), L1TGMT::analyze(), L1TRPCTF::analyze(), SiPixelDigiSource::analyze(), DQMSourcePi0::analyze(), HLTInclusiveVBFSource::analyze(), L1TRate::analyze(), MuonRecoOneHLT::analyze(), GeneralHLTOffline::analyze(), EcalSimHitsValidation::analyze(), METTester::analyze(), EcalRecHitsValidation::analyze(), ContainmentCorrectionAnalyzer::analyze(), HiggsDQM::analyze(), RPCTTUMonitor::analyze(), TTbar_GenLepAnalyzer::analyze(), HLTMon::analyze(), L1TRate_Offline::analyze(), DQMExample_Step1::analyze(), SiPixelRawDataErrorSource::analyze(), TrackingMonitor::analyze(), HeavyFlavorValidation::analyze(), DTRecHitQuality::analyze(), HLTMuonMatchAndPlotContainer::analyze(), EcalDigisValidation::analyze(), HcalRecHitsValidation::analyze(), L1GtTrigReport::analyze(), L1TGT::analyze(), TTbar_Kinematics::analyze(), LogMessageMonitor::analyze(), DTLocalTriggerBaseTask::analyze(), BTagHLTOfflineSource::analyze(), L1TdeRCT::analyze(), GlobalDigisHistogrammer::analyze(), GlobalRecHitsHistogrammer::analyze(), MCVerticesAnalyzer::analyze(), DTChamberEfficiency::analyze(), DTDataIntegrityTask::analyze(), HLTHeavyIon::analyze(), HLTAlCa::analyze(), SiStripFEDMonitorPlugin::analyze(), L1TCSCTF::analyze(), PhotonValidator::analyze(), HLTHiggsSubAnalysis::analyze(), L1TdeCSCTF::analyze(), HLTEgamma::analyze(), HLTMuonPlotter::analyze(), MuonIsolationDQM::analyze(), JetMETHLTOfflineSource::analyze(), L1TRPCTPG::analyze(), HLTJets::analyze(), HLTMuon::analyze(), HLTInfo::analyze(), HcalDigiMonitor::analyze(), PrimaryVertexAnalyzer::analyze(), EcalCosmicsHists::analyze(), EmDQM::analyze(), GenPurposeSkimmerData::analyze(), JetAnalyzer::analyze(), L1TCompare::analyze(), HcalTimingMonitorModule::analyze(), GlobalHitsHistogrammer::analyze(), FourVectorHLTOnline::analyze(), EcalMixingModuleValidation::analyze(), L1TSync::analyze(), DTLocalTriggerTask::analyze(), EmDQMReco::analyze(), SiPixelMuonHLT::analyze(), IsolatedGenParticles::analyze(), METAnalyzer::analyze(), SiStripMonitorMuonHLT::analyze(), RPCEfficiency::analyze(), IsolatedTracksCone::analyze(), L1TSync_Offline::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagLEDMonitor::analyze(), PhotonAnalyzer::analyze(), L1TBPTX::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), FourVectorHLTOffline::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(), LHE2HepMCConverter::beginRun(), pat::PATTriggerEventProducer::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(), OccupancyPlotter::checkDcsInfo(), MuonDetLayerMeasurements::checkDTRecHits(), FWMagField::checkFieldInfo(), EmDQM::checkGeneratedParticlesRequirement(), AlignmentGlobalTrackSelector::checkIsolation(), AlignmentGlobalTrackSelector::checkJetCount(), OccupancyPlotter::checkLumiInfo(), AlignmentTwoBodyDecayTrackSelector::checkMETMass(), EmDQM::checkRecoParticlesRequirement(), MuonDetLayerMeasurements::checkRPCRecHits(), TrackingAnalyser::checkTrackerFEDs(), SiStripAnalyser::checkTrackerFEDs(), L1GtDataEmulAnalyzer::compareDaqRecord(), L1GtHwValidation::compareDaqRecord(), L1GtHwValidation::compareEvmRecord(), HLTBitComputer::compute(), TCMETAlgo::correct_MET_for_Tracks(), PFAlgo::createBlockRef(), GsfElectronAlgo::createElectron(), CxCalculator::CxCalculator(), muonisolation::PixelTrackExtractor::deposit(), muonisolation::TrackExtractor::deposit(), egammaisolation::EgammaTrackExtractor::deposit(), EcalCosmicsHists::determineTriggers(), RPCTTUMonitor::discriminateGMT(), HLTTauRefProducer::doElectrons(), InvRingCalib::duringLoop(), EcalEleCalibLooper::duringLoop(), spr::eECALmatrix(), DQMLumiMonitor::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(), TrigResRateMon::fillCountsPerPath(), MuonSimHitsValidAnalyzer::fillCSC(), 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(), GlobalHitsAnalyzer::fillHCal(), GlobalHitsProdHist::fillHCal(), GlobalHitsProducer::fillHCal(), GlobalDigisProducer::fillHCal(), GlobalDigisAnalyzer::fillHCal(), TrackDetectorAssociator::fillHcal(), HTrackAssociator::fillHcal(), GlobalRecHitsAnalyzer::fillHCal(), GlobalRecHitsProducer::fillHCal(), HTrackAssociator::fillHcalTowers(), HistoFillerReco< T >::fillHistos(), HLTMon::fillHistos(), GeneralHLTOffline::fillHltMatrix(), TrackDetectorAssociator::fillHO(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), BTagHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), BTagHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), BTagHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), BTagHLTOfflineSource::fillMEforTriggerNTfired(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProdHist::fillMuon(), GlobalHitsProducer::fillMuon(), GlobalDigisProducer::fillMuon(), GlobalDigisAnalyzer::fillMuon(), TrackDetectorAssociator::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), GlobalRecHitsProducer::fillMuon(), MuonIdProducer::fillMuonId(), HLTOniaSource::fillOniaTriggerMEs(), MuonAnalyzerSBSM::FillPlots(), reco::HcalNoiseInfoProducer::fillrechits(), MuonSimHitsValidAnalyzer::fillRPC(), reco::HcalNoiseInfoProducer::filltracks(), TrackerHitProducer::fillTrk(), GlobalHitsAnalyzer::fillTrk(), GlobalHitsProdHist::fillTrk(), GlobalHitsProducer::fillTrk(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), DetStatus::filter(), DetectorStateFilter::filter(), ZToMuMuSelector::filter(), CandCollectionExistFilter::filter(), myFilter::filter(), ClusterMultiplicityFilter::filter(), ElectronIsolatorFromEffectiveArea::filter(), HLTHcalLaserFilter::filter(), HBHENoiseFilter::filter(), JetMETDQMDCSFilter::filter(), ProbeTreeProducer::filter(), HiggsToWW2LeptonsSkim::filter(), HiggsTo2GammaSkim::filter(), EgammaProbeSelector::filter(), HeavyChHiggsToTauNuSkim::filter(), HiggsToZZ4LeptonsPreFilter::filter(), GenLeadTrackFilter::filter(), MuScleFitGenFilter::filter(), BeamSplash::filter(), ECALActivity::filter(), PhysDecl::filter(), HiggsToZZ4LeptonsSkim::filter(), EcalExclusiveTrigFilter::filter(), L1GtBeamModeFilter::filter(), EcalSkim::filter(), EmptyEventsFilter::filter(), PFTauVertexSelector::filter(), HLTPrescaler::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHFFilter2012::filter(), HLTEcalResonanceFilter::filter(), SiStripClusterizer::findInput(), SiStripProcessedRawDigiProducer::findInput(), ShallowDigisProducer::findInput(), AlignmentGlobalTrackSelector::findMuons(), triggerExpression::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(), 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(), 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(), BTagHLTOfflineSource::isVBTFMuon(), FourVectorHLTOffline::isVBTFMuon(), 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(), AcceptJet::operator()(), TtDilepLRSignalSelObservables::operator()(), TtSemiLRJetCombObservables::operator()(), CosmicTrackingParticleSelector::operator()(), TSGFromPropagation::passSelection(), FastTSGFromPropagation::passSelection(), FWFFService::postBeginRun(), FWPathsPopup::postEvent(), QuickTrackAssociatorByHits::prepareEitherHitAssociatorOrClusterToTPMap(), L1GtUtils::prescaleFactorSetIndex(), PrescaleWeightProvider::prescaleWeight(), L1Comparator::process(), HIBestVertexProducer::produce(), HcalTrigPrimDigiProducer::produce(), EcalTBHodoscopeRecInfoProducer::produce(), EcalTBTDCRecInfoProducer::produce(), EcalTBH2TDCRecInfoProducer::produce(), ESRawToDigi::produce(), CaloTowersReCreator::produce(), QuarkoniaTrackSelector::produce(), L1RCTInputProducer::produce(), JetExtender::produce(), TCRecoTauProducer::produce(), TrackProducerWithSCAssociation::produce(), HIPixelClusterVtxProducer::produce(), EgammaHLTHybridClusterProducer::produce(), ShallowClustersProducer::produce(), GlobalCosmicMuonProducer::produce(), DTUnpackingModule::produce(), PFConversionProducer::produce(), ESZeroSuppressionProducer::produce(), HybridClusterProducer::produce(), ReducedESRecHitCollectionProducer::produce(), L3MuonCandidateProducerFromMuons::produce(), ElectronRecalibSuperClusterAssociator::produce(), TtSemiLepSignalSelMVAComputer::produce(), MuonSeedGenerator::produce(), CandidateTriggerObjectProducer::produce(), GlobalTrackQualityProducer::produce(), RPCPointProducer::produce(), SiStripClusterToDigiProducer::produce(), EcalZeroSuppressionProducer::produce(), ConvertObjectMapRecord::produce(), CSCTFPacker::produce(), FakeTBEventHeaderProducer::produce(), ConversionTrackMerger::produce(), TBHodoActiveVolumeRawInfoProducer::produce(), SoftPFElectronTagInfoProducer::produce(), PFTrackProducer::produce(), PixelVertexProducer::produce(), ReducedRecHitCollectionProducer::produce(), CSCTriggerPrimitivesProducer::produce(), cms::SimpleTrackListMerger::produce(), SETMuonSeedProducer::produce(), L1GctEmulator::produce(), SoftPFMuonTagInfoProducer::produce(), HBHENoiseFilterResultProducer::produce(), L1EmulBias::produce(), PFSimParticleProducer::produce(), PFProducer::produce(), AlCaGammaJetProducer::produce(), pat::PATCompositeCandidateProducer::produce(), L1ExtraParticlesProd::produce(), JetPlusTrackProducer::produce(), L1GlobalTriggerRecordProducer::produce(), VertexFromTrackProducer::produce(), pat::PATMuonProducer::produce(), cms::MuonTCMETValueMapProducer::produce(), L1Comparator::produce(), HcalHitSelection::produce(), EgammaHLTNxNClusterProducer::produce(), FFTJetPFPileupCleaner::produce(), RPCTrigger::produce(), FFTJetVertexAdder::produce(), CaloTowersMerger::produce(), PFTauSecondaryVertexProducer::produce(), pat::PATTriggerMatchEmbedder< PATObjectType >::produce(), L1GlobalTriggerEvmRawToDigi::produce(), PatJPsiProducer::produce(), ConditionDumperInEdm::produce(), PrimaryVertexProducer::produce(), MuIsolatorResultProducer< BT >::produce(), NuclearInteractionEDProducer::produce(), L1GTEvmDigiToRaw::produce(), PFTauTransverseImpactParameters::produce(), pat::PATPhotonProducer::produce(), pat::PATTriggerEventProducer::produce(), pat::PATElectronProducer::produce(), JetPlusTrackProducerAA::produce(), L1GlobalTriggerRawToDigi::produce(), L1GTDigiToRaw::produce(), L1GlobalTrigger::produce(), PFPhotonTranslator::produce(), pat::PATTriggerProducer::produce(), SecondaryVertexProducer::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(), EvtPlaneProducer::produce(), reco::CSCHaloDataProducer::produce(), reco::GlobalHaloDataProducer::produce(), CollHandle< EEDigiCollection >::read(), edm::service::RandomNumberGeneratorService::readFromEvent(), edm::service::RandomNumberGeneratorService::readFromLuminosityBlock(), AlcaBeamSpotManager::readLumi(), 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(), RunManager::resetGenParticleId(), RunManagerMT::resetGenParticleId(), L1RetrieveL1Extra::retrieveL1ExtraObjects(), L1GtUtils::retrieveL1GtTriggerMenuLite(), CutBasedElectronID::robustSelection(), RxCalculator::RxCalculator(), HLTLevel1GTSeed::seedsL1Extra(), HLTLevel1GTSeed::seedsL1TriggerObjectMaps(), pf2pat::PtMinPFCandidateSelectorDefinition::select(), HLTEventSelector::select(), CaloTauSelectorDefinition::select(), HIProtoTrackSelector::select(), PFTauSelectorDefinition::select(), FourVectorHLTOffline::selectElectrons(), MuScleFitMuonSelector::selectGenSimMuons(), BTagHLTOfflineSource::selectJets(), FourVectorHLTOffline::selectJets(), FourVectorHLTOffline::selectMet(), MuScleFitMuonSelector::selectMuons(), BTagHLTOfflineSource::selectMuons(), FourVectorHLTOffline::selectMuons(), MuScleFit::selectMuons(), FourVectorHLTOffline::selectPhotons(), MuScleFitMuonSelector::selectSimulatedMuons(), FourVectorHLTOffline::selectTaus(), L3MuonTrajectoryBuilder::setEvent(), edm::StreamerOutputModuleBase::setHltMask(), PFDisplacedVertexCandidateFinder::setInput(), PFDisplacedVertexFinder::setInput(), TrackingMonitor::setNclus(), PFDisplacedVertexHelper::setPrimaryVertex(), PFDisplacedVertexCandidateFinder::setPrimaryVertex(), MuonMaker::SetVars(), FWECALDetailViewBuilder::showSuperClusters(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), SiStripMonitorTrack::trackStudy(), GlobalCosmicMuonTrajectoryBuilder::trajectories(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), DTTrig::triggerReco(), edm::Event::triggerResultsByName(), MuonIdTruthInfo::truthMatchMuon(), and CosmicParametersDefinerForTP::vertex().

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

Definition at line 70 of file HandleBase.h.

References swap(), and groupFilesInBlocks::temp.

70  {
71  HandleBase temp(rhs);
72  this->swap(temp);
73  return *this;
74  }
void swap(HandleBase &other)
Definition: HandleBase.h:63
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:128
void const * product_
Definition: HandleBase.h:126
Provenance const* edm::HandleBase::provenance ( ) const
inline
void edm::HandleBase::swap ( HandleBase other)
inline

Definition at line 63 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().

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

Definition at line 111 of file HandleBase.h.

References whyFailedFactory_.

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

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

Definition at line 119 of file HandleBase.h.

References whyFailedFactory_.

119 { return whyFailedFactory_;}
std::shared_ptr< HandleExceptionFactory > whyFailedFactory_
Definition: HandleBase.h:128

Member Data Documentation

void const* edm::HandleBase::product_
private

Definition at line 126 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