CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Friends
edm::RootHandlers Class Referenceabstract

#include <RootHandlers.h>

Inheritance diagram for edm::RootHandlers:
edm::service::InitRootHandlers

Classes

struct  WarningSentry
 

Public Types

enum  SeverityLevel {
  SeverityLevel::kInfo, SeverityLevel::kWarning, SeverityLevel::kError, SeverityLevel::kSysError,
  SeverityLevel::kFatal
}
 

Public Member Functions

template<typename F >
void ignoreWarningsWhileDoing (F iFunc, SeverityLevel level=SeverityLevel::kWarning)
 
virtual ~RootHandlers ()
 

Private Member Functions

virtual void enableWarnings_ ()=0
 
virtual void ignoreWarnings_ (SeverityLevel level)=0
 
virtual void willBeUsingThreads ()=0
 

Friends

class edm::EventProcessor
 
struct edm::RootHandlers::WarningSentry
 

Detailed Description

Definition at line 7 of file RootHandlers.h.

Member Enumeration Documentation

◆ SeverityLevel

Enumerator
kInfo 
kWarning 
kError 
kSysError 
kFatal 

Definition at line 9 of file RootHandlers.h.

9 { kInfo, kWarning, kError, kSysError, kFatal };

Constructor & Destructor Documentation

◆ ~RootHandlers()

virtual edm::RootHandlers::~RootHandlers ( )
inlinevirtual

Definition at line 23 of file RootHandlers.h.

23 {}

Member Function Documentation

◆ enableWarnings_()

virtual void edm::RootHandlers::enableWarnings_ ( )
privatepure virtual

◆ ignoreWarnings_()

virtual void edm::RootHandlers::ignoreWarnings_ ( SeverityLevel  level)
privatepure virtual

◆ ignoreWarningsWhileDoing()

template<typename F >
void edm::RootHandlers::ignoreWarningsWhileDoing ( F  iFunc,
SeverityLevel  level = SeverityLevel::kWarning 
)
inline

Definition at line 26 of file RootHandlers.h.

References gammaJetAnalysis_CHSJECs_cff::level.

26  {
27  WarningSentry sentry(this, level);
28  iFunc();
29  }

◆ willBeUsingThreads()

virtual void edm::RootHandlers::willBeUsingThreads ( )
privatepure virtual

Friends And Related Function Documentation

◆ edm::EventProcessor

friend class edm::EventProcessor
friend

Definition at line 20 of file RootHandlers.h.

◆ edm::RootHandlers::WarningSentry

friend struct edm::RootHandlers::WarningSentry
friend

Definition at line 19 of file RootHandlers.h.