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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 320 of file JetAnalysisCommon.py.

320  def __init__(self, name="ca"):
321  self.name = name
322  self.algs = []
323 

Member Function Documentation

◆ __iter__()

def python.JetAnalysisCommon.ComponentAccumulatorMockUp.__iter__ (   self)

Definition at line 324 of file JetAnalysisCommon.py.

324  def __iter__(self):
325  return iter(self.algs)
326 

◆ addEventAlgo()

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

Definition at line 329 of file JetAnalysisCommon.py.

329  def addEventAlgo(self, alg, primary=False, sequenceName=""):
330  self.algs +=[alg]
331  setattr(self, alg._name, alg)
332 

◆ addSequence()

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

Definition at line 327 of file JetAnalysisCommon.py.

327  def addSequence(self, seqName):
328  pass

◆ merge()

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

Definition at line 333 of file JetAnalysisCommon.py.

333  def merge(self, ca, sequenceName=""):
334  myTNs = set( alg.typeAndName() for alg in self.algs)
335  for alg in ca.algs:
336  tn = alg.typeAndName()
337  if tn not in myTNs:
338  self.algs.append(alg)
339  setattr(self, alg._name, alg)
340 
341 

Member Data Documentation

◆ algs

python.JetAnalysisCommon.ComponentAccumulatorMockUp.algs

Definition at line 322 of file JetAnalysisCommon.py.

◆ name

python.JetAnalysisCommon.ComponentAccumulatorMockUp.name

Definition at line 321 of file JetAnalysisCommon.py.


The documentation for this class was generated from the following file:
createLinkingScheme.iter
iter
Definition: createLinkingScheme.py:62
python.Bindings.__iter__
__iter__
Definition: Control/AthenaPython/python/Bindings.py:794
python.processes.powheg.ZZj_MiNNLO.ZZj_MiNNLO.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZj_MiNNLO.py:18
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.utility.LHE.merge
def merge(input_file_pattern, output_file)
Merge many input LHE files into a single output file.
Definition: LHE.py:29