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< 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::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 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::LuminosityBlockBase::getByLabel(), edm::Run::getByLabel(), edm::Event::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(), TopDiLeptonDQM::analyze(), SiPixelTrackResidualSource::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(), AdHocNTupler::fill(), MuonIdProducer::fillGlbQuality(), LogErrorFilter::filter(), 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().

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(), edm::ThinningProducer< Collection, Selector >::produce(), HLTTrackClusterRemoverNew::produce(), pat::PATPackedCandidateProducer::produce(), HITrackClusterRemover::produce(), SeedClusterRemover::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:79
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(), cms::SiPixelDigitizer::accumulate(), EcalDigiProducer::accumulateCaloHits(), RecoTrackAccumulator::accumulateEvent(), SiStripQualityHotStripIdentifier::algoAnalyze(), SiStripMonitorTrack::AllClusters(), CastorDigiAnalyzerImpl::analyze(), CastorHitAnalyzerImpl::analyze(), RazorVarAnalyzer::analyze(), CSCALCTDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), CSCStripDigiValidation::analyze(), CSCWireDigiValidation::analyze(), HLTBJet::analyze(), CSCComparatorDigiValidation::analyze(), PFCandidateDQMAnalyzer::analyze(), PFJetDQMAnalyzer::analyze(), PFMETDQMAnalyzer::analyze(), PFMuonDQMAnalyzer::analyze(), ESRecoSummary::analyze(), HLTTauDQML1Plotter::analyze(), EcalTBTDCRawInfoDumper::analyze(), EcalTBHodoscopeRawInfoDumper::analyze(), CMSDAS11DijetAnalyzer::analyze(), CMSDAS11DijetTestAnalyzer::analyze(), ESPedestalTask::analyze(), PlaybackRawDataProvider::analyze(), KVFTrackUpdate::analyze(), BTagPerformanceAnalyzerOnData::analyze(), EventHeader::analyze(), ESDcsInfoTask::analyze(), RPCRecHitProbability::analyze(), RECOVertex::analyze(), ElectronMcSignalValidator::analyze(), CaloTowerAnalyzer::analyze(), BTagPerformanceAnalyzerMC::analyze(), ElectronGeneralAnalyzer::analyze(), HCALRecHitAnalyzer::analyze(), SUSYDQMAnalyzer::analyze(), DQMMessageLogger::analyze(), RPCMonitorDigi::analyze(), EgammaBasicClusters::analyze(), PatTrackAnalyzer::analyze(), PrimaryVertexMonitor::analyze(), EgammaSuperClusters::analyze(), HLTAlCaMonEcalPhiSym::analyze(), HLTTauDQMOfflineSource::analyze(), HLTEventAnalyzerAOD::analyze(), HLTEventAnalyzerRAW::analyze(), DQMHcalPhiSymAlCaReco::analyze(), HLTMonHcalIsoTrack::analyze(), ObjectCounter< C >::analyze(), CSCTFAnalyzer::analyze(), HLTMCtruth::analyze(), AlCaElectronsTest::analyze(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::analyze(), RPCFEDIntegrity::analyze(), TtSemiLepSignalSelMVATrainer::analyze(), CaloTowersValidation::analyze(), SimHitsValidationHcal::analyze(), SUSY_HLT_InclusiveHT::analyze(), CSCTFanalyzer::analyze(), HLTOniaSource::analyze(), SiStripMonitorDigi::analyze(), HcalDeadCellMonitor::analyze(), DQMHcalDiJetsAlCaReco::analyze(), HLTMonBTagMuSource::analyze(), HLTMonBTagIPSource::analyze(), L1TdeGCT::analyze(), L1TDEMON::analyze(), HLTInspect::analyze(), HiggsToZZ4LeptonsSkimEff::analyze(), EcalPreshowerNoiseDistrib::analyze(), HcalSimHitStudy::analyze(), ElectronMcFakeValidator::analyze(), SUSY_HLT_PhotonHT::analyze(), TrackerHitAnalyzer::analyze(), TkAlCaRecoMonitor::analyze(), EcalPileUpDepMonitor::analyze(), MuonRecoAnalyzer::analyze(), BPhysicsOniaDQM::analyze(), EcalDumpRaw::analyze(), PixelVTXMonitor::analyze(), ElectronStudy::analyze(), EcalPedOffset::analyze(), DQMLumiMonitor::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), SUSY_HLT_Muon_BJet::analyze(), DQMSourceEleCalib::analyze(), MuonSeedsAnalyzer::analyze(), QcdPhotonsDQM::analyze(), KVFTest::analyze(), HLTTrack::analyze(), VertexMonitor::analyze(), HcalDetDiagNoiseMonitor::analyze(), HTMHTAnalyzer::analyze(), L1RCTSaveInput::analyze(), DiMuonHistograms::analyze(), MuonEnergyDepositAnalyzer::analyze(), DTSegment2DQuality::analyze(), SiStripMonitorCluster::analyze(), dEdxAnalyzer::analyze(), MuonKinVsEtaAnalyzer::analyze(), BxTiming::analyze(), DTSegment2DSLPhiQuality::analyze(), SUSY_HLT_DoubleEle_Hadronic::analyze(), SUSY_HLT_Electron_BJet::analyze(), L1Scalers::analyze(), L1TDTTF::analyze(), KineExample::analyze(), GctTimingAnalyzer::analyze(), ZeePlots::analyze(), EwkDQM::analyze(), HcalCorrPFCalculation::analyze(), EcalPreshowerDigisValidation::analyze(), EfficiencyAnalyzer::analyze(), WenuPlots::analyze(), StudyHLT::analyze(), EcalPreshowerRecHitsValidation::analyze(), SUSY_HLT_alphaT::analyze(), cms::MinBias::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), HcalQLPlotAnal::analyze(), SUSY_HLT_DiJet_MET::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), JetTester::analyze(), NoiseRates::analyze(), EcalBarrelDigisValidation::analyze(), EcalEndcapDigisValidation::analyze(), L1TDTTPG::analyze(), HLTAnalyzer::analyze(), SiPixelHitEfficiencySource::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalEndcapRecHitsValidation::analyze(), DTResolutionAnalysisTask::analyze(), HcalNoiseRates::analyze(), L1TRCT::analyze(), EcalBarrelSimHitsValidation::analyze(), HLTAlCaMonPi0::analyze(), EcalEndcapSimHitsValidation::analyze(), EcalPreshowerSimHitsValidation::analyze(), ZDCMonitorModule::analyze(), TrackSplittingMonitor::analyze(), L1TCSCTPG::analyze(), DTSegmentAnalysisTask::analyze(), testChannel::analyze(), myJetAna::analyze(), SiPixelHLTSource::analyze(), SiPixelTrackResidualSource::analyze(), DTSegment4DQuality::analyze(), L1TGMT::analyze(), L1TRPCTF::analyze(), SiPixelDigiSource::analyze(), HLTInclusiveVBFSource::analyze(), L1TRate::analyze(), HiggsDQM::analyze(), MuonRecoOneHLT::analyze(), GeneralHLTOffline::analyze(), METTester::analyze(), EcalSimHitsValidation::analyze(), DQMSourcePi0::analyze(), ContainmentCorrectionAnalyzer::analyze(), TrackingMonitor::analyze(), EcalRecHitsValidation::analyze(), RPCTTUMonitor::analyze(), TTbar_GenLepAnalyzer::analyze(), HLTMon::analyze(), L1TRate_Offline::analyze(), DQMExample_Step1::analyze(), SiPixelRawDataErrorSource::analyze(), HeavyFlavorValidation::analyze(), SUSY_HLT_SingleLepton::analyze(), l1t::GtInputDump::analyze(), HcalRecHitsValidation::analyze(), DTRecHitQuality::analyze(), HigPhotonJetHLTOfflineSource::analyze(), HLTMuonMatchAndPlotContainer::analyze(), EcalDigisValidation::analyze(), L1GtTrigReport::analyze(), LogMessageMonitor::analyze(), TTbar_Kinematics::analyze(), l1t::GtRecordDump::analyze(), DTLocalTriggerBaseTask::analyze(), L1TdeRCT::analyze(), MCVerticesAnalyzer::analyze(), DTChamberEfficiency::analyze(), DTDataIntegrityTask::analyze(), GlobalDigisHistogrammer::analyze(), GlobalRecHitsHistogrammer::analyze(), SiStripFEDMonitorPlugin::analyze(), L1TGT::analyze(), HLTAlCa::analyze(), HLTHeavyIon::analyze(), L1TCSCTF::analyze(), PhotonValidator::analyze(), L1TdeCSCTF::analyze(), HLTEgamma::analyze(), HLTMuonPlotter::analyze(), MuonIsolationDQM::analyze(), L1TRPCTPG::analyze(), JetMETHLTOfflineSource::analyze(), HLTJets::analyze(), IsoTrig::analyze(), HLTMuon::analyze(), HLTHiggsSubAnalysis::analyze(), PrimaryVertexAnalyzer::analyze(), HcalDigiMonitor::analyze(), HLTInfo::analyze(), EmDQM::analyze(), EcalCosmicsHists::analyze(), GenPurposeSkimmerData::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), JetAnalyzer::analyze(), L1TCompare::analyze(), HcalTimingMonitorModule::analyze(), GlobalHitsHistogrammer::analyze(), EcalMixingModuleValidation::analyze(), L1TSync::analyze(), DTLocalTriggerTask::analyze(), EmDQMReco::analyze(), SiPixelMuonHLT::analyze(), IsolatedGenParticles::analyze(), METAnalyzer::analyze(), SiStripMonitorMuonHLT::analyze(), RPCEfficiency::analyze(), IsolatedTracksCone::analyze(), L1TSync_Offline::analyze(), PhotonAnalyzer::analyze(), HcalDetDiagTimingMonitor::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(), 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(), SiStripAnalyser::checkTrackerFEDs(), L1GtDataEmulAnalyzer::compareDaqRecord(), L1GtHwValidation::compareDaqRecord(), L1GtHwValidation::compareEvmRecord(), HLTBitComputer::compute(), HLTDoubletDZ< T1, T2 >::computeDZ(), TCMETAlgo::correct_MET_for_Tracks(), 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(), 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(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), GlobalHitsProdHist::fillMuon(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProducer::fillMuon(), GlobalDigisProducer::fillMuon(), GlobalDigisAnalyzer::fillMuon(), TrackDetectorAssociator::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), GlobalRecHitsProducer::fillMuon(), MuonIdProducer::fillMuonId(), HLTOniaSource::fillOniaTriggerMEs(), 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(), CandCollectionExistFilter::filter(), ZToMuMuSelector::filter(), myFilter::filter(), ClusterMultiplicityFilter::filter(), ElectronIsolatorFromEffectiveArea::filter(), HLTHcalLaserFilter::filter(), JetMETDQMDCSFilter::filter(), HBHENoiseFilter::filter(), HiggsToWW2LeptonsSkim::filter(), ProbeTreeProducer::filter(), HiggsTo2GammaSkim::filter(), EgammaProbeSelector::filter(), GenLeadTrackFilter::filter(), HeavyChHiggsToTauNuSkim::filter(), HiggsToZZ4LeptonsPreFilter::filter(), PhysDecl::filter(), MuScleFitGenFilter::filter(), BeamSplash::filter(), ECALActivity::filter(), HiggsToZZ4LeptonsSkim::filter(), EcalExclusiveTrigFilter::filter(), L1GtBeamModeFilter::filter(), EcalSkim::filter(), EmptyEventsFilter::filter(), PFTauVertexSelector::filter(), HLTPrescaler::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHBHEHFFilter2012::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(), 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(), HLTInclusiveVBFSource::isHLTPathAccepted(), 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(), HIBestVertexProducer::produce(), HcalTrigPrimDigiProducer::produce(), TrackRefitter::produce(), ESRawToDigi::produce(), EcalTBH2TDCRecInfoProducer::produce(), EcalTBTDCRecInfoProducer::produce(), EcalTBHodoscopeRecInfoProducer::produce(), CaloTowersReCreator::produce(), QuarkoniaTrackSelector::produce(), JetExtender::produce(), L1RCTInputProducer::produce(), TrackProducerWithSCAssociation::produce(), EgammaHLTHybridClusterProducer::produce(), ShallowClustersProducer::produce(), GlobalCosmicMuonProducer::produce(), HIPixelClusterVtxProducer::produce(), DTUnpackingModule::produce(), ESZeroSuppressionProducer::produce(), HybridClusterProducer::produce(), PFConversionProducer::produce(), IsolatedEcalPixelTrackCandidateProducer::produce(), TtSemiLepSignalSelMVAComputer::produce(), ReducedESRecHitCollectionProducer::produce(), ElectronRecalibSuperClusterAssociator::produce(), L3MuonCandidateProducerFromMuons::produce(), MuonSeedGenerator::produce(), CandidateTriggerObjectProducer::produce(), RPCPointProducer::produce(), GlobalTrackQualityProducer::produce(), EcalZeroSuppressionProducer::produce(), SiStripClusterToDigiProducer::produce(), ConvertObjectMapRecord::produce(), FakeTBEventHeaderProducer::produce(), SimpleTrackListMerger::produce(), ConversionTrackMerger::produce(), CSCTFPacker::produce(), TBHodoActiveVolumeRawInfoProducer::produce(), SoftPFElectronTagInfoProducer::produce(), PFTrackProducer::produce(), PixelVertexProducer::produce(), CSCTriggerPrimitivesProducer::produce(), ReducedRecHitCollectionProducer::produce(), SETMuonSeedProducer::produce(), L1GctEmulator::produce(), GenFilterEfficiencyProducer::produce(), SoftPFMuonTagInfoProducer::produce(), PFSimParticleProducer::produce(), L1EmulBias::produce(), HBHENoiseFilterResultProducer::produce(), AlCaGammaJetProducer::produce(), JetPlusTrackProducer::produce(), pat::PATCompositeCandidateProducer::produce(), PFProducer::produce(), L1ExtraParticlesProd::produce(), L1GlobalTriggerRecordProducer::produce(), cms::MuonTCMETValueMapProducer::produce(), pat::PATMuonProducer::produce(), L1Comparator::produce(), HcalHitSelection::produce(), VertexFromTrackProducer::produce(), EgammaHLTNxNClusterProducer::produce(), FFTJetVertexAdder::produce(), FFTJetPFPileupCleaner::produce(), RPCTrigger::produce(), CaloTowersMerger::produce(), PFTauSecondaryVertexProducer::produce(), pat::PATTriggerMatchEmbedder< PATObjectType >::produce(), PatJPsiProducer::produce(), L1GlobalTriggerEvmRawToDigi::produce(), ConditionDumperInEdm::produce(), MuIsolatorResultProducer< BT >::produce(), NuclearInteractionEDProducer::produce(), L1GTEvmDigiToRaw::produce(), PFTauTransverseImpactParameters::produce(), PrimaryVertexProducer::produce(), pat::PATPhotonProducer::produce(), JetPlusTrackProducerAA::produce(), pat::PATTriggerEventProducer::produce(), pat::PATElectronProducer::produce(), L1GlobalTriggerRawToDigi::produce(), L1GTDigiToRaw::produce(), L1GlobalTrigger::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().

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(), 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