ATLAS Offline Software
Loading...
Searching...
No Matches
MET.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
4if __name__=="__main__":
5
6 # Setup flags with custom input-choice
7 from AthenaConfiguration.AllConfigFlags import initConfigFlags
8 flags = initConfigFlags()
9 flags.addFlag('RecExRecoTest.doMC', False, help='custom option for RexExRecoText to run data or MC test')
10 flags.fillFromArgs()
11
12 # Use latest Data or MC
13 from AthenaConfiguration.TestDefaults import defaultTestFiles, defaultConditionsTags
14 if flags.RecExRecoTest.doMC:
15 flags.Input.Files = defaultTestFiles.ESD_RUN3_MC
16 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
17 else:
18 flags.Input.Files = defaultTestFiles.ESD_RUN3_DATA22
19 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_DATA
20
21 # Ensure MC-based modifiers are removed (!74396)
22 flags.Jet.strictMode = False
23
24 # We have to set the production step, which PFFlow muon linking uses for autoconfiguration.
25 from AthenaConfiguration.Enums import ProductionStep
26 flags.Common.ProductionStep=ProductionStep.Derivation
27
28 flags.lock()
29
30 from METReconstruction.METRecCfg import METRecCfgTest
31 METRecCfgTest(flags)