ATLAS Offline Software
Control
AthenaExamples
AthExFortranAlgorithm
share
FortranAlgorithmConfig.py
Go to the documentation of this file.
1
#!/usr/bin/env athena.py
2
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
6
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
7
8
flags =
initConfigFlags
()
9
flags.Exec.MaxEvents = 1
10
flags.fillFromArgs()
11
flags.lock()
12
13
cfg =
MainServicesCfg
(flags)
14
cfg.addEventAlgo( CompFactory.FortranAlgorithm(
15
LUN=42, fileName=
"FortranAlgorithmInput.data"
) )
16
17
import
sys
18
sys.exit(cfg.run().isFailure())
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition:
MainServicesConfig.py:310
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition:
AllConfigFlags.py:19
Generated on Tue Sep 30 2025 21:10:01 for ATLAS Offline Software by
1.8.18