ATLAS Offline Software
Jets.py
Go to the documentation of this file.
1 #!/usr/bin/env athena.py --CA
2 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 
4 if __name__=="__main__":
5  # Setup flags with custom input-choice
6  from AthenaConfiguration.AllConfigFlags import initConfigFlags
7  flags = initConfigFlags()
8  flags.addFlag('RecExRecoTest.doMC', False, help='custom option for RexExRecoText to run data or MC test')
9  flags.fillFromArgs()
10 
11  # Use latest Data or MC
12  # This runs from a recent AOD, to check compatibility of any recent jet changes.
13  # Tests of jet reconstruction in RAWtoALL is performed by RecJobTransformTests
14  from AthenaConfiguration.TestDefaults import defaultTestFiles, defaultConditionsTags
15  if flags.RecExRecoTest.doMC is True:
16  flags.Input.Files = defaultTestFiles.AOD_RUN3_MC
17  flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
18  else:
19  flags.Input.Files = defaultTestFiles.AOD_RUN3_DATA
20  flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_DATA
21 
22  # Ensure MC-based modifiers are removed (!74396)
23  flags.Jet.strictMode = False
24 
25  # We have to set the production step, which PFFlow muon linking uses for autoconfiguration.
26  from AthenaConfiguration.Enums import ProductionStep
27  flags.Common.ProductionStep=ProductionStep.Derivation
28 
29  flags.lock()
30 
31  from JetRecConfig.JetRecoSteering import JetRecoSteeringTest
32  JetRecoSteeringTest(flags)
python.JetRecoSteering.JetRecoSteeringTest
def JetRecoSteeringTest(flags=None)
Definition: JetRecoSteering.py:90
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19