test
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::ESHandleBase Class Reference

#include <ESHandle.h>

Inheritance diagram for edm::ESHandleBase:
edm::ESHandle< class > 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< 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< 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< 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< RPCGeometry > 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 >

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
< ESHandleExceptionFactory
whyFailedFactory_
 

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.

40  :
41  data_(nullptr),
42  description_(nullptr),
43  whyFailedFactory_(std::move(iWhyFailed)) {}
def move
Definition: eostools.py:510
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

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.

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 HGCDigitizer::accumulate(), SiStripDigitizerAlgorithm::accumulateSimHits(), SiStripGainFromData::algoBeginJob(), SiStripGainFromData::algoBeginRun(), SiStripGainFromCalibTree::algoBeginRun(), EcalSRCondTools::analyze(), TkAlCaRecoMonitor::analyze(), SiPixelHitEfficiencySource::analyze(), ContainmentCorrectionAnalyzer::analyze(), SiPixelTrackResidualSource::analyze(), EcalRecHitsValidation::analyze(), HGCalDigiValidation::analyze(), HGCalRecHitValidation::analyze(), ValidateGeometry::analyze(), L1TRPCTPG::analyze(), CSCConditions::anodeBXoffset(), TotemRPGeometryESModule::ApplyAlignments(), AlcaBeamMonitor::beginLuminosityBlock(), SiStripFedCablingReader::beginRun(), SiStripFedCablingBuilder::beginRun(), RecAnalyzerMinbias::beginRun(), TrackingCertificationInfo::beginRun(), SiStripCertificationInfo::beginRun(), SiStripDaqInfo::beginRun(), SiStripDcsInfo::beginRun(), SiStripOfflineDQM::beginRun(), TrackingOfflineDQM::beginRun(), RPCTechnicalTrigger::beginRun(), L1TBPTX::bookHistograms(), MuonTransientTrackingRecHitBuilder::build(), CSCConditions::chamberTimingCorrection(), CSCConditions::chipCorrection(), SiTrivialDigitalConverter::convert(), SiTrivialDigitalConverter::convertRaw(), CSCConditions::crossTalk(), CSCConditions::crosstalkIntercept(), CSCConditions::crosstalkSlope(), FTSLuminosityFromLumiSummary::doStreamBeginLuminosityBlock_(), SiStripMonitorDigi::dqmBeginRun(), CastorMonitorModule::dqmBeginRun(), TrackDetMatchInfo::dumpGeometry(), EcalClusterIsoCalculator::EcalClusterIsoCalculator(), ecaldqm::TowerStatusTask::endLuminosityBlock(), EcalDeadCellTriggerPrimitiveFilter::envSet(), 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(), TrackMerger::merge(), CSCConditions::noiseMatrix(), CSCConditions::pedestal(), CSCConditions::pedestalSigma(), CastorSimpleReconstructor::produce(), MFProducer::produce(), JetTracksAssociatorAtCaloFace::produce(), MuonDetLayerGeometryESProducer::produce(), GlobalTrackingGeometryESProducer::produce(), DigiSimLinkProducer::produce(), ShallowGainCalibration::produce(), reco::GlobalHaloDataProducer::produce(), CaloGeometryDBEP< T, U >::produceAligned(), CaloGeometryEP< T >::produceAligned(), HcalAlignmentEP::produceHcalAli(), TotemRPGeometryESModule::produceMeasuredDDCV(), TotemRPGeometryESModule::produceMisalignedGD(), TotemRPGeometryESModule::produceRealGD(), KfTrackProducerBase::putInEvt(), GsfTrackProducerBase::putInEvt(), TrackProducerWithSCAssociation::putInEvt(), core.AutoHandle.AutoHandle::ReallyLoad(), TSGForRoadSearch::setEvent(), PropagateToMuon::startingState(), and MuonIdTruthInfo::truthMatchMuon().

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