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< 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< DetIdAssociator > edm::ESHandle< DetLayerGeometry > edm::ESHandle< DTGeometry > edm::ESHandle< DTHVStatus > 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< ElectronLikelihood > 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< FastTimeDDDConstants > edm::ESHandle< FastTimeGeometry > 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< HGCalGeometry > edm::ESHandle< HGCalTriggerGeometryBase > edm::ESHandle< L1GtPrescaleFactors > edm::ESHandle< L1GtTriggerMenu > 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< 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< 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< SiStripRecHitMatcher > edm::ESHandle< SiStripRegionCabling > edm::ESHandle< SiStripThreshold > edm::ESHandle< StripClusterParameterEstimator > edm::ESHandle< thePayloadObject > 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 (void const *iData, edm::eventsetup::ComponentDescription const *desc)
 
 ESHandleBase (std::shared_ptr< ESHandleExceptionFactory > &&iWhyFailed)
 Used when the attempt to get the data failed. More...
 
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

edm::ESHandleBase::ESHandleBase ( )
default
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) {}
edm::eventsetup::ComponentDescription const * description_
Definition: ESHandle.h:71
void const * data_
Definition: ESHandle.h:70
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.

References description().

40 : whyFailedFactory_(std::move(iWhyFailed)) {}
std::shared_ptr< ESHandleExceptionFactory > whyFailedFactory_
Definition: ESHandle.h:72
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

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

Definition at line 9 of file ESHandle.cc.

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

Referenced by ESHandleBase().

9  {
10  if (!description_) {
11  throw edm::Exception(edm::errors::InvalidReference, "NullPointer");
12  }
13  return description_;
14  }
edm::eventsetup::ComponentDescription const * description_
Definition: ESHandle.h:71
bool edm::ESHandleBase::failedToGet ( ) const
inline

Definition at line 46 of file ESHandle.h.

References electrons_cff::bool, and whyFailedFactory_.

46 { return bool(whyFailedFactory_); }
std::shared_ptr< ESHandleExceptionFactory > whyFailedFactory_
Definition: ESHandle.h:72
bool edm::ESHandleBase::isValid ( void  ) const
inline

Definition at line 44 of file ESHandle.h.

References data_, and description_.

Referenced by ntupleDataFormat._Object::_checkIsValid(), SiStripDigitizerAlgorithm::accumulateSimHits(), SiStripGainFromData::algoBeginJob(), SiStripGainFromData::algoBeginRun(), SiStripGainFromCalibTree::algoBeginRun(), SiPixelPhase1TrackClustersV::analyze(), EcalSRCondTools::analyze(), TkAlCaRecoMonitor::analyze(), DTGeometryValidate::analyze(), SiPixelHitEfficiencySource::analyze(), ContainmentCorrectionAnalyzer::analyze(), EcalRecHitsValidation::analyze(), SiPixelTrackResidualSource::analyze(), HGCalRecHitValidation::analyze(), ValidateGeometry::analyze(), L1TRPCTPG::analyze(), HGCalDigiValidation::analyze(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), CSCConditions::anodeBXoffset(), pat::helper::VertexingHelper::associate(), AlcaBeamMonitor::beginLuminosityBlock(), EcalDeadCellDeltaRFilter::beginLuminosityBlock(), SiStripFedCablingBuilder::beginRun(), SiStripFedCablingReader::beginRun(), SiStripCertificationInfo::beginRun(), SiStripDaqInfo::beginRun(), SiStripGainsPCLHarvester::beginRun(), SiStripDcsInfo::beginRun(), SiStripOfflineDQM::beginRun(), TrackingCertificationInfo::beginRun(), TrackingOfflineDQM::beginRun(), RPCTechnicalTrigger::beginRun(), RecAnalyzerMinbias::beginRun(), HBHEPhase1Reconstructor::beginRun(), HGCalTriggerGeometryBase::bhGeometry(), L1TBPTX::bookHistograms(), MTDTransientTrackingRecHitBuilder::build(), MuonTransientTrackingRecHitBuilder::build(), CSCConditions::chamberTimingCorrection(), CSCConditions::chipCorrection(), TrajSeedMatcher::compatibleSeeds(), SiTrivialDigitalConverter::convert(), SiTrivialDigitalConverter::convertRaw(), TGeoFromDddService::createManager(), CSCConditions::crossTalk(), CSCConditions::crosstalkIntercept(), CSCConditions::crosstalkSlope(), SiStripMonitorDigi::dqmBeginRun(), HGCGeometryValidation::dqmBeginRun(), HGCalHitValidation::dqmBeginRun(), SiStripGainsPCLWorker::dqmBeginRun(), EcalClusterIsoCalculator::EcalClusterIsoCalculator(), HGCalTriggerGeometryBase::eeGeometry(), ecaldqm::TowerStatusTask::endLuminosityBlock(), HGCalTriggerGeometryBase::fhGeometry(), MuonSimHitsValidAnalyzer::fillDT(), GlobalHitsAnalyzer::fillECal(), GlobalHitsProdHist::fillECal(), GlobalHitsProducer::fillECal(), HCALRecHitAnalyzer::FillGeometry(), GlobalHitsAnalyzer::fillHCal(), GlobalHitsProdHist::fillHCal(), GlobalHitsProducer::fillHCal(), GlobalDigisProducer::fillHCal(), GlobalDigisAnalyzer::fillHCal(), GlobalRecHitsAnalyzer::fillHCal(), GlobalRecHitsProducer::fillHCal(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProdHist::fillMuon(), GlobalHitsProducer::fillMuon(), GlobalDigisAnalyzer::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), GlobalRecHitsProducer::fillMuon(), GlobalHitsProdHist::fillTrk(), GlobalHitsAnalyzer::fillTrk(), GlobalHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), CSCConditions::gain(), CSCConditions::gasGainCorrection(), SiStripCablingDQM::getActiveDetIds(), CastorDigiMonitor::getDbData(), L1RCTProducer::getFedVectorFromOmds(), HoECalculator::getHoE(), L1TriggerJSONMonitoring::globalBeginRun(), HcalRechitIsoCalculator::HcalRechitIsoCalculator(), HcalTestNS::HcalTestNS(), HGCalTriggerGeometryBase::hscGeometry(), RPCSimHitMatcher::init(), CSCSimHitMatcher::init(), GEMSimHitMatcher::init(), DTSimHitMatcher::init(), ME0SimHitMatcher::init(), HGCalTriggerGeometryBase::isV9Geometry(), GeometryInterface::loadFromTopology(), CSCConditions::noiseMatrix(), operator bool(), operator!(), CSCConditions::pedestal(), CSCConditions::pedestalSigma(), GlobalDetLayerGeometryESProducer::produce(), CastorSimpleReconstructor::produce(), HGCalTriggerGeometryESProducer::produce(), MFProducer::produce(), JetTracksAssociatorAtCaloFace::produce(), MuonDetLayerGeometryESProducer::produce(), CSCTriggerPrimitivesProducer::produce(), TGeoMgrFromDdd::produce(), ShallowGainCalibration::produce(), pat::PATMuonProducer::produce(), reco::GlobalHaloDataProducer::produce(), CaloGeometryDBEP< T, U >::produceAligned(), CaloGeometryEP< T >::produceAligned(), CTPPSGeometryESModule::produceGD(), HcalAlignmentEP::produceHcalAli(), KfTrackProducerBase::putInEvt(), GsfTrackProducerBase::putInEvt(), TrackProducerWithSCAssociation::putInEvt(), core.AutoHandle.AutoHandle::ReallyLoad(), TSGForRoadSearch::setEvent(), TrackTransformer::setServices(), PropagateToMuon::startingState(), MuonIdTruthInfo::truthMatchMuon(), and SimG4HGCalValidation::update().

