00001 #include "IOPool/Common/interface/RootServiceChecker.h" 00002 #include "FWCore/ServiceRegistry/interface/Service.h" 00003 #include "FWCore/Utilities/interface/EDMException.h" 00004 #include "FWCore/Utilities/interface/RootHandlers.h" 00005 00006 namespace edm { 00007 RootServiceChecker::RootServiceChecker() { 00008 Service<RootHandlers> rootSvc; 00009 if (!rootSvc.isAvailable()) { 00010 throw edm::Exception(errors::Configuration) << 00011 "The 'InitRootHandlers' service was not specified.\n" << 00012 "This service must be used if PoolSource or PoolOutputModule is used.\n"; 00013 } 00014 } 00015 } 00016