ATLAS Offline Software
Loading...
Searching...
No Matches
DummyTest.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaPython.PyAthenaComps import Alg, StatusCode
5
6class TestAlg (Alg):
7 def __init__(self, name):
8 super(TestAlg, self).__init__(name)
9 def execute(self):
10 self.msg.info("======Running "+self.name+"=========")
11 return StatusCode.Success
12
13def DummyCfg(flags, **kwargs):
14 acc = ComponentAccumulator()
15 doTrackOverlay = getattr(flags.TrackOverlay, "ActiveConfig.doTrackOverlay", None)
16 from pprint import pprint
17 pprint(vars(flags))
18 acc.addEventAlgo(TestAlg(name=('Sig_' if doTrackOverlay else '')+'Dummy'))
19 return acc
20
__init__(self, name)
Definition DummyTest.py:7
DummyCfg(flags, **kwargs)
Definition DummyTest.py:13