Belle II Software development
Quiet Class Reference

Public Member Functions

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

Public Attributes

 level = level
 the level to quiet
 
 oldlevel = ROOT.gErrorIgnoreLevel
 the previously set level to be ignored
 

Detailed Description

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

Definition at line 70 of file test6_CPVFlavorTaggerEfficiency.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 73 of file test6_CPVFlavorTaggerEfficiency.py.

73 def __init__(self, level=ROOT.kInfo + 1):
74 """Class constructor"""
75 ## the level to quiet
76 self.level = level
77

Member Function Documentation

◆ __enter__()

__enter__ ( self)
Enter the context

Definition at line 78 of file test6_CPVFlavorTaggerEfficiency.py.

78 def __enter__(self):
79 """Enter the context"""
80
81 self.oldlevel = ROOT.gErrorIgnoreLevel
82 ROOT.gErrorIgnoreLevel = self.level
83

◆ __exit__()

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

Definition at line 84 of file test6_CPVFlavorTaggerEfficiency.py.

84 def __exit__(self, type, value, traceback):
85 """Exit the context"""
86 ROOT.gErrorIgnoreLevel = self.oldlevel
87
88

Member Data Documentation

◆ level

level = level

the level to quiet

Definition at line 76 of file test6_CPVFlavorTaggerEfficiency.py.

◆ oldlevel

oldlevel = ROOT.gErrorIgnoreLevel

the previously set level to be ignored

Definition at line 81 of file test6_CPVFlavorTaggerEfficiency.py.


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