00001 #ifndef FWCore_Services_InitRootHandlers_h 00002 #define FWCore_Services_InitRootHandlers_h 00003 00004 #include "FWCore/Utilities/interface/RootHandlers.h" 00005 00006 namespace edm { 00007 class ConfigurationDescriptions; 00008 class ParameterSet; 00009 00010 namespace service { 00011 class InitRootHandlers : public RootHandlers { 00012 00013 public: 00014 explicit InitRootHandlers(ParameterSet const& pset); 00015 virtual ~InitRootHandlers(); 00016 00017 static void fillDescriptions(ConfigurationDescriptions& descriptions); 00018 00019 private: 00020 virtual void disableErrorHandler_(); 00021 virtual void enableErrorHandler_(); 00022 virtual void enableErrorHandlerWithoutWarnings_(); 00023 bool unloadSigHandler_; 00024 bool resetErrHandler_; 00025 bool autoLibraryLoader_; 00026 }; 00027 00028 inline 00029 bool isProcessWideService(InitRootHandlers const*) { 00030 return true; 00031 } 00032 00033 } // end of namespace service 00034 } // end of namespace edm 00035 00036 #endif // InitRootHandlers_H