ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
python.Configurable.ConfigurableCABehavior Class Reference
Collaboration diagram for python.Configurable.ConfigurableCABehavior:

Public Member Functions

def __init__ (self, target_state=True)
 
def __enter__ (self)
 
def __exit__ (self, exception_type, exception_value, traceback)
 

Private Attributes

 _target_state
 
 _previous_state
 

Detailed Description

Definition at line 34 of file Configurable.py.

Constructor & Destructor Documentation

◆ __init__()

def python.Configurable.ConfigurableCABehavior.__init__ (   self,
  target_state = True 
)

Definition at line 35 of file Configurable.py.

35  def __init__(self, target_state=True):
36  self._target_state = target_state
37  self._previous_state = None

Member Function Documentation

◆ __enter__()

def python.Configurable.ConfigurableCABehavior.__enter__ (   self)

Definition at line 38 of file Configurable.py.

38  def __enter__(self):
39  self._previous_state = Configurable._useGlobalInstances
40  # CA does not use global instances:
41  Configurable._useGlobalInstances = not self._target_state

◆ __exit__()

def python.Configurable.ConfigurableCABehavior.__exit__ (   self,
  exception_type,
  exception_value,
  traceback 
)

Definition at line 42 of file Configurable.py.

42  def __exit__(self, exception_type, exception_value, traceback):
43  Configurable._useGlobalInstances = self._previous_state
44 
45 

Member Data Documentation

◆ _previous_state

python.Configurable.ConfigurableCABehavior._previous_state
private

Definition at line 37 of file Configurable.py.

◆ _target_state

python.Configurable.ConfigurableCABehavior._target_state
private

Definition at line 36 of file Configurable.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