CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 34 of file Service.h.

34 {}

Member Function Documentation

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

Definition at line 46 of file Service.h.

Referenced by edm::addContextAndPrintException(), SiStripBadChannelBuilder::algoAnalyze(), CaloHitResponse::analogSignalAmplitude(), DBWriter::analyze(), SiStripDetVOffFakeBuilder::analyze(), SiStripNoisesBuilder::analyze(), SiStripApvGainBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), SurveyInputTrackerFromDB::analyze(), TrackerSystematicMisalignments::analyze(), SiPixelLorentzAngleDB::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), HLTMonBTagIPSource::analyze(), HLTMonBTagMuSource::analyze(), SiStripApvGainBuilderFromTag::analyze(), SiStripFEDErrorsDQM::analyze(), EcalTestDevDB::analyze(), FFTJetCorrectorDBWriter::analyze(), TrackerGeometryCompare::analyze(), BaseEvtVtxGenerator::BaseEvtVtxGenerator(), XMLGeometryBuilder::beginJob(), GeometricDetLoader::beginJob(), PhysicsPerformanceDBWriterTFormula_fromfile_WPandPL::beginJob(), JetCorrectorDBWriter::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload_IOV::beginJob(), HLTMonBTagMuSource::beginJob(), HLTMonBTagIPSource::beginJob(), HLTMonBTagClient::beginJob(), FFTJetVertexAdder::beginJob(), SiStripSpyDisplayModule::beginJob(), edm::EventProcessor::beginLumi(), RandomEngineStateProducer::beginLuminosityBlockProduce(), WriteOneGeometryFromXML::beginRun(), RPCRecoIdealDBLoader::beginRun(), SiStripFedCablingBuilder::beginRun(), CSCRecoIdealDBLoader::beginRun(), DTRecoIdealDBLoader::beginRun(), PGeometricDetBuilder::beginRun(), PGeometricDetExtraBuilder::beginRun(), HLTTauDQML1Plotter::beginRun(), HLTTauDQMPathSummaryPlotter::beginRun(), GEMRecoIdealDBLoader::beginRun(), HLTTauDQMPathPlotter::beginRun(), EcalDQMStatusWriter::beginRun(), LumiProducer::beginRun(), ExternalLHEProducer::beginRunProduce(), BetaBoostEvtVtxGenerator::BetaBoostEvtVtxGenerator(), MaterialBudgetCastorHistos::book(), MaterialBudgetHcalHistos::book(), MaterialBudgetForward::book(), HLTTauDQMSummaryPlotter::bookPlots(), DQMStoreStats::calcstats(), ElectronEnergyCalibrator::calibrate(), CastorDigiProducer::CastorDigiProducer(), EcalDBCopy::copyToDB(), ESDBCopy::copyToDB(), EcalTPGDBCopy::copyToDB(), edm::CosMuoGenProducer::CosMuoGenProducer(), CSCDigiProducer::CSCDigiProducer(), edm::DataMixingSiStripMCDigiWorker::DataMixingSiStripMCDigiWorker(), DreamSD::DreamSD(), DTDDUUnpacker::DTDDUUnpacker(), DTDigitizer::DTDigitizer(), DTROS25Unpacker::DTROS25Unpacker(), CocoaDBMgr::DumpCocoaResults(), EcalElectronicsSim::EcalElectronicsSim(), EcalHitResponse::EcalHitResponse(), EcalTBMCInfoProducer::EcalTBMCInfoProducer(), ElectronStudy::ElectronStudy(), ESElectronicsSim::encode(), PhysicsTools::MVATrainerSave::endJob(), PhysicsTools::MVATrainerContainerSave::endJob(), HLTMonBTagClient::endJob(), HLTMonBTagIPSource::endJob(), HLTMonBTagMuSource::endJob(), BeamSpotWrite2DB::endJob(), SurveyDBUploader::endJob(), StoreEcalCondition::endJob(), CentralityTableProducer::endJob(), SiStripLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::endOfJob(), SiPixelLorentzAngleCalibration::endOfJob(), SiStripFedCablingManipulator::endRun(), AlcaBeamSpotHarvester::endRun(), DummyCondDBWriter< TObject, TObjectO, TRecord >::endRun(), PCLMetadataWriter::endRun(), LaserAlignment::endRunProduce(), ESDigitizer::ESDigitizer(), ESElectronicsSimFast::ESElectronicsSimFast(), edm::storage::StatisticsSenderService::filePreCloseEvent(), DIPLumiProducer::filldetailcache(), ExpressLumiProducer::fillLSCache(), LumiProducer::fillLSCache(), DIPLumiProducer::fillsummarycache(), GaussianZBeamSpotFilter::GaussianZBeamSpotFilter(), GenMuonRadiationAlgorithm::GenMuonRadiationAlgorithm(), HcalQie::getCode(), cond::persistency::getConnectionParams(), gen::getEngineReference(), HcalDigitizer::HcalDigitizer(), HCalSD::HCalSD(), HcalTB02Histo::HcalTB02Histo(), HcalTB04Histo::HcalTB04Histo(), HcalTB06Histo::HcalTB06Histo(), HcalTestHistoManager::HcalTestHistoManager(), HFGflash::HFGflash(), HFShowerParam::HFShowerParam(), HcalSiPM::hitCells(), edm::FileLocator::init(), TStorageFactoryFile::Initialize(), popcon::PopCon::initialize(), l1t::DataWriter::lastPayloadToken(), cond::FrontierProxy::makeRealConnectString(), MixBoostEvtVtxGenerator::MixBoostEvtVtxGenerator(), edm::Service< SiStripCondObjBuilderFromDb >::operator bool(), ParticleReplacerZtautau::ParticleReplacerZtautau(), l1t::DataWriter::payloadToken(), edm::PileUp::PileUp(), HLTTauDQMSummaryPlotter::plot(), edm::InputSource::postRead(), RandomEngineStateProducer::produce(), MisalignedTrackerESProducer::produce(), PythiaFilterIsolatedTrack::PythiaFilterIsolatedTrack(), RandomEngineAndDistribution::RandomEngineAndDistribution(), edm::RandomEngineSentry< T >::RandomEngineSentry(), edm::RandomFilter::RandomFilter(), CaloHitRespoNew::ranGauss(), CaloHitRespoNew::ranPois(), edm::service::RandomNumberGeneratorService::readFromLuminosityBlock(), l1t::DataWriter::readObject(), gen::ReggeGribovPartonMCHadronizer::ReggeGribovPartonMCHadronizer(), RFIOStorageMaker::RFIOStorageMaker(), edm::RootInputFileSequence::RootInputFileSequence(), edm::RootServiceChecker::RootServiceChecker(), l1t::WriterProxyT< Record, Type >::save(), MuonAlignment::saveCSCSurveyToDB(), MuonAlignment::saveCSCtoDB(), MuonAlignment::saveDTSurveyToDB(), MuonAlignment::saveDTtoDB(), DQMFileSaver::saveJobReport(), TrackerAlignment::saveToDB(), MisalignedMuonESProducer::saveToDB(), HPDNoiseLibraryReader::setRandomEngine(), ConditionDBWriter< SiStripApvGain >::setTime(), cms::SiPixelDigitizer::SiPixelDigitizer(), SiStripDigitizer::SiStripDigitizer(), SiStripMonitorMuonHLT::SiStripMonitorMuonHLT(), ConditionDBWriter< SiStripApvGain >::storeOnDb(), SubsystemNeutronWriter::SubsystemNeutronWriter(), TFileAdaptor::TFileAdaptor(), TriggerSummaryProducerAOD::TriggerSummaryProducerAOD(), TriggerSummaryProducerRAW::TriggerSummaryProducerRAW(), TxCalculator::TxCalculator(), HLTMonBTagClient::update(), HcalTB02Analysis::update(), l1t::DataWriter::updateIOV(), CaloGeometryDBWriter::write(), WriteESAlignments::write(), BeamFitter::write2DB(), AlCaRecoTriggerBitsRcdUpdate::writeBitsToDB(), SiPixelHistoricInfoEDAClient::writeDB(), SiPixelHistoricInfoDQMClient::writeDB(), AlignmentProducer::writeDB(), GlobalTrackerMuonAlignment::writeGlPosRcd(), CaloGeometryDBWriter::writeIndexed(), l1t::DataWriter::writeKeyList(), l1t::DataWriter::writePayload(), DTCalibDBUtils::writeToDB(), and HcalTB04Analysis::xtalAnalysis().

46  {
47  return ServiceRegistry::instance().template isAvailable<T>();
48  }
static ServiceRegistry & instance()
template<class T>
edm::Service< T >::operator bool ( ) const
inline

Definition at line 50 of file Service.h.

50  {
51  return isAvailable();
52  }
bool isAvailable() const
Definition: Service.h:46
template<class T>
T& edm::Service< T >::operator* ( void  ) const
inline

Definition at line 42 of file Service.h.

42  {
43  return ServiceRegistry::instance().template get<T>();
44  }
static ServiceRegistry & instance()
template<class T>
T* edm::Service< T >::operator-> ( ) const
inline

Definition at line 38 of file Service.h.

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