CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes
edm::ESHandleBase Class Reference

#include <ESHandle.h>

Inheritance diagram for edm::ESHandleBase:
edm::ESHandle< T > edm::ESTransientHandle< T > edm::ESHandle< Alignments > edm::ESHandle< CaloGeometry > edm::ESHandle< CaloSubdetectorGeometry > edm::ESHandle< CaloTopology > edm::ESHandle< CaloTowerConstituentsMap > edm::ESHandle< CaloTPGTranscoder > edm::ESHandle< CentralityTable > edm::ESHandle< Chi2MeasurementEstimatorBase > edm::ESHandle< ClusterShapeHitFilter > edm::ESHandle< CSCBadChambers > edm::ESHandle< CSCBadStrips > edm::ESHandle< CSCBadWires > edm::ESHandle< CSCChamberTimeCorrections > edm::ESHandle< CSCChannelMapperBase > edm::ESHandle< CSCDBChipSpeedCorrection > edm::ESHandle< CSCDBCrosstalk > edm::ESHandle< CSCDBGains > edm::ESHandle< CSCDBGasGainCorrection > edm::ESHandle< CSCDBNoiseMatrix > edm::ESHandle< CSCDBPedestals > edm::ESHandle< CSCGeometry > edm::ESHandle< CSCIndexerBase > edm::ESHandle< CTPPSBeamParameters > edm::ESHandle< CTPPSGeometry > edm::ESHandle< DTGeometry > edm::ESHandle< DTMtime > edm::ESHandle< DTReadOutMapping > edm::ESHandle< DTT0 > edm::ESHandle< DTTtrig > edm::ESHandle< EcalADCToGeVConstant > edm::ESHandle< EcalCondObjectContainer > edm::ESHandle< EcalElectronicsMapping > edm::ESHandle< EcalFunParams > edm::ESHandle< EcalLaserDbService > edm::ESHandle< EcalSampleMask > edm::ESHandle< EcalSamplesCorrelation > edm::ESHandle< EcalSeverityLevelAlgo > edm::ESHandle< EcalTBWeights > edm::ESHandle< EcalTimeBiasCorrections > edm::ESHandle< EcalTimeOffsetConstant > edm::ESHandle< EcalTPGStripStatus > edm::ESHandle< EcalTPGTowerStatus > edm::ESHandle< EcalTrigTowerConstituentsMap > edm::ESHandle< ESCondObjectContainer > edm::ESHandle< ESEEIntercalibConstants > edm::ESHandle< ESGain > edm::ESHandle< ESMIPToGeVConstant > edm::ESHandle< ESMissingEnergyCalibration > edm::ESHandle< ESRecHitRatioCuts > edm::ESHandle< ESThresholds > edm::ESHandle< ESTimeSampleWeights > edm::ESHandle< GBRForest > edm::ESHandle< GEMGeometry > edm::ESHandle< GeometricDet > edm::ESHandle< GeometricSearchTracker > edm::ESHandle< GlobalTrackingGeometry > edm::ESHandle< HcalChannelQuality > edm::ESHandle< HcalDbService > edm::ESHandle< HcalSeverityLevelComputer > edm::ESHandle< HcalTopology > edm::ESHandle< HepPDT::ParticleDataTable > edm::ESHandle< HGCalTriggerGeometryBase > edm::ESHandle< L1MuDTEtaPatternLut > edm::ESHandle< L1MuDTExtLut > edm::ESHandle< L1MuDTPhiLut > edm::ESHandle< L1MuDTPtaLut > edm::ESHandle< L1MuDTQualPatternLut > edm::ESHandle< L1MuDTTFMasks > edm::ESHandle< L1MuDTTFParameters > edm::ESHandle< L1TMuonBarrelParams > edm::ESHandle< L1TMuonEndCapForest > edm::ESHandle< L1TMuonEndCapParams > edm::ESHandle< L1TTwinMuxParams > edm::ESHandle< LHCInfo > edm::ESHandle< LHCInterpolatedOpticalFunctionsSetCollection > edm::ESHandle< MagneticField > edm::ESHandle< ME0Geometry > edm::ESHandle< MeasurementTracker > edm::ESHandle< MTDDetLayerGeometry > edm::ESHandle< MuonDetLayerGeometry > edm::ESHandle< MuScleFitDBobject > edm::ESHandle< NavigationSchool > edm::ESHandle< ParticleDataTable > edm::ESHandle< PixelFEDChannelCollectionMap > edm::ESHandle< Propagator > edm::ESHandle< RPCAMCLinkMap > edm::ESHandle< RPCGeometry > edm::ESHandle< RPCLBLinkMap > edm::ESHandle< SiPhase2OuterTrackerLorentzAngle > edm::ESHandle< SiPixelCalibConfiguration > edm::ESHandle< SiPixelCPEGenericErrorParm > edm::ESHandle< SiPixelDynamicInefficiency > edm::ESHandle< SiPixelFedCablingMap > edm::ESHandle< SiPixelGainCalibration > edm::ESHandle< SiPixelGainCalibrationForHLT > edm::ESHandle< SiPixelGainCalibrationOffline > edm::ESHandle< SiPixelLorentzAngle > edm::ESHandle< SiPixelQuality > edm::ESHandle< SiPixelQualityProbabilities > edm::ESHandle< SiStripApvGain > edm::ESHandle< SiStripBackPlaneCorrection > edm::ESHandle< SiStripDetCabling > edm::ESHandle< SiStripDetVOff > edm::ESHandle< SiStripFedCabling > edm::ESHandle< SiStripGain > edm::ESHandle< SiStripLorentzAngle > edm::ESHandle< SiStripNoises > edm::ESHandle< SiStripPedestals > edm::ESHandle< SiStripQuality > edm::ESHandle< SiStripRegionCabling > edm::ESHandle< SiStripThreshold > edm::ESHandle< thePayloadObject > edm::ESHandle< TotemAnalysisMask > edm::ESHandle< TrackerGeometry > edm::ESHandle< TrackerTopology > edm::ESHandle< TrajectoryFitter > edm::ESHandle< TrajectorySmoother > edm::ESHandle< TrajectoryStateUpdator > edm::ESHandle< TransientTrackBuilder > edm::ESHandle< TransientTrackingRecHitBuilder > edm::ESHandle< trigger::HLTPrescaleTableCond > edm::ESHandle< TTClusterAlgorithm< T > > edm::ESHandle< TTStubAlgorithm< T > >

