4 from AthenaConfiguration.ComponentFactory
import CompFactory
8 if __name__ ==
'__main__':
10 from AthenaCommon.Logging
import logging
13 logger = logging.getLogger(
'run_eEmSortSelectCount')
14 logger.setLevel(DEBUG)
17 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
21 flags.Concurrency.NumThreads = 1
22 flags.Concurrency.NumConcurrentEvents = 1
23 flags.Trigger.doLVL1 =
True
26 flags.Concurrency.NumThreads = 1
27 flags.Concurrency.NumConcurrentEvents = 1
29 flags.GeoModel.AtlasVersion=
"ATLAS-R3S-2021-03-01-00"
31 flags.Scheduler.ShowDataDeps =
True
32 flags.Scheduler.CheckDependencies =
True
33 flags.Scheduler.ShowDataFlow =
True
34 flags.Trigger.EDMVersion = 3
35 flags.Trigger.doLVL1 =
True
36 flags.Trigger.enableL1CaloPhase1 =
True
38 parser = flags.getArgumentParser()
39 args = flags.fillFromArgs(parser=parser)
45 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
49 hypoTestBench_alg = CompFactory.GlobalSim.HypoTestBenchAlg(
52 base_data =
"/eos/atlas/atlascerngroupdisk/data-art/"\
53 "large-input/trig-val/GlobalSimTest/eEmSortSelectCount/"
59 hypoTestBench_alg.testsFileName=os.path.join(base_data,
60 '2025-03-24_tests.dat')
62 exp_mults_data = os.path.join(base_data,
63 '2025-03-24_expected_multiplicity.dat')
64 hypoTestBench_alg.expectedMultsFileName = exp_mults_data
66 exp_tobs_data = os.path.join(base_data,
'2025-03-24_expected_tobs.dat')
67 hypoTestBench_alg.expectedTobsFileName = exp_tobs_data
71 hypoTestBench_alg.test_vecs = [
'0x1000000000000000fe']
72 hypoTestBench_alg.expTobs =
'0x' +
'0'* (198*8)
73 hypoTestBench_alg.expMults =
'0x' +
'0' * 13
76 acc.addEventAlgo(hypoTestBench_alg)
79 hypoTestBench_alg.OutputLevel = DEBUG
81 from GlobalSimAlgCfg_hypo_container
import GlobalSimulationAlgCfg
84 if acc.run().isFailure():