3 if __name__ ==
'__main__':
5 from AthenaCommon.Logging
import logging
8 from add_subsystems
import add_subsystems
10 logger = logging.getLogger(
'run_Egamma1_ERatio_only')
11 logger.setLevel(DEBUG)
15 from argparse
import RawTextHelpFormatter
18 parser = argparse.ArgumentParser(
19 "Running GlobalSim Egamma1_ERatio_only",
20 formatter_class=RawTextHelpFormatter)
30 help=
"files to process",
40 help=
"Maximum number of events will be executed.",
50 help=
"Number of events to skip.",
60 help=
"Decoding L1Calo inputs",
65 args = parser.parse_args()
72 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
76 flags.Exec.MaxEvents = args.nevent
79 flags.Input.Files = args.inputFiles
81 flags.Input.Files = [
'/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/CampaignInputs/data23/RAW/data23_13p6TeV.00452463.physics_Main.daq.RAW/540events.data23_13p6TeV.00452463.physics_Main.daq.RAW._lb0514._SFO-16._0004.data']
84 flags.Output.AODFileName =
'AOD.pool.root'
85 flags.Common.isOnline =
not flags.Input.isMC
86 flags.Concurrency.NumThreads = 1
87 flags.Concurrency.NumConcurrentEvents = 1
88 flags.Trigger.doLVL1 =
True
91 flags.Concurrency.NumThreads = 1
92 flags.Concurrency.NumConcurrentEvents = 1
94 flags.GeoModel.AtlasVersion=
"ATLAS-R3S-2021-03-01-00"
96 flags.Scheduler.ShowDataDeps =
True
97 flags.Scheduler.CheckDependencies =
True
98 flags.Scheduler.ShowDataFlow =
True
99 flags.Trigger.EDMVersion = 3
100 flags.Trigger.doLVL1 =
True
101 flags.Trigger.enableL1CaloPhase1 =
True
105 from AthenaConfiguration.DetectorConfigFlags
import setupDetectorFlags
112 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
117 from TrigConfigSvc.TrigConfigSvcCfg
import L1ConfigSvcCfg, generateL1Menu
121 from AthenaConfiguration.Enums
import Format
122 if flags.Input.Format == Format.POOL:
123 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
126 from TrigCaloRec.TrigCaloRecConfig
import hltCaloCellSeedlessMakerCfg
130 subsystems = (
'eFex',)
133 from TriggerJobOpts.TriggerByteStreamConfig
import ByteStreamReadCfg
136 from TrigCaloRec.TrigCaloRecConfig
import hltCaloCellSeedlessMakerCfg
140 from Egamma1_LArStrip_FexCfg
import Egamma1_LArStrip_FexCfg
143 makeCaloCellContainerChecks=
False,
148 from GlobalSimAlgCfg_ERatio
import GlobalSimulationAlgCfg
154 if acc.run().isFailure():