Main Page
Namespaces
Classes
Package Documentation
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
}
16
edm::Service
Definition:
Service.h:30
Exception
Definition:
hltDiff.cc:292
edm::errors::Configuration
Definition:
EDMException.h:36
EDMException.h
edm::Service::isAvailable
bool isAvailable() const
Definition:
Service.h:46
RootHandlers.h
Service.h
edm::RootServiceChecker::RootServiceChecker
RootServiceChecker()
Definition:
RootServiceChecker.cc:7
edm
HLT enums.
Definition:
AlignableModifier.h:17
RootServiceChecker.h
Generated for CMSSW Reference Manual by
1.8.11