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

Public Member Functions

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

Public Attributes

 name
 
 algs
 

Detailed Description

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

Definition at line 276 of file JetAnalysisCommon.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 280 of file JetAnalysisCommon.py.

280  def __init__(self, name="ca"):
281  self.name = name
282  self.algs = []
283 

Member Function Documentation

◆ __iter__()

def python.JetAnalysisCommon.ComponentAccumulatorMockUp.__iter__ (   self)

Definition at line 284 of file JetAnalysisCommon.py.

284  def __iter__(self):
285  return iter(self.algs)
286 

◆ addEventAlgo()

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

Definition at line 289 of file JetAnalysisCommon.py.

289  def addEventAlgo(self, alg, primary=False, sequenceName=""):
290  self.algs +=[alg]
291  setattr(self, alg._name, alg)
292 

◆ addSequence()

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

Definition at line 287 of file JetAnalysisCommon.py.

287  def addSequence(self, seqName):
288  pass

◆ merge()

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

Definition at line 293 of file JetAnalysisCommon.py.

293  def merge(self, ca, sequenceName=""):
294  myTNs = set( alg.typeAndName() for alg in self.algs)
295  for alg in ca.algs:
296  tn = alg.typeAndName()
297  if tn not in myTNs:
298  self.algs.append(alg)
299  setattr(self, alg._name, alg)
300 
301 

Member Data Documentation

◆ algs

python.JetAnalysisCommon.ComponentAccumulatorMockUp.algs

Definition at line 282 of file JetAnalysisCommon.py.

◆ name

python.JetAnalysisCommon.ComponentAccumulatorMockUp.name

Definition at line 281 of file JetAnalysisCommon.py.


The documentation for this class was generated from the following file:
python.Bindings.__iter__
__iter__
Definition: Control/AthenaPython/python/Bindings.py:791
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
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:29