ATLAS Offline Software
Public Member Functions | List of all members
SlimmingHelper.lockable_list Class Reference
Inheritance diagram for SlimmingHelper.lockable_list:
Collaboration diagram for SlimmingHelper.lockable_list:

Public Member Functions

def __init__ (self, data=[])
 
def append (self, name)
 
def __setattr__ (self, name, value)
 
def lock (self)
 

Detailed Description

Definition at line 47 of file SlimmingHelper.py.

Constructor & Destructor Documentation

◆ __init__()

def SlimmingHelper.lockable_list.__init__ (   self,
  data = [] 
)

Definition at line 48 of file SlimmingHelper.py.

48  def __init__(self,data=[]):
49  list.__init__(self,data)
50  self.__dict__["_locked"] = False

Member Function Documentation

◆ __setattr__()

def SlimmingHelper.lockable_list.__setattr__ (   self,
  name,
  value 
)

Definition at line 57 of file SlimmingHelper.py.

57  def __setattr__(self,name,value):
58  if self._locked is True:
59  msg.error("Attempting to Modify SlimmingHelper after BuildFinalItemList has Been Called")
60  raise RuntimeError("Late Modification to SlimmingHelper do not modify after calling BuildFinalItemList")
61  else:
62  self.__dict__[name] = value

◆ append()

def SlimmingHelper.lockable_list.append (   self,
  name 
)

Definition at line 51 of file SlimmingHelper.py.

51  def append(self,name):
52  if self._locked is True:
53  msg.error("Attempting to Modify SlimmingHelper after BuildFinalItemList has Been Called")
54  raise RuntimeError("Late Modification to SlimmingHelper do not modify after calling BuildFinalItemList")
55  else:
56  return list.append(self, name)

◆ lock()

def SlimmingHelper.lockable_list.lock (   self)

Definition at line 63 of file SlimmingHelper.py.

63  def lock(self):
64  self.__dict__["_locked"] = True
65 
66 # Builds the "NamesAndTypes" map needed to set up the item list

The documentation for this class was generated from the following file:
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.PyAthenaComps.__setattr__
__setattr__
Definition: PyAthenaComps.py:39