ATLAS Offline Software
Loading...
Searching...
No Matches
Tau.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 # 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 from AthenaConfiguration.TestDefaults import defaultTestFiles, defaultConditionsTags, defaultGeometryTags
13 if flags.RecExRecoTest.doMC:
14 flags.Input.Files = defaultTestFiles.RDO_RUN3
15 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
16 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
17 else:
18 flags.Input.Files = defaultTestFiles.RAW_RUN3_DATA24
19 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_DATA
20 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
21
22 # Schedule Tau Reco flags for RecoSteering
23 from tauRec.ConfigurationHelpers import StandaloneTauRecoFlags
24 StandaloneTauRecoFlags(flags)
25 flags.Jet.strictMode = False
26 flags.lock()
27
28 # Unify these two strategies? See ATLASRECTS-8112
29 if flags.RecExRecoTest.doMC:
30 from tauRec.TauConfig import TauConfigTest
31 TauConfigTest(flags)
32 else:
33 from RecJobTransforms.RecoSteering import RecoSteering
34 acc = RecoSteering(flags)
35 acc.run()