ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
TriggerMenuDB2JSONConverter.Silence Class Reference
Collaboration diagram for TriggerMenuDB2JSONConverter.Silence:

Public Member Functions

def __init__ (self, verbose)
 
def __enter__ (self)
 
def __exit__ (self, type, value, traceback)
 

Public Attributes

 verbose
 
 so
 

Detailed Description

Definition at line 7 of file TriggerMenuDB2JSONConverter.py.

Constructor & Destructor Documentation

◆ __init__()

def TriggerMenuDB2JSONConverter.Silence.__init__ (   self,
  verbose 
)

Definition at line 8 of file TriggerMenuDB2JSONConverter.py.

8  def __init__(self, verbose):
9  self.verbose = verbose

Member Function Documentation

◆ __enter__()

def TriggerMenuDB2JSONConverter.Silence.__enter__ (   self)

Definition at line 10 of file TriggerMenuDB2JSONConverter.py.

10  def __enter__(self):
11  if not self.verbose:
12  self.so = sys.stdout
13  sys.stdout = open(os.devnull, 'w')

◆ __exit__()

def TriggerMenuDB2JSONConverter.Silence.__exit__ (   self,
  type,
  value,
  traceback 
)

Definition at line 14 of file TriggerMenuDB2JSONConverter.py.

14  def __exit__(self, type, value, traceback):
15  if not self.verbose:
16  sys.stdout = self.so
17 

Member Data Documentation

◆ so

TriggerMenuDB2JSONConverter.Silence.so

Definition at line 12 of file TriggerMenuDB2JSONConverter.py.

◆ verbose

TriggerMenuDB2JSONConverter.Silence.verbose

Definition at line 9 of file TriggerMenuDB2JSONConverter.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
Trk::open
@ open
Definition: BinningType.h:40