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

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

Definition at line 32 of file Service.h.

32 {}

Member Function Documentation

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

Definition at line 40 of file Service.h.

Referenced by edm::addContextAndPrintException(), SiStripApvSimulationParametersBuilder::analyze(), DBWriter::analyze(), SiStripDetVOffFakeBuilder::analyze(), L1MuonOverlapParamsDBProducer::analyze(), SiStripNoisesBuilder::analyze(), SiStripApvGainBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), EcalPFRecHitThresholdsMaker::analyze(), SurveyInputTrackerFromDB::analyze(), GBRForestWriter::analyze(), WriteEcalMiscalibConstants::analyze(), WriteEcalMiscalibConstantsMC::analyze(), BufferedBoostIODBWriter::analyze(), PPSTimingCalibrationWriter::analyze(), TrackerSystematicMisalignments::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), CTPPSRPAlignmentInfoAnalyzer::analyze(), SiStripApvGainBuilderFromTag::analyze(), WriteCTPPSPixelAnalysisMask::analyze(), WriteCTPPSPixelDAQMapping::analyze(), WriteCTPPSBeamParameters::analyze(), EcalTestDevDB::analyze(), AlignPCLThresholdsWriter::analyze(), BoostIODBWriter< DataType >::analyze(), FFTJetCorrectorDBWriter::analyze(), SiStripApvGainRescaler::analyze(), SiStripChannelGainFromDBMiscalibrator::analyze(), SiStripNoisesFromDBMiscalibrator::analyze(), TrackerGeometryCompare::analyze(), MCMisalignmentScaler::analyze(), BaseEvtVtxGenerator::BaseEvtVtxGenerator(), edm::BaseFlatGunProducer::BaseFlatGunProducer(), edm::BaseRandomtXiGunProducer::BaseRandomtXiGunProducer(), BeamDivergenceVtxGenerator::BeamDivergenceVtxGenerator(), BTagCalibrationDbCreator::beginJob(), PhysicsPerformanceDBWriterTFormula_fromfile_WPandPL::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload_IOV::beginJob(), JetResolutionDBWriter::beginJob(), XMLGeometryBuilder::beginJob(), JetCorrectorDBWriter::beginJob(), QGLikelihoodSystematicsDBWriter::beginJob(), QGLikelihoodDBWriter::beginJob(), HFPMTHitAnalyzer::beginJob(), HitParentTest::beginJob(), DTCCablingMapTestProducer::beginJob(), HOSimHitStudy::beginJob(), FFTJetVertexAdder::beginJob(), EcalSimHitStudy::beginJob(), SiStripSpyDisplayModule::beginJob(), edm::EventProcessor::beginLumiAsync(), EcalDigiProducer::beginLuminosityBlock(), SiStripFedCablingBuilder::beginRun(), HcalParametersDBBuilder::beginRun(), PTrackerParametersDBBuilder::beginRun(), GEMRecoIdealDBLoader::beginRun(), ME0RecoIdealDBLoader::beginRun(), DTRecoIdealDBLoader::beginRun(), GeometricTimingDetLoader::beginRun(), GeometricDetLoader::beginRun(), CSCRecoIdealDBLoader::beginRun(), RPCRecoIdealDBLoader::beginRun(), PGeometricDetExtraBuilder::beginRun(), PGeometricDetBuilder::beginRun(), PHGCalParametersDBBuilder::beginRun(), LumiProducer::beginRun(), ExternalLHEProducer::beginRunProduce(), MaterialBudgetCastorHistos::book(), MaterialBudgetHcalHistos::book(), MaterialBudget::book(), MaterialBudgetForward::book(), PSMonitor::bookHistograms(), DQMStoreStats::calcstats(), ElectronEnergyCalibrator::calibrate(), CaloSimHitAnalysis::CaloSimHitAnalysis(), CaloSimHitStudy::CaloSimHitStudy(), CastorDigiProducer::CastorDigiProducer(), EcalTPGDBCopy::copyToDB(), EcalDBCopy::copyToDB(), ESDBCopy::copyToDB(), CSCDigiProducer::CSCDigiProducer(), ECALpedestalPCLHarvester::dqmEndJob(), SiStripGainsPCLHarvester::dqmEndJob(), SiPixelStatusHarvester::dqmEndRun(), CorrPCCProducer::dqmEndRunProduce(), DTDigitizer::DTDigitizer(), CocoaDBMgr::DumpCocoaResults(), edm::DuplicateTreeSentry::dup(), ECalSD::ECalSD(), EcalTBMCInfoProducer::EcalTBMCInfoProducer(), ElectronStudy::ElectronStudy(), EmbeddingLHEProducer::EmbeddingLHEProducer(), ESElectronicsSim::encode(), BeamSpotWrite2DB::endJob(), SurveyDBUploader::endJob(), CentralityTableProducer::endJob(), StoreESCondition::endJob(), StoreEcalCondition::endJob(), DTCCablingMapProducer::endJob(), 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(), ElectronEnergyCalibratorRun2::gauss(), PhotonEnergyCalibratorRun2::gauss(), PhotonEnergyCalibrator::gauss(), ElectronEnergyCalibrator::gauss(), GaussianZBeamSpotFilter::GaussianZBeamSpotFilter(), cond::persistency::getConnectionParams(), SiStripBadChannelBuilder::getNewObject(), RandomEngineStateProducer::globalBeginLuminosityBlockProduce(), L1TriggerJSONMonitoring::globalBeginRun(), HLTriggerJSONMonitoring::globalBeginRun(), HCalSD::HCalSD(), HcalTB02Histo::HcalTB02Histo(), HcalTB04Histo::HcalTB04Histo(), HcalTB06Histo::HcalTB06Histo(), HcalTestHistoManager::HcalTestHistoManager(), HectorProducer::HectorProducer(), HFGflash::HFGflash(), HFShowerParam::HFShowerParam(), HGCalTBMB::HGCalTBMB(), edm::FileLocator::init(), popcon::PopCon::initialize(), TStorageFactoryFile::Initialize(), cms::Phase2TrackerDigitizer::initializeEvent(), HGCSD::initRun(), l1t::DataWriterExt::lastPayloadToken(), l1t::DataWriter::lastPayloadToken(), edm::service::CondorStatusService::lastUpdate(), 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(), OscarProducer::produce(), OscarMTProducer::produce(), 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(), MisalignedMuonESProducer::saveToDB(), ConditionDBWriter< SiStripApvGain >::setTime(), SiStripApvGainReader::SiStripApvGainReader(), ConditionDBWriter< SiStripApvGain >::storeOnDb(), SubsystemNeutronWriter::SubsystemNeutronWriter(), TFileAdaptor::TFileAdaptor(), TriggerSummaryProducerAOD::TriggerSummaryProducerAOD(), TriggerSummaryProducerRAW::TriggerSummaryProducerRAW(), XrdAdaptor::RequestManager::updateCurrentServer(), edm::service::CondorStatusService::updateImpl(), l1t::DataWriterExt::updateIOV(), l1t::DataWriter::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().

40 { return ServiceRegistry::instance().template isAvailable<T>(); }
static ServiceRegistry & instance()
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
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()
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()