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(), L1MuonOverlapParamsDBProducer::analyze(), DBWriter::analyze(), SiStripDetVOffFakeBuilder::analyze(), SiStripNoisesBuilder::analyze(), SiStripApvGainBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), GBRForestWriter::analyze(), SurveyInputTrackerFromDB::analyze(), BufferedBoostIODBWriter::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), TrackerSystematicMisalignments::analyze(), SiStripApvGainBuilderFromTag::analyze(), SiStripFEDErrorsDQM::analyze(), EcalTestDevDB::analyze(), BoostIODBWriter< DataType >::analyze(), FFTJetCorrectorDBWriter::analyze(), TrackerGeometryCompare::analyze(), BaseEvtVtxGenerator::BaseEvtVtxGenerator(), edm::BaseFlatGunProducer::BaseFlatGunProducer(), BTagCalibrationDbCreator::beginJob(), METCorrectorDBWriter::beginJob(), PhysicsPerformanceDBWriterTFormula_fromfile_WPandPL::beginJob(), JetResolutionDBWriter::beginJob(), QGLikelihoodSystematicsDBWriter::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload_IOV::beginJob(), JetCorrectorDBWriter::beginJob(), XMLGeometryBuilder::beginJob(), QGLikelihoodDBWriter::beginJob(), FFTJetVertexAdder::beginJob(), SiStripSpyDisplayModule::beginJob(), edm::EventProcessor::beginLumi(), EcalDigiProducer::beginLuminosityBlock(), SiStripFedCablingBuilder::beginRun(), HcalParametersDBBuilder::beginRun(), PTrackerParametersDBBuilder::beginRun(), GEMRecoIdealDBLoader::beginRun(), DTRecoIdealDBLoader::beginRun(), ME0RecoIdealDBLoader::beginRun(), GeometricDetLoader::beginRun(), CSCRecoIdealDBLoader::beginRun(), PGeometricDetExtraBuilder::beginRun(), PGeometricDetBuilder::beginRun(), PHGCalParametersDBBuilder::beginRun(), RPCRecoIdealDBLoader::beginRun(), LumiProducer::beginRun(), ExternalLHEProducer::beginRunProduce(), MaterialBudgetCastorHistos::book(), MaterialBudgetHcalHistos::book(), MaterialBudget::book(), MaterialBudgetForward::book(), DQMStoreStats::calcstats(), ElectronEnergyCalibrator::calibrate(), CastorDigiProducer::CastorDigiProducer(), GenMuonRadiationAlgorithm::compFSR(), EcalDBCopy::copyToDB(), ESDBCopy::copyToDB(), EcalTPGDBCopy::copyToDB(), CSCDigiProducer::CSCDigiProducer(), edm::DataMixingSiStripMCDigiWorker::DataMixingSiStripMCDigiWorker(), DreamSD::DreamSD(), DTDigitizer::DTDigitizer(), CocoaDBMgr::DumpCocoaResults(), edm::DuplicateTreeSentry::dup(), EcalTBMCInfoProducer::EcalTBMCInfoProducer(), ElectronStudy::ElectronStudy(), ESElectronicsSim::encode(), PhysicsTools::MVATrainerSave::endJob(), PhysicsTools::MVATrainerContainerSave::endJob(), BeamSpotWrite2DB::endJob(), SurveyDBUploader::endJob(), CentralityTableProducer::endJob(), StoreEcalCondition::endJob(), SiStripLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::endOfJob(), SiPixelLorentzAngleCalibration::endOfJob(), SiStripFedCablingManipulator::endRun(), AlcaBeamSpotHarvester::endRun(), DummyCondDBWriter< TObject, TObjectO, TRecord >::endRun(), PCLMetadataWriter::endRun(), LaserAlignment::endRunProduce(), edm::storage::StatisticsSenderService::filePreCloseEvent(), DIPLumiProducer::filldetailcache(), ExpressLumiProducer::fillLSCache(), LumiProducer::fillLSCache(), DIPLumiProducer::fillsummarycache(), ElectronEnergyCalibratorRun2::gauss(), PhotonEnergyCalibratorRun2::gauss(), GaussianZBeamSpotFilter::GaussianZBeamSpotFilter(), cond::persistency::getConnectionParams(), RandomEngineStateProducer::globalBeginLuminosityBlockProduce(), HCalSD::HCalSD(), HcalTB02Histo::HcalTB02Histo(), HcalTB04Histo::HcalTB04Histo(), HcalTB06Histo::HcalTB06Histo(), HcalTestHistoManager::HcalTestHistoManager(), HectorProducer::HectorProducer(), HFGflash::HFGflash(), HFShowerParam::HFShowerParam(), edm::FileLocator::init(), TStorageFactoryFile::Initialize(), popcon::PopCon::initialize(), l1t::DataWriter::lastPayloadToken(), l1t::DataWriterExt::lastPayloadToken(), edm::Service< SiStripCondObjBuilderFromDb >::operator bool(), l1t::DataWriterExt::payloadToken(), l1t::DataWriter::payloadToken(), edm::PileUp::PileUp(), XrdAdaptor::XrdStatisticsService::postEndJob(), edm::EventProcessor::processEvent(), RandomEngineStateProducer::produce(), ParticleReplacerZtautau::produce(), MisalignedTrackerESProducer::produce(), BetaBoostEvtVtxGenerator::produce(), PythiaFilterIsolatedTrack::PythiaFilterIsolatedTrack(), RandomEngineAndDistribution::RandomEngineAndDistribution(), edm::RandomEngineSentry< T >::RandomEngineSentry(), edm::RandomFilter::RandomFilter(), edm::service::RandomNumberGeneratorService::readFromLuminosityBlock(), l1t::DataWriterExt::readObject(), l1t::DataWriter::readObject(), RFIOStorageMaker::RFIOStorageMaker(), 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(), cms::SiPixelDigitizer::SiPixelDigitizer(), SiStripDigitizer::SiStripDigitizer(), ConditionDBWriter< SiStripApvGain >::storeOnDb(), SubsystemNeutronWriter::SubsystemNeutronWriter(), TFileAdaptor::TFileAdaptor(), TriggerSummaryProducerAOD::TriggerSummaryProducerAOD(), TriggerSummaryProducerRAW::TriggerSummaryProducerRAW(), XrdAdaptor::RequestManager::updateCurrentServer(), l1t::DataWriterExt::updateIOV(), l1t::DataWriter::updateIOV(), CaloGeometryDBWriter::write(), WriteESAlignments::write(), BeamFitter::write2DB(), AlCaRecoTriggerBitsRcdUpdate::writeBitsToDB(), AlignmentProducer::writeDB(), PCLTrackerAlProducer::writeDB(), GlobalTrackerMuonAlignment::writeGlPosRcd(), CaloGeometryDBWriter::writeIndexed(), l1t::DataWriterExt::writeKeyList(), l1t::DataWriter::writeKeyList(), l1t::DataWriterExt::writePayload(), l1t::DataWriter::writePayload(), and DTCalibDBUtils::writeToDB().

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()