ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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())
Generated on
for ATLAS Offline Software by
1.17.0