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 322 of file JetAnalysisCommon.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 326 of file JetAnalysisCommon.py.

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

Member Function Documentation

◆ __iter__()

python.JetAnalysisCommon.ComponentAccumulatorMockUp.__iter__ ( self)

Definition at line 330 of file JetAnalysisCommon.py.

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

◆ addEventAlgo()

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

Definition at line 335 of file JetAnalysisCommon.py.

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

◆ addSequence()

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

Definition at line 333 of file JetAnalysisCommon.py.

333 def addSequence(self, seqName):
334 pass

◆ merge()

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

Definition at line 339 of file JetAnalysisCommon.py.

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

Member Data Documentation

◆ algs

python.JetAnalysisCommon.ComponentAccumulatorMockUp.algs = []

Definition at line 328 of file JetAnalysisCommon.py.

◆ name

python.JetAnalysisCommon.ComponentAccumulatorMockUp.name = name

Definition at line 327 of file JetAnalysisCommon.py.


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