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.

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

Referenced by edm::addContextAndPrintException(), DBWriter::analyze(), L1MuonOverlapParamsDBProducer::analyze(), L1TCaloParamsUpdater::analyze(), SiStripNoisesBuilder::analyze(), SiStripApvGainBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), SiStripPedestalsBuilder::analyze(), EcalPFRecHitThresholdsMaker::analyze(), SiStripDetVOffFakeBuilder::analyze(), SurveyInputTrackerFromDB::analyze(), GBRForestWriter::analyze(), WriteEcalMiscalibConstants::analyze(), WriteEcalMiscalibConstantsMC::analyze(), BufferedBoostIODBWriter::analyze(), TrackerSystematicMisalignments::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), PPSGeometryBuilder::analyze(), SiStripApvGainBuilderFromTag::analyze(), WriteCTPPSBeamParameters::analyze(), EcalMustacheSCParametersMaker::analyze(), EcalSCDynamicDPhiParametersMaker::analyze(), CTPPSRPAlignmentInfoAnalyzer::analyze(), WriteCTPPSPixelAnalysisMask::analyze(), WriteCTPPSPixelDAQMapping::analyze(), EcalLaserCondTools::analyze(), EcalTestDevDB::analyze(), AlignPCLThresholdsWriter::analyze(), BoostIODBWriter< DataType >::analyze(), FFTJetCorrectorDBWriter::analyze(), SiStripApvGainRescaler::analyze(), SiPhase2OuterTrackerLorentzAngleWriter::analyze(), TrackerGeometryCompare::analyze(), SiStripChannelGainFromDBMiscalibrator::analyze(), SiStripNoisesFromDBMiscalibrator::analyze(), MCMisalignmentScaler::analyze(), tmtt::Histos::available(), BaseEvtVtxGenerator::BaseEvtVtxGenerator(), edm::BaseFlatGunProducer::BaseFlatGunProducer(), edm::BaseRandomtXiGunProducer::BaseRandomtXiGunProducer(), BeamDivergenceVtxGenerator::BeamDivergenceVtxGenerator(), XMLGeometryBuilder::beginJob(), HFPMTHitAnalyzer::beginJob(), DTCCablingMapTestProducer::beginJob(), FFTJetVertexAdder::beginJob(), SiStripSpyDisplayModule::beginJob(), edm::EventProcessor::beginLumiAsync(), BeamMonitor::beginLuminosityBlock(), FakeBeamMonitor::beginLuminosityBlock(), EcalDigiProducer_Ph2::beginLuminosityBlock(), EcalDigiProducer::beginLuminosityBlock(), PTrackerParametersDBBuilder::beginRun(), GEMRecoIdealDBLoader::beginRun(), ME0RecoIdealDBLoader::beginRun(), DTRecoIdealDBLoader::beginRun(), RPCRecoIdealDBLoader::beginRun(), HcalParametersDBBuilder::beginRun(), SiStripFedCablingBuilder::beginRun(), CSCRecoIdealDBLoader::beginRun(), PHGCalParametersDBBuilder::beginRun(), PGeometricDetBuilder::beginRun(), LumiProducer::beginRun(), ExternalLHEProducer::beginRunProduce(), PSMonitor::bookHistograms(), DQMStoreStats::calcstats(), ElectronEnergyCalibrator::calibrate(), CastorDigiProducer::CastorDigiProducer(), EcalTPGDBCopy::copyToDB(), EcalDBCopy::copyToDB(), ESDBCopy::copyToDB(), CSCDigiProducer::CSCDigiProducer(), ECALpedestalPCLHarvester::dqmEndJob(), SiStripGainsPCLHarvester::dqmEndJob(), SiPixelStatusHarvester::dqmEndRun(), CorrPCCProducer::dqmEndRunProduce(), CocoaDBMgr::DumpCocoaResults(), edm::DuplicateTreeSentry::dup(), EcalTBMCInfoProducer::EcalTBMCInfoProducer(), EmbeddingLHEProducer::EmbeddingLHEProducer(), ESElectronicsSim::encode(), BeamSpotWrite2DB::endJob(), SurveyDBUploader::endJob(), StoreESCondition::endJob(), BeamSpotOnlineHLTRcdWriter::endJob(), BeamSpotOnlineLegacyRcdWriter::endJob(), StoreEcalCondition::endJob(), DTCCablingMapProducer::endJob(), BeamMonitor::endLuminosityBlock(), FakeBeamMonitor::endLuminosityBlock(), SiStripLorentzAngleCalibration::endOfJob(), SiPixelLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::endOfJob(), SiStripFedCablingManipulator::endRun(), DummyCondDBWriter< TObject, TObjectO, TRecord >::endRun(), AlcaBeamSpotHarvester::endRun(), cond::BTransitionAnalyzer< EcalADCToGeVConstant, EcalADCToGeVConstantRcd >::endRun(), PCLMetadataWriter::endRun(), LaserAlignment::endRunProduce(), edm::storage::StatisticsSenderService::filePreCloseEvent(), WriteCTPPSPixGainCalibrations::fillDB(), DIPLumiProducer::filldetailcache(), ExpressLumiProducer::fillLSCache(), LumiProducer::fillLSCache(), DIPLumiProducer::fillsummarycache(), edm::service::CondorStatusService::firstUpdate(), BeamMonitor::FitAndFill(), FakeBeamMonitor::FitAndFill(), ElectronEnergyCalibratorRun2::gauss(), PhotonEnergyCalibratorRun2::gauss(), PhotonEnergyCalibrator::gauss(), ElectronEnergyCalibrator::gauss(), GaussianZBeamSpotFilter::GaussianZBeamSpotFilter(), GEMDigiProducer::GEMDigiProducer(), cond::persistency::getConnectionParams(), SiStripBadChannelBuilder::getNewObject(), RandomEngineStateProducer::globalBeginLuminosityBlockProduce(), HcalTestHistoManager::HcalTestHistoManager(), HectorProducer::HectorProducer(), edm::FileLocator::init(), edm::InputFileCatalog::init(), popcon::PopCon::initialize(), TStorageFactoryFile::Initialize(), cms::Phase2TrackerDigitizer::initializeEvent(), L1DummyProducer::L1DummyProducer(), L1EmulBias::L1EmulBias(), l1t::DataWriter::lastPayloadToken(), l1t::DataWriterExt::lastPayloadToken(), edm::service::CondorStatusService::lastUpdate(), ME0ReDigiProducer::ME0ReDigiProducer(), edm::Service< SiStripCondObjBuilderFromDb >::operator bool(), PassThroughEvtVtxGenerator::PassThroughEvtVtxGenerator(), l1t::DataWriter::payloadToken(), l1t::DataWriterExt::payloadToken(), edm::PileUp::PileUp(), XrdAdaptor::XrdStatisticsService::postEndJob(), PPSSimTrackProducer::PPSSimTrackProducer(), 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(), 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(), DQMFileSaver::saveJobReport(), dqm::DQMFileSaverBase::saveJobReport(), TrackerAlignment::saveToDB(), MuonMisalignedProducer::saveToDB(), ConditionDBWriter< SiStripApvGain >::setTime(), cms::SiPixelDigitizer::SiPixelDigitizer(), 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(), AlCaRecoTriggerBitsRcdUpdate::writeBitsToDB(), AlignmentProducerBase::writeDB(), GlobalTrackerMuonAlignment::writeGlPosRcd(), CaloGeometryDBWriter::writeIndexed(), l1t::DataWriter::writeKeyList(), l1t::DataWriterExt::writeKeyList(), l1t::DataWriter::writePayload(), l1t::DataWriterExt::writePayload(), DTCalibDBUtils::writeToDB(), and CreateIdealTkAlRecords::writeToDB().

◆ operator bool()

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

Definition at line 42 of file Service.h.

42 { return isAvailable(); }

◆ 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>(); }

◆ 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>()); }
edm::Service::isAvailable
bool isAvailable() const
Definition: Service.h:40
edm::ServiceRegistry::instance
static ServiceRegistry & instance()
Definition: ServiceRegistry.cc:90