44 { return nullptr != data_ && nullptr != description_; }
edm::eventsetup::ComponentDescription const * description_
Definition: ESHandle.h:71
void const * data_
Definition: ESHandle.h:70
edm::ESHandleBase::operator bool ( ) const
inlineexplicit

Definition at line 48 of file ESHandle.h.

References isValid().

48 { return isValid(); }
bool isValid() const
Definition: ESHandle.h:44
bool edm::ESHandleBase::operator! ( ) const
inline

Definition at line 50 of file ESHandle.h.

References isValid().

50 { return not isValid(); }
bool isValid() const
Definition: ESHandle.h:44
void const* edm::ESHandleBase::productStorage ( ) const
inlineprotected

Definition at line 61 of file ESHandle.h.

References data_, and whyFailedFactory_.

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

61  {
62  if (whyFailedFactory_) {
63  std::rethrow_exception(whyFailedFactory_->make());
64  }
65  return data_;
66  }
std::shared_ptr< ESHandleExceptionFactory > whyFailedFactory_
Definition: ESHandle.h:72
void const * data_
Definition: ESHandle.h:70
void edm::ESHandleBase::swap ( ESHandleBase iOther)
inline

Definition at line 52 of file ESHandle.h.

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

Referenced by HcalLutGenerator::analyze(), and edm::swap().

52  {
53  std::swap(data_, iOther.data_);
54  std::swap(description_, iOther.description_);
55  std::swap(whyFailedFactory_, iOther.whyFailedFactory_);
56  }
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::shared_ptr< ESHandleExceptionFactory > whyFailedFactory_
Definition: ESHandle.h:72
edm::eventsetup::ComponentDescription const * description_
Definition: ESHandle.h:71
void const * data_
Definition: ESHandle.h:70
std::shared_ptr<ESHandleExceptionFactory> const& edm::ESHandleBase::whyFailedFactory ( ) const
inline

Definition at line 58 of file ESHandle.h.

References whyFailedFactory_.

58 { return whyFailedFactory_; }
std::shared_ptr< ESHandleExceptionFactory > whyFailedFactory_
Definition: ESHandle.h:72

Member Data Documentation

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

Definition at line 70 of file ESHandle.h.

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

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

Definition at line 71 of file ESHandle.h.

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

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

Definition at line 72 of file ESHandle.h.

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