ATLAS Offline Software
Control/AthenaConfiguration/python/AlgSequence.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
2 # replaces AthenaCommon/AlgSequence.py for GaudiConfig2-based configs
3 
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 
7 class AthSequencer(CompFactory.AthSequencer):
8  """Sequence of Gaudi algorithms"""
9 
10  def __init__( self, name = "AthSequencer", **kwargs ):
11  # call base class __init__ to pass new name
12  super( AthSequencer, self ).__init__( name, **kwargs )
13 
14  def __iadd__(self,algo):
15  super( AthSequencer, self ).Members.append(algo.__cpp_type__+"/"+algo.name)
16 
17  def __len__(self):
18  return len(super( AthSequencer, self ).Members)
AthSequencer
ClassName: AthSequencer.
Definition: AthSequencer.h:40
python.AlgSequence.AthSequencer.__iadd__
def __iadd__(self, algo)
Definition: Control/AthenaConfiguration/python/AlgSequence.py:14
python.AlgSequence.AthSequencer.__init__
def __init__(self, name="AthSequencer", **kwargs)
Definition: Control/AthenaCommon/python/AlgSequence.py:26
python.AlgSequence.AthSequencer.__len__
def __len__(self)
Definition: Control/AthenaConfiguration/python/AlgSequence.py:17