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(), SiStripNoisesBuilder::analyze(), SiStripSummaryBuilder::analyze(), L1TMuonEndCapParamsWriter::analyze(), SiStripApvGainBuilder::analyze(), WritePPSAlignmentConfiguration::analyze(), L1TMuonBarrelParamsWriter::analyze(), L1TMuonOverlapFwVersionTester::analyze(), WritePPSAssociationCuts::analyze(), EcalPFRecHitThresholdsMaker::analyze(), SiStripDetVOffFakeBuilder::analyze(), cms::SiPixelPerformanceSummaryBuilder::analyze(), GBRForestWriter::analyze(), SiStripNoisesAndBadCompsChecker::analyze(), SiPixelLorentzAngleDBLoader::analyze(), PPSGeometryBuilder::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelVCalDB::analyze(), BufferedBoostIODBWriter::analyze(), PPSTimingCalibrationLUTWriter::analyze(), PPSTimingCalibrationWriter::analyze(), SiPixelDynamicInefficiencyDB::analyze(), WriteEcalMiscalibConstants::analyze(), WriteEcalMiscalibConstantsMC::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), SiStripApvGainBuilderFromTag::analyze(), WriteCTPPSPixelAnalysisMask::analyze(), ProduceDropBoxMetadata::analyze(), CTPPSRPAlignmentInfoAnalyzer::analyze(), WriteCTPPSPixelDAQMapping::analyze(), SiPixelGenErrorDBObjectUploader::analyze(), SiPixel2DTemplateDBObjectUploader::analyze(), SiPixelCalibConfigurationObjectMaker::analyze(), WriteCTPPSTotemDAQMappingMask::analyze(), SiPixelTemplateDBObjectUploader::analyze(), EcalMustacheSCParametersMaker::analyze(), EcalSCDynamicDPhiParametersMaker::analyze(), WriteCTPPSBeamParameters::analyze(), SiStripBadChannelPatcher::analyze(), EcalTestDevDB::analyze(), EcalLaserCondTools::analyze(), BoostIODBWriter< DataType >::analyze(), FFTJetCorrectorDBWriter::analyze(), cms::SiPixelCondObjBuilder::analyze(), SiStripApvGainRescaler::analyze(), cms::SiPixelCondObjForHLTBuilder::analyze(), cms::SiPixelCondObjOfflineBuilder::analyze(), TrackerGeometryCompare::analyze(), TrackerSystematicMisalignments::analyze(), SiPhase2OuterTrackerLorentzAngleWriter::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(), 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(), DTCCablingMapProducer::endJob(), FakeBeamMonitor::endLuminosityBlock(), BeamMonitor::endLuminosityBlock(), SiStripLorentzAngleCalibration::endOfJob(), SiPixelLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::endOfJob(), SiStripFedCablingManipulator::endRun(), DummyCondDBWriter< TObject, TObjectO, TRecord >::endRun(), AlcaBeamSpotHarvester::endRun(), PCLMetadataWriter::endRun(), cond::BTransitionAnalyzer< EcalADCToGeVConstant, EcalADCToGeVConstantRcd >::endRun(), LaserAlignment::endRunProduce(), SiPixelGainCalibrationReadDQMFile::fillDatabase(), SiPixelGainCalibrationRejectNoisyAndDead::fillDatabase(), WriteCTPPSPixGainCalibrations::fillDB(), DIPLumiProducer::filldetailcache(), ExpressLumiProducer::fillLSCache(), LumiProducer::fillLSCache(), DIPLumiProducer::fillsummarycache(), 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::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(), 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(), 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()