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 70 of file test6_CPVFlavorTaggerEfficiency.py.

Constructor & Destructor Documentation

◆ __init__()

def __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
76 self.level = level
77

Member Function Documentation

◆ __enter__()

def __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__()

def __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

the level to quiet

Definition at line 76 of file test6_CPVFlavorTaggerEfficiency.py.

◆ oldlevel

oldlevel

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: