ATLAS Offline Software
Loading...
Searching...
No Matches
LinearTransformExampleConfig.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3#
4# Simple ComponentAccumulator configuration for running
5# LinearTransformStandaloneExampleAlg
6
7
8
9from AthenaConfiguration.ComponentFactory import CompFactory
10from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
11
12import sys
13
15 result = ComponentAccumulator()
16 result.addEventAlgo(CompFactory.AthHIPExamples.LinearTransformExampleAlg())
17 return result
18
19
20if __name__ == "__main__":
21 from AthenaConfiguration.AllConfigFlags import initConfigFlags
22 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
23 # Set up the job's flags.
24 flags = initConfigFlags()
25 flags.Exec.MaxEvents = 10
26 flags.Input.Files = []
27 flags.fillFromArgs()
28 flags.lock()
29
30 # Set up the main services.
31 acc = MainServicesCfg(flags)
32
33 # Merge example algorithm config
34 acc.merge(LinearTransformExampleCfg(flags))
35
36 # Run the configuration.
37 sys.exit(acc.run().isFailure())