3if __name__ ==
'__main__':
5 from AthenaCommon.Logging
import logging
8 from add_subsystems
import add_subsystems
10 logger = logging.getLogger(
'run_Egamma1BDT_only')
11 logger.setLevel(DEBUG)
14 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
15 flags = initConfigFlags()
16 parser = flags.getArgumentParser()
23 help=
"Decoding L1Calo inputs",
27 args, _ = parser.parse_known_args()
29 from AthenaConfiguration.TestDefaults
import defaultTestFiles, defaultGeometryTags, defaultConditionsTags
31 if not args.filesInput:
32 flags.Input.Files = defaultTestFiles.RAW_RUN3_DATA24
33 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
34 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_DATA24
36 flags.Output.AODFileName =
'AOD.pool.root'
37 flags.Concurrency.NumThreads = 1
38 flags.Concurrency.NumConcurrentEvents = 1
39 flags.Trigger.doLVL1 =
True
41 flags.Scheduler.ShowDataDeps =
True
42 flags.Scheduler.CheckDependencies =
True
43 flags.Scheduler.ShowDataFlow =
True
44 flags.Trigger.EDMVersion = 3
45 flags.Trigger.enableL1CaloPhase1 =
True
47 flags.Debug.DumpEvtStore =
True
49 flags.fillFromArgs(parser=parser)
52 from AthenaConfiguration.DetectorConfigFlags
import setupDetectorFlags
54 setupDetectorFlags(flags, [
'LAr',
'Tile',
'MBTS'], toggle_geometry=
True)
59 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
60 acc = MainServicesCfg(flags)
62 from AthenaConfiguration.Enums
import Format
63 if flags.Input.Format == Format.POOL:
64 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
65 acc.merge(PoolReadCfg(flags))
67 from TrigCaloRec.TrigCaloRecConfig
import hltCaloCellSeedlessMakerCfg
68 acc.merge(hltCaloCellSeedlessMakerCfg(flags, roisKey=
''))
71 subsystems = (
'eFex',)
72 acc.merge(
add_subsystems(flags, subsystems, args, OutputLevel=DEBUG))
74 from TriggerJobOpts.TriggerByteStreamConfig
import ByteStreamReadCfg
75 acc.merge(ByteStreamReadCfg(flags))
77 from TrigCaloRec.TrigCaloRecConfig
import hltCaloCellSeedlessMakerCfg
78 acc.merge(hltCaloCellSeedlessMakerCfg(flags, roisKey=
''))
81 from GlobalSimulation.Egamma1_LArStrip_FexCfg
import (
82 Egamma1_LArStrip_FexCfg,
86 makeCaloCellContainerChecks=
False,
91 from GlobalSimulation.GlobalSimAlgCfg_Egamma1BDT_hypoMult
import GlobalSimulationAlgCfg
92 acc.merge(GlobalSimulationAlgCfg(flags,
96 if acc.run().isFailure():