Public Member Functions

edm::eventsetup::ComponentDescription const * description () const
 
 ESHandleBase ()=default
 
 ESHandleBase (std::shared_ptr< ESHandleExceptionFactory > &&iWhyFailed)
 Used when the attempt to get the data failed. More...
 
 ESHandleBase (void const *iData, edm::eventsetup::ComponentDescription const *desc)
 
bool failedToGet () const
 
bool isValid () const
 
 operator bool () const
 
bool operator! () const
 
void swap (ESHandleBase &iOther)
 
std::shared_ptr< ESHandleExceptionFactory > const & whyFailedFactory () const
 

Protected Member Functions

void const * productStorage () const
 

Private Attributes

void const * data_ {nullptr}
 
edm::eventsetup::ComponentDescription const * description_ {nullptr}
 
std::shared_ptr< ESHandleExceptionFactorywhyFailedFactory_ {nullptr}
 

Detailed Description

Definition at line 33 of file ESHandle.h.

Constructor & Destructor Documentation

◆ ESHandleBase() [1/3]

edm::ESHandleBase::ESHandleBase ( )
default

◆ ESHandleBase() [2/3]

edm::ESHandleBase::ESHandleBase ( void const *  iData,
edm::eventsetup::ComponentDescription const *  desc 
)
inline

Definition at line 36 of file ESHandle.h.

37  : data_(iData), description_(desc) {}

◆ ESHandleBase() [3/3]

edm::ESHandleBase::ESHandleBase ( std::shared_ptr< ESHandleExceptionFactory > &&  iWhyFailed)
inline

Used when the attempt to get the data failed.

Definition at line 40 of file ESHandle.h.

40 : whyFailedFactory_(std::move(iWhyFailed)) {}

Member Function Documentation

◆ description()

