test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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:290
edm::errors::Configuration
Definition:
EDMException.h:37
EDMException.h
edm::Service::isAvailable
bool isAvailable() const
Definition:
Service.h:46
RootHandlers.h
Service.h
edm::RootServiceChecker::RootServiceChecker
RootServiceChecker()
Definition:
RootServiceChecker.cc:7
RootServiceChecker.h
Generated for CMSSW Reference Manual by
1.8.5