IOPool
Common
src
RootServiceChecker.cc
Go to the documentation of this file.
1
#include "
IOPool/Common/interface/RootServiceChecker.h
"
2
#include "
FWCore/ServiceRegistry/interface/Service.h
"
3
#include "
FWCore/Utilities/interface/EDMException.h
"
4
#include "
FWCore/Utilities/interface/RootHandlers.h
"
5
6
namespace
edm
{
7
RootServiceChecker::RootServiceChecker
() {
8
Service<RootHandlers>
rootSvc;
9
if
(!rootSvc.
isAvailable
()) {
10
throw
edm::Exception
(
errors::Configuration
)
11
<<
"The 'InitRootHandlers' service was not specified.\n"
12
<<
"This service must be used if PoolSource or PoolOutputModule is used.\n"
;
13
}
14
}
15
}
// namespace edm
RootServiceChecker.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::Service::isAvailable
bool isAvailable() const
Definition:
Service.h:40
edm::RootServiceChecker::RootServiceChecker
RootServiceChecker()
Definition:
RootServiceChecker.cc:7
EDMException.h
Service.h
edm::Service
Definition:
Service.h:30
Exception
Definition:
hltDiff.cc:246
RootHandlers.h
edm::errors::Configuration
Definition:
EDMException.h:36
Generated for CMSSW Reference Manual by
1.8.16