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< CastorDbService > edm::ESHandle< CastorPedestals > 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< 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< HGCalTopology > 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< L1RPCConeDefinition > edm::ESHandle< L1TMuonBarrelParams > edm::ESHandle< MagneticField > edm::ESHandle< MeasurementTracker > edm::ESHandle< MuonDetLayerGeometry > edm::ESHandle< MuScleFitDBobject > edm::ESHandle< NavigationSchool > edm::ESHandle< ParticleDataTable > 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< 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 ()
 
 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
 
void swap (ESHandleBase &iOther)
 
std::shared_ptr< ESHandleExceptionFactory > const & whyFailedFactory () const
 

Protected Member Functions

void const * productStorage () const
 

Private Attributes

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

Detailed Description

Definition at line 33 of file ESHandle.h.

Constructor & Destructor Documentation

edm::ESHandleBase::ESHandleBase ( )
inline

Definition at line 35 of file ESHandle.h.

35 : data_(nullptr), description_(nullptr) {}
edm::eventsetup::ComponentDescription const * description_
Definition: ESHandle.h:71
void const * data_
Definition: ESHandle.h:70
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  :
41  data_(nullptr),
42  description_(nullptr),
43  whyFailedFactory_(std::move(iWhyFailed)) {}
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
def move(src, dest)
Definition: eostools.py:510

Member Function Documentation

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

Definition at line 10 of file ESHandle.cc.

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

Referenced by ESHandleBase().

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

Definition at line 49 of file ESHandle.h.

References whyFailedFactory_.

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

Definition at line 47 of file ESHandle.h.

References data_, and description_.

Referenced by ntupleDataFormat._Object::_checkIsValid(), SiStripDigitizerAlgorithm::accumulateSimHits(), SiStripGainFromData::algoBeginJob(), SiStripGainFromData::algoBeginRun(), SiStripGainFromCalibTree::algoBeginRun(), SiPixelPhase1TrackResiduals::analyze(), SiPixelPhase1TrackEfficiency::analyze(), SiPixelPhase1RecHits::analyze(), EcalSRCondTools::analyze(), SiPixelPhase1TrackClusters::analyze(), TkAlCaRecoMonitor::analyze(), SiPixelPhase1Clusters::analyze(), SiPixelHitEfficiencySource::analyze(), ContainmentCorrectionAnalyzer::analyze(), SiPixelTrackResidualSource::analyze(), EcalRecHitsValidation::analyze(), HGCalDigiValidation::analyze(), HGCalRecHitValidation::analyze(), ValidateGeometry::analyze(), L1TRPCTPG::analyze(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), CSCConditions::anodeBXoffset(), TotemRPGeometryESModule::ApplyAlignments(), pat::helper::VertexingHelper::associate(), AlcaBeamMonitor::beginLuminosityBlock(), SiStripFedCablingBuilder::beginRun(), SiStripFedCablingReader::beginRun(), SiStripGainsPCLHarvester::beginRun(), HcalHitReconstructor::beginRun(), TrackingCertificationInfo::beginRun(), SiStripCertificationInfo::beginRun(), SiStripDaqInfo::beginRun(), SiStripDcsInfo::beginRun(), SiStripOfflineDQM::beginRun(), TrackingOfflineDQM::beginRun(), RPCTechnicalTrigger::beginRun(), HBHEPhase1Reconstructor::beginRun(), L1TBPTX::bookHistograms(), 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(), CastorMonitorModule::dqmBeginRun(), SiStripGainsPCLWorker::dqmBeginRun(), TrackDetMatchInfo::dumpGeometry(), EcalClusterIsoCalculator::EcalClusterIsoCalculator(), ecaldqm::TowerStatusTask::endLuminosityBlock(), EcalDeadCellDeltaRFilter::envSet(), 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(), L1RCTProducer::getFedVectorFromOmds(), HoECalculator::getHoE(), TrackDetMatchInfo::getPosition(), HcalRechitIsoCalculator::HcalRechitIsoCalculator(), HcalTestNS::HcalTestNS(), GeometryInterface::loadFromTopology(), CSCConditions::noiseMatrix(), CSCConditions::pedestal(), CSCConditions::pedestalSigma(), CastorSimpleReconstructor::produce(), MFProducer::produce(), JetTracksAssociatorAtCaloFace::produce(), MuonDetLayerGeometryESProducer::produce(), GlobalTrackingGeometryESProducer::produce(), DigiSimLinkProducer::produce(), CSCTriggerPrimitivesProducer::produce(), TGeoMgrFromDdd::produce(), ShallowGainCalibration::produce(), reco::GlobalHaloDataProducer::produce(), CaloGeometryDBEP< T, U >::produceAligned(), CaloGeometryEP< T >::produceAligned(), HcalAlignmentEP::produceHcalAli(), TotemRPGeometryESModule::produceMisalignedGD(), TotemRPGeometryESModule::produceRealGD(), KfTrackProducerBase::putInEvt(), GsfTrackProducerBase::putInEvt(), TrackProducerWithSCAssociation::putInEvt(), core.AutoHandle.AutoHandle::ReallyLoad(), TSGForRoadSearch::setEvent(), PropagateToMuon::startingState(), MuonIdTruthInfo::truthMatchMuon(), and SimG4HGCalValidation::update().

47 { return 0 != data_ && 0 != description_; }
edm::eventsetup::ComponentDescription const * description_
Definition: ESHandle.h:71
void const * data_
Definition: ESHandle.h:70
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< DTT0 >::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 51 of file ESHandle.h.

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

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

51  {
52  std::swap(data_, iOther.data_);
53  std::swap(description_, iOther.description_);
54  std::swap(whyFailedFactory_, iOther.whyFailedFactory_);
55  }
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_
private

Definition at line 70 of file ESHandle.h.

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

edm::eventsetup::ComponentDescription const* edm::ESHandleBase::description_
private

Definition at line 71 of file ESHandle.h.

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

std::shared_ptr<ESHandleExceptionFactory> edm::ESHandleBase::whyFailedFactory_
private

Definition at line 72 of file ESHandle.h.

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