eventsetup::ComponentDescription const * edm::ESHandleBase::description ( ) const

Definition at line 9 of file ESHandle.cc.

9  {
10  if (!description_) {
11  throw edm::Exception(edm::errors::InvalidReference, "NullPointer");
12  }
13  return description_;
14  }

References description_, Exception, and edm::errors::InvalidReference.

Referenced by trackerDTC::ProducerES::produce().

◆ failedToGet()

bool edm::ESHandleBase::failedToGet ( ) const
inline

Definition at line 46 of file ESHandle.h.

46 { return bool(whyFailedFactory_); }

References electrons_cff::bool, and whyFailedFactory_.

◆ isValid()

bool edm::ESHandleBase::isValid ( void  ) const
inline

Definition at line 44 of file ESHandle.h.

44 { return nullptr != data_ && nullptr != description_; }

References data_, and description_.

Referenced by ntupleDataFormat._Object::_checkIsValid(), SiStripDigitizerAlgorithm::accumulateSimHits(), DTGeometryTest::analyze(), GEMEfficiencyAnalyzer::analyze(), EcalSRCondTools::analyze(), DTGeometryValidate::analyze(), SiPixelHitEfficiencySource::analyze(), HcalTestNumberingTester::analyze(), ContainmentCorrectionAnalyzer::analyze(), SiPixelTrackResidualSource::analyze(), EcalRecHitsValidation::analyze(), GEMGeometryValidate::analyze(), ME0GeometryValidate::analyze(), RPCGeometryValidate::analyze(), CSCGeometryValidate::analyze(), L1TRPCTPG::analyze(), ValidateGeometry::analyze(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), CSCConditions::anodeBXoffset(), EcalDeadCellDeltaRFilter::beginLuminosityBlock(), SiStripFedCablingReader::beginRun(), SiStripCertificationInfo::beginRun(), SiStripDaqInfo::beginRun(), TrackingCertificationInfo::beginRun(), SiStripDcsInfo::beginRun(), TrackingOfflineDQM::beginRun(), SiStripOfflineDQM::beginRun(), RPCTechnicalTrigger::beginRun(), L1TBPTX::bookHistograms(), MTDTransientTrackingRecHitBuilder::build(), MuonTransientTrackingRecHitBuilder::build(), CaloSD::CaloSD(), CaloTrkProcessing::CaloTrkProcessing(), CSCConditions::chamberTimingCorrection(), CSCConditions::chipCorrection(), SiTrivialDigitalConverter::convert(), SiTrivialDigitalConverter::convertRaw(), TGeoFromDddService::createManager(), CSCConditions::crossTalk(), CSCConditions::crosstalkIntercept(), CSCConditions::crosstalkSlope(), Phase2TrackerValidateDigi::dqmBeginRun(), SiStripMonitorDigi::dqmBeginRun(), HGCGeometryValidation::dqmBeginRun(), HGCalHitValidation::dqmBeginRun(), EcalClusterIsoCalculator::EcalClusterIsoCalculator(), ECalSD::ECalSD(), ecaldqm::TowerStatusTask::endLuminosityBlock(), FiberSD::FiberSD(), MuonSimHitsValidAnalyzer::fillDT(), GlobalHitsAnalyzer::fillECal(), GlobalHitsProdHist::fillECal(), GlobalHitsProducer::fillECal(), HCALRecHitAnalyzer::FillGeometry(), GlobalHitsAnalyzer::fillHCal(), GlobalHitsProdHist::fillHCal(), GlobalHitsProducer::fillHCal(), GlobalDigisProducer::fillHCal(), GlobalDigisAnalyzer::fillHCal(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProdHist::fillMuon(), GlobalHitsProducer::fillMuon(), GlobalDigisAnalyzer::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), GlobalRecHitsProducer::fillMuon(), GlobalHitsAnalyzer::fillTrk(), GlobalHitsProdHist::fillTrk(), GlobalHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), CSCConditions::gain(), CSCConditions::gasGainCorrection(), SiStripCablingDQM::getActiveDetIds(), CastorDigiMonitor::getDbData(), L1RCTProducer::getFedVectorFromOmds(), HoECalculator::getHoE(), AlcaBeamMonitor::globalBeginLuminosityBlock(), L1TriggerJSONMonitoring::globalBeginRun(), HcalRechitIsoCalculator::HcalRechitIsoCalculator(), HCalSD::HCalSD(), HcalTB02SD::HcalTB02SD(), HcalTB06BeamSD::HcalTB06BeamSD(), HcalTestNS::HcalTestNS(), MuonSensitiveDetector::MuonSensitiveDetector(), CSCConditions::noiseMatrix(), operator bool(), operator!(), CSCConditions::pedestal(), CSCConditions::pedestalSigma(), MFProducer::produce(), CastorSimpleReconstructor::produce(), JetTracksAssociatorAtCaloFace::produce(), CSCTriggerPrimitivesProducer::produce(), TGeoMgrFromDdd::produce(), ShallowGainCalibration::produce(), reco::GlobalHaloDataProducer::produce(), KfTrackProducerBase::putInEvt(), GsfTrackProducerBase::putInEvt(), TrackProducerWithSCAssociation::putInEvt(), core.AutoHandle.AutoHandle::ReallyLoad(), TSGForRoadSearch::setEvent(), TrackTransformer::setServices(), PropagateToMuon::startingState(), and SimG4HGCalValidation::update().

