ATLAS Offline Software
Simulation
Overlay
TrackOverlay
TrackOverlayRec
python
DummyTest.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaPython.PyAthenaComps
import
Alg, StatusCode
5
6
class
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
13
def
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
grepfile.info
info
Definition:
grepfile.py:38
DummyTest.TestAlg.__init__
def __init__(self, name)
Definition:
DummyTest.py:7
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition:
JetAnalysisCommon.py:302
DummyTest.TestAlg
Definition:
DummyTest.py:6
DummyTest.DummyCfg
def DummyCfg(flags, **kwargs)
Definition:
DummyTest.py:13
DummyTest.TestAlg.execute
def execute(self)
Definition:
DummyTest.py:9
Generated on Mon Dec 23 2024 21:09:33 for ATLAS Offline Software by
1.8.18