ATLAS Offline Software
Public Member Functions | Static Private Attributes | List of all members
python.AtlasSemantics.ToolHandleArraySemantics Class Reference
Inheritance diagram for python.AtlasSemantics.ToolHandleArraySemantics:
Collaboration diagram for python.AtlasSemantics.ToolHandleArraySemantics:

Public Member Functions

def __init__ (self, cpp_type)
 
def default (self, value)
 
def store (self, value)
 
def merge (self, b, a)
 

Static Private Attributes

tuple __handled_types__ = ("PrivateToolHandleArray",)
 

Detailed Description

Private alg-tools need recusive merging (de-duplication):

Definition at line 198 of file AtlasSemantics.py.

Constructor & Destructor Documentation

◆ __init__()

def python.AtlasSemantics.ToolHandleArraySemantics.__init__ (   self,
  cpp_type 
)

Definition at line 203 of file AtlasSemantics.py.

203  def __init__(self,cpp_type):
204  super(ToolHandleArraySemantics, self).__init__(cpp_type)
205 

Member Function Documentation

◆ default()

def python.AtlasSemantics.ToolHandleArraySemantics.default (   self,
  value 
)

Definition at line 206 of file AtlasSemantics.py.

206  def default(self,value):
207  return copy.copy(value)
208 

◆ merge()

def python.AtlasSemantics.ToolHandleArraySemantics.merge (   self,
  b,
  a 
)

Definition at line 215 of file AtlasSemantics.py.

215  def merge(self,b,a):
216  for bTool in b:
217  try:
218  #If a tool with that name exists in a, we'll merge it
219  a.__getitem__(bTool.getName()).merge(bTool)
220  except IndexError:
221  #Tool does not exists in a, append it
222  a.append(bTool)
223  return a
224 

◆ store()

def python.AtlasSemantics.ToolHandleArraySemantics.store (   self,
  value 
)

Definition at line 209 of file AtlasSemantics.py.

209  def store(self,value):
210  if not isinstance(value,PrivateToolHandleArray):
211  #try to convert the value to a PrivateToolHandleArray
212  value=PrivateToolHandleArray(value)
213  return value
214 

Member Data Documentation

◆ __handled_types__

tuple python.AtlasSemantics.ToolHandleArraySemantics.__handled_types__ = ("PrivateToolHandleArray",)
staticprivate

Definition at line 202 of file AtlasSemantics.py.


The documentation for this class was generated from the following file:
store
StoreGateSvc * store
Definition: fbtTestBasics.cxx:69
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.utility.LHE.merge
def merge(input_file_pattern, output_file)
Merge many input LHE files into a single output file.
Definition: LHE.py:17
python.CaloScaleNoiseConfig.default
default
Definition: CaloScaleNoiseConfig.py:79
merge
Definition: merge.py:1