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< CrossingFrame< PSimHit > > 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::edm::LazyGetter< SiStripCluster > > 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::GsfElectron > > 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::RefVector > 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::METCollection > 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::PFConversionCollection > edm::Handle< reco::PFDisplacedTrackerVertexCollection > edm::Handle< reco::PFDisplacedVertexCollection > edm::Handle< reco::PFJetCollection > edm::Handle< reco::PFMETCollection > edm::Handle< reco::PFRecHitCollection > edm::Handle< reco::PFRecTrackCollection > edm::Handle< reco::PFSimParticleCollection > edm::Handle< reco::PFTauCollection > edm::Handle< reco::PFTauDiscriminator > edm::Handle< reco::PFV0Collection > edm::Handle< reco::PhotonCollection > edm::Handle< reco::TrackCollection > edm::Handle< reco::TrackToTrackMap > edm::Handle< reco::VertexCollection > edm::Handle< reco::VertexCompositeCandidateCollection > edm::Handle< RPCDigiCollection > edm::Handle< RPCRecHitCollection > edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList > edm::Handle< SortedCollection< CaloTower > > edm::Handle< std::vector< int > > edm::Handle< std::vector< pat::Electron > > edm::Handle< std::vector< pat::Jet > > edm::Handle< std::vector< pat::MET > > edm::Handle< std::vector< pat::Muon > > 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(), PFHcalSuperClusterAlgo::doClustering(), PFClusterAlgo::doClustering(), 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(), Vispa.Views.PropertyView.PropertyView::updateContent(), and MeasurementTrackerSiStripRefGetterProducer::updateStrips().

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(), TopHLTDiMuonDQM::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(), EcalRawToRecHitRoI::Muon(), MuonCosmicCompatibilityFiller::muonTiming(), MuonCosmicCompatibilityFiller::nMuons(), TwoObjectVariable< LHS, lLHS, RHS, lRHS, Calculator >::objects(), EcalRawToRecHitRoI::OneCandCollection(), TtDilepLRSignalSelObservables::operator()(), TtSemiLRJetCombObservables::operator()(), TrackRefitter::produce(), GsfTrackRefitter::produce(), TrackProducer::produce(), TrackProducerWithSCAssociation::produce(), cms::SimpleTrackListMerger::produce(), cms::TrackListMerger::produce(), EcalRawToRecHitRoI::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(), HcalDigiMonitor::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(), pat::PATLostTracks::produce(), TkAlCaOverlapTagger::produce(), TopBottomClusterInfoProducer::produce(), HLTTrackClusterRemover::produce(), HLTTrackClusterRemoverNew::produce(), pat::PATPackedCandidateProducer::produce(), TrackClusterRemover::produce(), SeedClusterRemover::produce(), pat::PATPackedGenParticleProducer::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: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(), RecoTrackAccumulator::accumulate(), SiStripDigitizer::accumulate(), EcalDigiProducer::accumulateCaloHits(), SiStripQualityHotStripIdentifier::algoAnalyze(), SiStripMonitorTrack::AllClusters(), CastorHitAnalyzerImpl::analyze(), CastorDigiAnalyzerImpl::analyze(), CSCALCTDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), CSCWireDigiValidation::analyze(), RazorVarAnalyzer::analyze(), CSCTFAnalyzer::analyze(), CSCStripDigiValidation::analyze(), PFCandidateDQMAnalyzer::analyze(), PFJetDQMAnalyzer::analyze(), PFMETDQMAnalyzer::analyze(), HLTBJet::analyze(), CSCComparatorDigiValidation::analyze(), HLTTauDQML1Plotter::analyze(), EcalTBHodoscopeRawInfoDumper::analyze(), EcalTBTDCRawInfoDumper::analyze(), ESPedestalTask::analyze(), CMSDAS11DijetAnalyzer::analyze(), CMSDAS11DijetTestAnalyzer::analyze(), PlaybackRawDataProvider::analyze(), KVFTrackUpdate::analyze(), CaloTowerAnalyzer::analyze(), ESDcsInfoTask::analyze(), EventHeader::analyze(), HCALRecHitAnalyzer::analyze(), RPCRecHitProbability::analyze(), RPCMonitorDigi::analyze(), RECOVertex::analyze(), ElectronMcSignalValidator::analyze(), SUSYDQMAnalyzer::analyze(), EgammaBasicClusters::analyze(), ElectronGeneralAnalyzer::analyze(), HLTTauDQMOfflineSource::analyze(), DQMMessageLogger::analyze(), EgammaSuperClusters::analyze(), PatTrackAnalyzer::analyze(), PrimaryVertexMonitor::analyze(), EECosmicTask::analyze(), HLTAlCaMonEcalPhiSym::analyze(), StudyHLT::analyze(), SiPixelDaqInfo::analyze(), EBCosmicTask::analyze(), HiggsToZZ4LeptonsSkimEff::analyze(), HLTEventAnalyzerAOD::analyze(), HLTEventAnalyzerRAW::analyze(), ObjectCounter< C >::analyze(), AlCaElectronsTest::analyze(), SiStripMonitorDigi::analyze(), HLTMCtruth::analyze(), TtSemiLepSignalSelMVATrainer::analyze(), DQMHcalPhiSymAlCaReco::analyze(), CSCTFanalyzer::analyze(), HLTMonHcalIsoTrack::analyze(), HLTOniaSource::analyze(), IsoTrig::analyze(), EBClusterTask::analyze(), EEClusterTask::analyze(), CaloTowersValidation::analyze(), HcalDeadCellMonitor::analyze(), HcalSimHitStudy::analyze(), EEClusterTaskExtras::analyze(), TrackerHitAnalyzer::analyze(), EBClusterTaskExtras::analyze(), HLTMonBTagMuSource::analyze(), HLTMonBTagIPSource::analyze(), L1TdeGCT::analyze(), L1TDEMON::analyze(), EcalDumpRaw::analyze(), EcalPreshowerNoiseDistrib::analyze(), SimHitsValidationHcal::analyze(), TkAlCaRecoMonitor::analyze(), ElectronMcFakeValidator::analyze(), DQMSourceEleCalib::analyze(), HLTInspect::analyze(), RPCFEDIntegrity::analyze(), ElectronStudy::analyze(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::analyze(), DQMHcalDiJetsAlCaReco::analyze(), EcalPedOffset::analyze(), DQMLumiMonitor::analyze(), PixelVTXMonitor::analyze(), WenuPlots::analyze(), SiPixelEDAClient::analyze(), SiStripMonitorCluster::analyze(), DTSegment2DQuality::analyze(), DTSegment2DSLPhiQuality::analyze(), dEdxAnalyzer::analyze(), ZeePlots::analyze(), BPhysicsOniaDQM::analyze(), KVFTest::analyze(), HLTTrack::analyze(), VertexMonitor::analyze(), HcalDetDiagNoiseMonitor::analyze(), BxTiming::analyze(), L1RCTSaveInput::analyze(), DiMuonHistograms::analyze(), MuonRecoAnalyzer::analyze(), L1Scalers::analyze(), HTMHTAnalyzer::analyze(), L1TDTTF::analyze(), BTagPerformanceAnalyzerOnData::analyze(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::analyze(), KineExample::analyze(), GctTimingAnalyzer::analyze(), EwkDQM::analyze(), QcdPhotonsDQM::analyze(), HcalCorrPFCalculation::analyze(), EcalPreshowerDigisValidation::analyze(), MuonEnergyDepositAnalyzer::analyze(), MuonSeedsAnalyzer::analyze(), EcalPreshowerRecHitsValidation::analyze(), cms::MinBias::analyze(), HcalQLPlotAnal::analyze(), SiPixelHitEfficiencySource::analyze(), TrackSplittingMonitor::analyze(), NoiseRates::analyze(), JetTester::analyze(), HcalNoiseRates::analyze(), MuonKinVsEtaAnalyzer::analyze(), EcalBarrelDigisValidation::analyze(), EcalEndcapDigisValidation::analyze(), ZDCMonitorModule::analyze(), EBRecoSummary::analyze(), EERecoSummary::analyze(), L1TDTTPG::analyze(), DTResolutionAnalysisTask::analyze(), HLTAnalyzer::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalEndcapRecHitsValidation::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), ESRecoSummary::analyze(), EfficiencyAnalyzer::analyze(), SiPixelTrackResidualSource::analyze(), ContainmentCorrectionAnalyzer::analyze(), EcalPreshowerSimHitsValidation::analyze(), L1TCSCTPG::analyze(), DTSegmentAnalysisTask::analyze(), SiPixelHLTSource::analyze(), BTagPerformanceAnalyzerMC::analyze(), testChannel::analyze(), myJetAna::analyze(), SiPixelDigiSource::analyze(), DTSegment4DQuality::analyze(), HLTAlCaMonPi0::analyze(), GeneralHLTOffline::analyze(), L1TGMT::analyze(), L1TRPCTF::analyze(), METTester::analyze(), DQMSourcePi0::analyze(), L1TRate::analyze(), HLTInclusiveVBFSource::analyze(), MuCorrMETAnalyzer::analyze(), TcMETAnalyzer::analyze(), EcalSimHitsValidation::analyze(), TrackingMonitor::analyze(), EcalRecHitsValidation::analyze(), HeavyFlavorValidation::analyze(), HiggsDQM::analyze(), SiPixelRawDataErrorSource::analyze(), HLTMon::analyze(), L1GtTrigReport::analyze(), L1TRate_Offline::analyze(), DQMExample_Step1::analyze(), DTRecHitQuality::analyze(), LogMessageMonitor::analyze(), JetMETAnalyzer::analyze(), HcalRecHitsValidation::analyze(), L1TGT::analyze(), EcalDigisValidation::analyze(), MuonRecoOneHLT::analyze(), DTLocalTriggerBaseTask::analyze(), TTbar_GenLepAnalyzer::analyze(), BTagHLTOfflineSource::analyze(), GlobalDigisHistogrammer::analyze(), GlobalRecHitsHistogrammer::analyze(), MCVerticesAnalyzer::analyze(), PhotonValidator::analyze(), SiStripFEDMonitorPlugin::analyze(), HLTAlCa::analyze(), TTbar_Kinematics::analyze(), HLTHeavyIon::analyze(), CaloMETAnalyzer::analyze(), L1TCSCTF::analyze(), PFMETAnalyzer::analyze(), L1TdeCSCTF::analyze(), HLTEgamma::analyze(), HLTMuonPlotter::analyze(), L1TRPCTPG::analyze(), JetMETHLTOfflineSource::analyze(), METAnalyzer::analyze(), HLTJets::analyze(), HLTMuonMatchAndPlot::analyze(), GenPurposeSkimmerData::analyze(), HLTMuon::analyze(), EmDQM::analyze(), HLTInfo::analyze(), HcalDigiMonitor::analyze(), MuonIsolationDQM::analyze(), EcalCosmicsHists::analyze(), PrimaryVertexAnalyzer::analyze(), L1TCompare::analyze(), EcalMixingModuleValidation::analyze(), L1TRCT::analyze(), RPCTTUMonitor::analyze(), HcalTimingMonitorModule::analyze(), GlobalHitsHistogrammer::analyze(), FourVectorHLTOnline::analyze(), L1TSync::analyze(), DTLocalTriggerTask::analyze(), EmDQMReco::analyze(), SiPixelMuonHLT::analyze(), IsolatedGenParticles::analyze(), SiStripMonitorMuonHLT::analyze(), IsolatedTracksCone::analyze(), L1TSync_Offline::analyze(), RPCEfficiency::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagLEDMonitor::analyze(), PhotonAnalyzer::analyze(), L1TBPTX::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), FourVectorHLTOffline::analyze(), L1TdeRCT::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(), edm::service::RandomNumberGeneratorService::backwardCompatibilityRead(), 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(), 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(), PFClusterAlgo::createRecHitRef(), PFRecHitProducerPS::createRecHits(), PFHCALDualTimeRecHitProducer::createRecHits(), PFRecHitProducerHCAL::createRecHits(), PFRecHitProducerHO::createRecHits(), PFRecHitProducerECAL::createRecHits(), CxCalculator::CxCalculator(), muonisolation::PixelTrackExtractor::deposit(), muonisolation::TrackExtractor::deposit(), egammaisolation::EgammaTrackExtractor::deposit(), EcalCosmicsHists::determineTriggers(), RPCTTUMonitor::discriminateGMT(), HLTTauRefProducer::doElectrons(), DTHitAssociator::DTHitAssociator(), InvRingCalib::duringLoop(), EcalEleCalibLooper::duringLoop(), spr::eECALmatrix(), EcalRawToRecHitRoI::Egamma(), DQMLumiMonitor::endLuminosityBlock(), GlobalHitsProdHistStripper::endRun(), SimpleValueVariable< TYPE >::eval(), SimpleValueVectorVariable< TYPE >::eval(), L1GtPatternGenerator::extractGlobalTriggerData(), extractRecordData(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), DigiVtxPosCorrHistogramMaker::fill(), DigiLumiCorrHistogramMaker::fill(), VertexHistogramMaker::fill(), DigiBXCorrHistogramMaker< T >::fill(), TopHLTSingleLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::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< l1extra::L1EtMissParticleCollection >::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(), 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(), ZToMuMuSelector::filter(), DetectorStateFilter::filter(), DetStatus::filter(), CandCollectionExistFilter::filter(), JetMETDQMDCSFilter::filter(), myFilter::filter(), ClusterMultiplicityFilter::filter(), ElectronIsolatorFromEffectiveArea::filter(), HLTHcalLaserFilter::filter(), HBHENoiseFilter::filter(), HiggsToWW2LeptonsSkim::filter(), ProbeTreeProducer::filter(), HeavyChHiggsToTauNuSkim::filter(), HiggsToZZ4LeptonsPreFilter::filter(), HiggsTo2GammaSkim::filter(), EgammaProbeSelector::filter(), GenLeadTrackFilter::filter(), HiggsToZZ4LeptonsSkim::filter(), MuScleFitGenFilter::filter(), BeamSplash::filter(), ECALActivity::filter(), PhysDecl::filter(), EcalExclusiveTrigFilter::filter(), PFTauVertexSelector::filter(), L1GtBeamModeFilter::filter(), EcalSkim::filter(), EmptyEventsFilter::filter(), HLTPrescaler::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHFFilter2012::filter(), HLTEcalResonanceFilter::filter(), PF_PU_AssoMapAlgos::FindAssociation(), 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(), 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(), SiStripDCSStatus::initialise(), HLTHiggsSubAnalysis::initobjects(), FWPFCandidateWithHitsProxyBuilder::initPFRecHitsCollections(), PrescaleWeightProvider::initRun(), cms::MuonTCMETValueMapProducer::isGoodMuon(), cms::MuonTCMETValueMapProducer::isGoodTrack(), TCMETAlgo::isGoodTrack(), BTagHLTOfflineSource::isVBTFMuon(), FourVectorHLTOffline::isVBTFMuon(), EcalRawToRecHitRoI::Jet(), JetPlusTrackCorrector::jtaUsingEventData(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), L1GtUtils::l1Results(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::loopOnTracks(), main(), RPCDcsInfo::makeDcsInfo(), RPCRecHitProbability::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(), PFBlockAlgo::muAssocToTrack(), AcceptJet::operator()(), TtDilepLRSignalSelObservables::operator()(), TtSemiLRJetCombObservables::operator()(), CosmicTrackingParticleSelector::operator()(), TSGFromPropagation::passSelection(), FastTSGFromPropagation::passSelection(), FWFFService::postBeginRun(), EveService::postBeginRun(), FWPathsPopup::postProcessEvent(), QuickTrackAssociatorByHits::prepareCluster2TPMap(), L1GtUtils::prescaleFactorSetIndex(), PrescaleWeightProvider::prescaleWeight(), L1Comparator::process(), EETriggerTowerTask::processDigis(), EBTriggerTowerTask::processDigis(), HIBestVertexProducer::produce(), CaloRecHitCandidateProducer::produce(), HcalTrigPrimDigiProducer::produce(), ESRawToDigi::produce(), EcalTBHodoscopeRecInfoProducer::produce(), EcalTBH2TDCRecInfoProducer::produce(), EcalTBTDCRecInfoProducer::produce(), CaloTowersReCreator::produce(), ShallowClustersProducer::produce(), QuarkoniaTrackSelector::produce(), TrackProducerWithSCAssociation::produce(), L1RCTInputProducer::produce(), JetExtender::produce(), PFConversionProducer::produce(), TCRecoTauProducer::produce(), HIPixelClusterVtxProducer::produce(), DTUnpackingModule::produce(), GlobalCosmicMuonProducer::produce(), EgammaHLTHybridClusterProducer::produce(), ESZeroSuppressionProducer::produce(), CSCTFPacker::produce(), HybridClusterProducer::produce(), ReducedESRecHitCollectionProducer::produce(), L3MuonCandidateProducerFromMuons::produce(), TtSemiLepSignalSelMVAComputer::produce(), ElectronRecalibSuperClusterAssociator::produce(), CandidateTriggerObjectProducer::produce(), MuonSeedGenerator::produce(), ConvertObjectMapRecord::produce(), GlobalTrackQualityProducer::produce(), EcalZeroSuppressionProducer::produce(), RPCPointProducer::produce(), PFTrackProducer::produce(), SiStripClusterToDigiProducer::produce(), PFProducer::produce(), PixelVertexProducer::produce(), FakeTBEventHeaderProducer::produce(), CSCTriggerPrimitivesProducer::produce(), ConversionTrackMerger::produce(), TBHodoActiveVolumeRawInfoProducer::produce(), SoftPFElectronTagInfoProducer::produce(), ReducedRecHitCollectionProducer::produce(), cms::SimpleTrackListMerger::produce(), VertexFromTrackProducer::produce(), SiStripRawToClustersRoI::produce(), SETMuonSeedProducer::produce(), JetPlusTrackProducer::produce(), SoftPFMuonTagInfoProducer::produce(), L1GctEmulator::produce(), HBHENoiseFilterResultProducer::produce(), PFSimParticleProducer::produce(), AlCaGammaJetProducer::produce(), pat::PATCompositeCandidateProducer::produce(), L1EmulBias::produce(), L1ExtraParticlesProd::produce(), pat::PATMuonProducer::produce(), L1GlobalTriggerRecordProducer::produce(), L1Comparator::produce(), cms::MuonTCMETValueMapProducer::produce(), EgammaHLTNxNClusterProducer::produce(), HcalHitSelection::produce(), FFTJetVertexAdder::produce(), RPCTrigger::produce(), FFTJetPFPileupCleaner::produce(), CaloTowersMerger::produce(), PFTauSecondaryVertexProducer::produce(), pat::PATTriggerMatchEmbedder< PATObjectType >::produce(), ConditionDumperInEdm::produce(), PatJPsiProducer::produce(), JetPlusTrackProducerAA::produce(), L1GTEvmDigiToRaw::produce(), PrimaryVertexProducer::produce(), NuclearInteractionEDProducer::produce(), L1GlobalTriggerEvmRawToDigi::produce(), PFTauTransverseImpactParameters::produce(), MuIsolatorResultProducer< BT >::produce(), pat::PATTriggerEventProducer::produce(), L1GTDigiToRaw::produce(), pat::PATElectronProducer::produce(), pat::PATPhotonProducer::produce(), L1GlobalTrigger::produce(), L1GlobalTriggerRawToDigi::produce(), PFPhotonTranslator::produce(), pat::PATTriggerProducer::produce(), SecondaryVertexProducer::produce(), EgammaHLTGsfTrackVarProducer::produce(), PFTauPrimaryVertexProducer::produce(), MuonIdProducer::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(), L1MuGMTPSB::receiveData(), L1GlobalTriggerPSB::receiveGctObjectData(), L1GlobalTriggerGTL::receiveGmtObjectData(), L1GlobalTriggerPSB::receiveTechnicalTriggers(), PFAlgo::reconstructParticles(), MuonPFAnalyzer::recoToGenMatch(), GlobalTrackingRegionProducerFromBeamSpot::regions(), GlobalTrackingRegionWithVerticesProducer::regions(), CosmicRegionalSeedGenerator::regions(), TrackingRegionsFromBeamSpotAndL2Tau::regions(), HITrackingRegionForPrimaryVtxProducer::regions(), CandidateSeededTrackingRegionsProducer::regions(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::rejectTrack(), RunManager::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(), TcMETAnalyzer::selectHighPtJetEvent(), MuCorrMETAnalyzer::selectHighPtJetEvent(), PFMETAnalyzer::selectHighPtJetEvent(), METAnalyzer::selectHighPtJetEvent(), CaloMETAnalyzer::selectHighPtJetEvent(), BTagHLTOfflineSource::selectJets(), FourVectorHLTOffline::selectJets(), TcMETAnalyzer::selectLowPtJetEvent(), MuCorrMETAnalyzer::selectLowPtJetEvent(), PFMETAnalyzer::selectLowPtJetEvent(), METAnalyzer::selectLowPtJetEvent(), CaloMETAnalyzer::selectLowPtJetEvent(), 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(), 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