ATLAS Offline Software
Loading...
Searching...
No Matches
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
4from AthenaConfiguration.ComponentFactory import CompFactory
5from AthenaConfiguration.MainServicesConfig import MainServicesCfg
6from AthenaConfiguration.AllConfigFlags import initConfigFlags
7
8flags = initConfigFlags()
9flags.Exec.MaxEvents = 1
10flags.fillFromArgs()
11flags.lock()
12
13cfg = MainServicesCfg(flags)
14cfg.addEventAlgo( CompFactory.FortranAlgorithm(
15 LUN=42, fileName="FortranAlgorithmInput.data") )
16
17import sys
18sys.exit(cfg.run().isFailure())