File indexing completed on 2024-04-06 12:19:05
0001 #include "IOPool/Common/interface/RootServiceChecker.h"
0002 #include "FWCore/ServiceRegistry/interface/Service.h"
0003 #include "FWCore/Utilities/interface/EDMException.h"
0004 #include "FWCore/Utilities/interface/RootHandlers.h"
0005
0006 namespace edm {
0007 RootServiceChecker::RootServiceChecker() {
0008 Service<RootHandlers> rootSvc;
0009 if (!rootSvc.isAvailable()) {
0010 throw edm::Exception(errors::Configuration)
0011 << "The 'InitRootHandlers' service was not specified.\n"
0012 << "This service must be used if PoolSource or PoolOutputModule is used.\n";
0013 }
0014 }
0015 }