Belle II Software development
Quiet Class Reference

Public Member Functions

def __init__ (self, level=ROOT.kInfo+1)
 
def __enter__ (self)
 
def __exit__ (self, type, value, traceback)
 

Public Attributes

 level
 the level to quiet
 
 oldlevel
 the previously set level to be ignored
 

Detailed Description

Context handler class to quiet errors in a 'with' statement

Definition at line 24 of file defaultEvaluationParameters.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  level = ROOT.kInfo + 1 
)
Class constructor

Definition at line 27 of file defaultEvaluationParameters.py.

27 def __init__(self, level=ROOT.kInfo + 1):
28 """Class constructor"""
29
30 self.level = level
31

Member Function Documentation

◆ __enter__()

def __enter__ (   self)
Enter the context

Definition at line 32 of file defaultEvaluationParameters.py.

32 def __enter__(self):
33 """Enter the context"""
34
35 self.oldlevel = ROOT.gErrorIgnoreLevel
36 ROOT.gErrorIgnoreLevel = self.level
37

◆ __exit__()

def __exit__ (   self,
  type,
  value,
  traceback 
)
Exit the context

Definition at line 38 of file defaultEvaluationParameters.py.

38 def __exit__(self, type, value, traceback):
39 """Exit the context"""
40 ROOT.gErrorIgnoreLevel = self.oldlevel
41
42
43# dilution factor binning of Belle

Member Data Documentation

◆ level

level

the level to quiet

Definition at line 30 of file defaultEvaluationParameters.py.

◆ oldlevel

oldlevel

the previously set level to be ignored

Definition at line 35 of file defaultEvaluationParameters.py.


The documentation for this class was generated from the following file: