ATLAS Offline Software
Loading...
Searching...
No Matches
python.JetAnalysisCommon.ComponentAccumulatorMockUp Class Reference
Collaboration diagram for python.JetAnalysisCommon.ComponentAccumulatorMockUp:

Public Member Functions

 __init__ (self, name="ca")
 __iter__ (self)
 addSequence (self, seqName)
 addEventAlgo (self, alg, primary=False, sequenceName="")
 merge (self, ca, sequenceName="")

Public Attributes

 name = name
list algs = []

Detailed Description

Provdide similar interface than AthenaConfiguration.ComponentAccumulator and also very simplistic
merging of list of algorithms 

Definition at line 321 of file JetAnalysisCommon.py.

Constructor & Destructor Documentation

◆ __init__()

python.JetAnalysisCommon.ComponentAccumulatorMockUp.__init__ ( self,
name = "ca" )

Definition at line 325 of file JetAnalysisCommon.py.

325 def __init__(self, name="ca"):
326 self.name = name
327 self.algs = []
328

Member Function Documentation

◆ __iter__()

python.JetAnalysisCommon.ComponentAccumulatorMockUp.__iter__ ( self)

Definition at line 329 of file JetAnalysisCommon.py.

329 def __iter__(self):
330 return iter(self.algs)
331

◆ addEventAlgo()

python.JetAnalysisCommon.ComponentAccumulatorMockUp.addEventAlgo ( self,
alg,
primary = False,
sequenceName = "" )

Definition at line 334 of file JetAnalysisCommon.py.

334 def addEventAlgo(self, alg, primary=False, sequenceName=""):
335 self.algs +=[alg]
336 setattr(self, alg._name, alg)
337

◆ addSequence()

python.JetAnalysisCommon.ComponentAccumulatorMockUp.addSequence ( self,
seqName )

Definition at line 332 of file JetAnalysisCommon.py.

332 def addSequence(self, seqName):
333 pass

◆ merge()

python.JetAnalysisCommon.ComponentAccumulatorMockUp.merge ( self,
ca,
sequenceName = "" )

Definition at line 338 of file JetAnalysisCommon.py.

338 def merge(self, ca, sequenceName=""):
339 myTNs = set( alg.typeAndName() for alg in self.algs)
340 for alg in ca.algs:
341 tn = alg.typeAndName()
342 if tn not in myTNs:
343 self.algs.append(alg)
344 setattr(self, alg._name, alg)
345
346
STL class.
Definition merge.py:1

Member Data Documentation

◆ algs

python.JetAnalysisCommon.ComponentAccumulatorMockUp.algs = []

Definition at line 327 of file JetAnalysisCommon.py.

◆ name

python.JetAnalysisCommon.ComponentAccumulatorMockUp.name = name

Definition at line 326 of file JetAnalysisCommon.py.


The documentation for this class was generated from the following file: