CMS 3D CMS Logo

List of all members | Public Member Functions
edm::Service< T > Class Template Reference

#include <Service.h>

Public Member Functions

bool isAvailable () const
 
 operator bool () const
 
Toperator* () const
 
Toperator-> () const
 
 Service ()
 

Detailed Description

template<class T>
class edm::Service< T >

Definition at line 30 of file Service.h.

Constructor & Destructor Documentation

◆ Service()

template<class T>
edm::Service< T >::Service ( )
inline

Definition at line 32 of file Service.h.

32 {}

Member Function Documentation

◆ isAvailable()

template<class T>
bool edm::Service< T >::isAvailable ( ) const
inline

Definition at line 40 of file Service.h.

Referenced by edm::addContextAndPrintException(), L1KeyListWriter::analyze(), L1KeyWriter::analyze(), L1TMuonOverlapParamsWriter::analyze(), L1MuonOverlapParamsDBProducer::analyze(), L1MuonOverlapPhase1ParamsDBProducer::analyze(), LHCInfoPerFillWriter::analyze(), LHCInfoPerLSWriter::analyze(), DBWriter::analyze(), SiStripThresholdBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SurveyInputTrackerFromDB::analyze(), L1TCaloStage2ParamsWriter::analyze(), L1TGlobalPrescalesVetosWriter::analyze(), L1TMuonEndCapForestWriter::analyze(), L1TMuonGlobalParamsWriter::analyze(), SiStripApvGainBuilder::analyze(), SiStripNoisesBuilder::analyze(), SiStripSummaryBuilder::analyze(), L1TMuonEndCapParamsWriter::analyze(), WritePPSAssociationCuts::analyze(), WritePPSAlignmentConfiguration::analyze(), L1TMuonBarrelParamsWriter::analyze(), L1TMuonOverlapFwVersionTester::analyze(), EcalPFRecHitThresholdsMaker::analyze(), SiStripDetVOffFakeBuilder::analyze(), GBRForestWriter::analyze(), cms::SiPixelPerformanceSummaryBuilder::analyze(), SiStripNoisesAndBadCompsChecker::analyze(), SiPixelLorentzAngleDBLoader::analyze(), SiPixelVCalDB::analyze(), PPSGeometryBuilder::analyze(), SiPixelLorentzAngleDB::analyze(), BufferedBoostIODBWriter::analyze(), SiPixelDynamicInefficiencyDB::analyze(), PPSTimingCalibrationWriter::analyze(), PPSTimingCalibrationLUTWriter::analyze(), WriteEcalMiscalibConstants::analyze(), WriteEcalMiscalibConstantsMC::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), WriteCTPPSPixelAnalysisMask::analyze(), SiStripApvGainBuilderFromTag::analyze(), CTPPSRPAlignmentInfoAnalyzer::analyze(), WriteCTPPSPixelDAQMapping::analyze(), ProduceDropBoxMetadata::analyze(), SiPixelGenErrorDBObjectUploader::analyze(), SiPixelTemplateDBObjectUploader::analyze(), SiPixelCalibConfigurationObjectMaker::analyze(), SiPixel2DTemplateDBObjectUploader::analyze(), WriteCTPPSTotemDAQMappingMask::analyze(), EcalSCDynamicDPhiParametersMaker::analyze(), EcalMustacheSCParametersMaker::analyze(), WriteCTPPSBeamParameters::analyze(), SiStripBadChannelPatcher::analyze(), EcalTestDevDB::analyze(), EcalLaserCondTools::analyze(), BoostIODBWriter< DataType >::analyze(), FFTJetCorrectorDBWriter::analyze(), cms::SiPixelCondObjBuilder::analyze(), SiStripApvGainRescaler::analyze(), cms::SiPixelCondObjOfflineBuilder::analyze(), cms::SiPixelCondObjForHLTBuilder::analyze(), TrackerGeometryCompare::analyze(), TrackerSystematicMisalignments::analyze(), SiPhase2OuterTrackerLorentzAngleWriter::analyze(), SiStripGainPayloadCopyAndExclude::analyze(), BeamSpotOnlineFromOfflineConverter::analyze(), SiStripChannelGainFromDBMiscalibrator::analyze(), SiStripNoisesFromDBMiscalibrator::analyze(), SiStripApvGainFromFileBuilder::analyze(), MCMisalignmentScaler::analyze(), tmtt::Histos::available(), BaseEvtVtxGenerator::BaseEvtVtxGenerator(), edm::BaseFlatGunProducer::BaseFlatGunProducer(), edm::BaseRandomtXiGunProducer::BaseRandomtXiGunProducer(), BeamDivergenceVtxGenerator::BeamDivergenceVtxGenerator(), XMLGeometryBuilder::beginJob(), DTCCablingMapTestProducer::beginJob(), edm::EventProcessor::beginLumiAsync(), FakeBeamMonitor::beginLuminosityBlock(), BeamMonitor::beginLuminosityBlock(), EcalDigiProducer_Ph2::beginLuminosityBlock(), EcalDigiProducer::beginLuminosityBlock(), PTrackerAdditionalParametersPerDetDBBuilder::beginRun(), PTrackerParametersDBBuilder::beginRun(), HcalParametersDBBuilder::beginRun(), CSCRecoIdealDBLoader::beginRun(), ME0RecoIdealDBLoader::beginRun(), PHGCalParametersDBBuilder::beginRun(), RPCRecoIdealDBLoader::beginRun(), DTRecoIdealDBLoader::beginRun(), GEMRecoIdealDBLoader::beginRun(), PGeometricDetBuilder::beginRun(), SiStripFedCablingBuilder::beginRun(), LumiProducer::beginRun(), ExternalLHEProducer::beginRunProduce(), FFTJetVertexAdder::beginStream(), PSMonitor::bookHistograms(), DQMStoreStats::calcstats(), ElectronEnergyCalibrator::calibrate(), CastorDigiProducer::CastorDigiProducer(), edm::storage::StatisticsSenderService::closedFile(), SiPixelGainCalibScaler::computeAndStorePalyoads(), ESDBCopy::copyToDB(), EcalTPGDBCopy::copyToDB(), EcalDBCopy::copyToDB(), edm::service::CPU::CPU(), CSCDigiProducer::CSCDigiProducer(), CUDAService::CUDAService(), FakeBeamMonitor::dqmBeginRun(), BeamMonitor::dqmBeginRun(), SiStripBadStripFromQualityDBWriter::dqmEndJob(), ECALpedestalPCLHarvester::dqmEndJob(), SiStripLorentzAnglePCLHarvester::dqmEndJob(), SiStripGainsPCLHarvester::dqmEndJob(), SiPixelLorentzAnglePCLHarvester::dqmEndJob(), SiPixelLorentzAnglePCLHarvesterMCS::dqmEndJob(), SiPixelStatusHarvester::dqmEndRun(), FakeBeamMonitor::dqmEndRun(), BeamMonitor::dqmEndRun(), PPSAlignmentHarvester::dqmEndRun(), CorrPCCProducer::dqmEndRunProduce(), dqm::DQMFileSaverPB::DQMFileSaverPB(), CocoaDBMgr::DumpCocoaResults(), edm::DuplicateTreeSentry::dup(), EmbeddingLHEProducer::EmbeddingLHEProducer(), ESElectronicsSim::encode(), SurveyDBUploader::endJob(), BeamSpotWrite2DB::endJob(), SiPixelQualityProbabilitiesTestWriter::endJob(), SiPixelQualityProbabilitiesWriteFromASCII::endJob(), SiPixelFEDChannelContainerWriteFromASCII::endJob(), StoreESCondition::endJob(), SiPixelFEDChannelContainerFromQualityConverter::endJob(), BeamSpotOnlineRecordsWriter::endJob(), StoreEcalCondition::endJob(), FastSiPixelFEDChannelContainerFromQuality::endJob(), SiStripApvGainInspector::endJob(), DTCCablingMapProducer::endJob(), FakeBeamMonitor::endLuminosityBlock(), BeamMonitor::endLuminosityBlock(), SiStripLorentzAngleCalibration::endOfJob(), SiPixelLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::endOfJob(), DummyCondDBWriter< TObject, TObjectO, TRecord >::endRun(), SiStripFedCablingManipulator::endRun(), AlcaBeamSpotHarvester::endRun(), cond::BTransitionAnalyzer< EcalADCToGeVConstant, EcalADCToGeVConstantRcd >::endRun(), PCLMetadataWriter::endRun(), LaserAlignment::endRunProduce(), SiPixelGainCalibrationReadDQMFile::fillDatabase(), SiPixelGainCalibrationRejectNoisyAndDead::fillDatabase(), WriteCTPPSPixGainCalibrations::fillDB(), DIPLumiProducer::filldetailcache(), ExpressLumiProducer::fillLSCache(), LumiProducer::fillLSCache(), DIPLumiProducer::fillsummarycache(), popcon::OnlinePopCon::finalize(), FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), ElectronEnergyCalibratorRun2::gauss(), PhotonEnergyCalibratorRun2::gauss(), PhotonEnergyCalibrator::gauss(), ElectronEnergyCalibrator::gauss(), GaussianZBeamSpotFilter::GaussianZBeamSpotFilter(), cond::persistency::getConnectionParams(), SiStripBadChannelBuilder::getNewObject(), SiPhase2BadStripChannelBuilder::getNewObject(), RandomEngineStateProducer::globalBeginLuminosityBlockProduce(), L1TriggerJSONMonitoring::globalBeginRun(), HLTriggerJSONMonitoring::globalBeginRun(), HGCalSlinkEmulator::HGCalSlinkEmulator(), edm::FileLocator::init(), edm::InputFileCatalog::init(), edm::FileLocator::init_trivialCatalog(), popcon::OnlinePopCon::initialize(), popcon::PopCon::initialize(), TStorageFactoryFile::Initialize(), cms::Phase2TrackerDigitizer::initializeEvent(), edm::ScheduleItems::initMisc(), l1t::DataWriter::lastPayloadToken(), l1t::DataWriterExt::lastPayloadToken(), edm::service::CondorStatusService::lastUpdate(), edm::Service< SiStripCondObjBuilderFromDb >::operator bool(), PassThroughEvtVtxGenerator::PassThroughEvtVtxGenerator(), l1t::DataWriter::payloadToken(), l1t::DataWriterExt::payloadToken(), edm::PileUp::PileUp(), XrdAdaptor::XrdStatisticsService::postEndJob(), PPSTimingCalibrationPCLHarvester::PPSTimingCalibrationPCLHarvester(), PreMixingSiStripWorker::PreMixingSiStripWorker(), edm::EventProcessor::processEventAsyncImpl(), RandomEngineStateProducer::produce(), MisalignedTrackerESProducer::produce(), BetaBoostEvtVtxGenerator::produce(), RPDigiProducer::produce(), CTPPSPixelDigiProducer::produce(), RandomEngineAndDistribution::RandomEngineAndDistribution(), edm::RandomEngineSentry< T >::RandomEngineSentry(), edm::RandomFilter::RandomFilter(), edm::service::RandomNumberGeneratorService::readFromLuminosityBlock(), l1t::DataWriter::readObject(), l1t::DataWriterExt::readObject(), ROCmService::ROCmService(), edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence(), edm::RootPrimaryFileSequence::RootPrimaryFileSequence(), edm::RootSecondaryFileSequence::RootSecondaryFileSequence(), edm::RootServiceChecker::RootServiceChecker(), l1t::WriterProxyT< Record, Type >::save(), MuonAlignment::saveCSCSurveyToDB(), MuonAlignment::saveCSCtoDB(), MuonAlignment::saveDTSurveyToDB(), MuonAlignment::saveDTtoDB(), MuonAlignment::saveGEMtoDB(), DQMFileSaver::saveJobReport(), dqm::DQMFileSaverBase::saveJobReport(), TrackerAlignment::saveToDB(), MuonMisalignedProducer::saveToDB(), edm::service::CondorStatusService::secondUpdate(), ConditionDBWriter< SiStripApvGain >::setTime(), cms::SiPixelDigitizer::SiPixelDigitizer(), SiPixelLorentzAnglePCLHarvester::SiPixelLorentzAnglePCLHarvester(), SiPixelLorentzAnglePCLHarvesterMCS::SiPixelLorentzAnglePCLHarvesterMCS(), SiStripApvGainReader::SiStripApvGainReader(), SiStripDigitizer::SiStripDigitizer(), ConditionDBWriter< SiStripApvGain >::storeOnDb(), tmtt::StubKiller::StubKiller(), SubsystemNeutronWriter::SubsystemNeutronWriter(), TFileAdaptor::TFileAdaptor(), TriggerSummaryProducerAOD::TriggerSummaryProducerAOD(), XrdAdaptor::RequestManager::updateCurrentServer(), edm::service::CondorStatusService::updateImpl(), l1t::DataWriter::updateIOV(), l1t::DataWriterExt::updateIOV(), CaloGeometryDBWriter::write(), popcon::OnlinePopCon::write(), WriteESAlignments::write(), BeamFitter::write2DB(), SiStripHitEfficiencyHarvester::writeBadStripPayload(), AlCaRecoTriggerBitsRcdUpdate::writeBitsToDB(), AlignmentProducerBase::writeDB(), GlobalTrackerMuonAlignment::writeGlPosRcd(), CaloGeometryDBWriter::writeIndexed(), l1t::DataWriter::writeKeyList(), l1t::DataWriterExt::writeKeyList(), l1t::DataWriter::writePayload(), l1t::DataWriterExt::writePayload(), AlignPCLThresholdsWriter< T >::writePayload(), DTCalibDBUtils::writeToDB(), BeamSpotOnlineShifter::writeToDB(), and CreateIdealTkAlRecords::writeToDB().

40 { return ServiceRegistry::instance().template isAvailable<T>(); }
static ServiceRegistry & instance()

◆ operator bool()

template<class T>
edm::Service< T >::operator bool ( ) const
inline

Definition at line 42 of file Service.h.

42 { return isAvailable(); }
bool isAvailable() const
Definition: Service.h:40

◆ operator*()

template<class T>
T& edm::Service< T >::operator* ( void  ) const
inline

Definition at line 38 of file Service.h.

38 { return ServiceRegistry::instance().template get<T>(); }
static ServiceRegistry & instance()

◆ operator->()

template<class T>
T* edm::Service< T >::operator-> ( ) const
inline

Definition at line 36 of file Service.h.

36 { return &(ServiceRegistry::instance().template get<T>()); }
static ServiceRegistry & instance()