◆ operator bool()

edm::ESHandleBase::operator bool ( ) const
inlineexplicit

Definition at line 48 of file ESHandle.h.

48 { return isValid(); }

References isValid().

◆ operator!()

bool edm::ESHandleBase::operator! ( ) const
inline

Definition at line 50 of file ESHandle.h.

50 { return not isValid(); }

References isValid().

◆ productStorage()

void const* edm::ESHandleBase::productStorage ( ) const
inlineprotected

Definition at line 61 of file ESHandle.h.

61  {
62  if (whyFailedFactory_) {
63  std::rethrow_exception(whyFailedFactory_->make());
64  }
65  return data_;
66  }

References data_, and whyFailedFactory_.

Referenced by edm::ESTransientHandle< T >::product(), and edm::ESHandle< MTDDetLayerGeometry >::product().

◆ swap()

void edm::ESHandleBase::swap ( ESHandleBase iOther)
inline

Definition at line 52 of file ESHandle.h.

52  {
53  std::swap(data_, iOther.data_);
54  std::swap(description_, iOther.description_);
55  std::swap(whyFailedFactory_, iOther.whyFailedFactory_);
56  }

References data_, description_, std::swap(), and whyFailedFactory_.

Referenced by HcalLutGenerator::analyze().

◆ whyFailedFactory()

std::shared_ptr<ESHandleExceptionFactory> const& edm::ESHandleBase::whyFailedFactory ( ) const
inline

Definition at line 58 of file ESHandle.h.

58 { return whyFailedFactory_; }

References whyFailedFactory_.

Member Data Documentation

◆ data_

void const* edm::ESHandleBase::data_ {nullptr}
private

Definition at line 70 of file ESHandle.h.

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

◆ description_

edm::eventsetup::ComponentDescription const* edm::ESHandleBase::description_ {nullptr}
private

Definition at line 71 of file ESHandle.h.

Referenced by description(), isValid(), and swap().

◆ whyFailedFactory_

std::shared_ptr<ESHandleExceptionFactory> edm::ESHandleBase::whyFailedFactory_ {nullptr}
private

Definition at line 72 of file ESHandle.h.

Referenced by failedToGet(), productStorage(), swap(), and whyFailedFactory().

electrons_cff.bool
bool
Definition: electrons_cff.py:393
edm::ESHandleBase::data_
void const * data_
Definition: ESHandle.h:70
edm::errors::InvalidReference
Definition: EDMException.h:39
edm::ESHandleBase::description_
edm::eventsetup::ComponentDescription const * description_
Definition: ESHandle.h:71
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
edm::ESHandleBase::isValid
bool isValid() const
Definition: ESHandle.h:44
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
Exception
Definition: hltDiff.cc:246
edm::ESHandleBase::whyFailedFactory_
std::shared_ptr< ESHandleExceptionFactory > whyFailedFactory_
Definition: ESHandle.h:72