Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
test_muonHLTphase2.py
Go to the documentation of this file.
1 #!/usr/bin/env athena.py
2 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 """
4 CA module to configure a test for the HLT running with phase2 geometry
5 building style for athena. A default RUN3 input file is provided, as well as
6 a default geometry file. The --defaultGeoFile argument allows to easily
7 switch between RUN3 and RUN4 layout. If desired, it is possible to
8 provide a customized input file using the --filesInput argument. A default
9 RUN4 input file will be provided in future.
10 
11 Usage:
12  athena [options] MuonReleaseTestsR4/test_muonHLTphase2.py [flags]
13  python -m MuonReleaseTestsR4.test_muonHLTphase2 # not recommended (due to missing LD_PRELOADs)
14 
15 """
16 
17 if __name__ == "__main__":
18 
19  from AthenaConfiguration.AllConfigFlags import initConfigFlags
20  flags = initConfigFlags()
21 
22  parser = flags.getArgumentParser()
23  parser.add_argument("--defaultGeoFile", help="Use the predefined GeoModel files on cvmfs", choices=["RUN3", "RUN4"], required=True)
24 
25  args = flags.fillFromArgs(parser=parser)
26 
27  # Use RUN3 ttbar MC dataset having muons if the input file is not provided. A RUN4 default dataset will be provided in future.
28  if vars(args).get('filesInput', None) is None:
29  flags.Input.Files = ["/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TriggerTest/valid1.601229.PhPy8EG_A14_ttbar_hdamp258p75_SingleLep.recon.RDO.e8514_e8528_s4159_s4114_r14799_tid34171421_00/RDO.34171421._000011.pool.root.1",
30  "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TriggerTest/valid1.601229.PhPy8EG_A14_ttbar_hdamp258p75_SingleLep.recon.RDO.e8514_e8528_s4159_s4114_r14799_tid34171421_00/RDO.34171421._000016.pool.root.1"]
31 
32  # Set phase2 geometry
33  from MuonGeoModelTestR4.testGeoModel import geoModelFileDefault, configureDefaultTagsCfg
34  flags.GeoModel.SQLiteDB = True
35  flags.GeoModel.SQLiteDBFullPath = geoModelFileDefault(useR4Layout = (args.defaultGeoFile == "RUN4"))
36 
37  # Set default geometry tag and default condition tag
39 
40  # Configure monitoring
41  if vars(args).get('perfmon', None) is None:
42  flags.PerfMon.doFastMonMT = True # also doFullMonMT is available
43 
44  # Set only the muon slice of HLT
45  flags.Trigger.triggerMenuSetup = "Physics_pp_run3_v1"
46  flags.Trigger.enabledSignatures = ["Muon"]
47  flags.Trigger.selectChains = ["HLT_mu26_ivarmedium_L1MU14FCH", "HLT_mu22_mu8noL1_L1MU14FCH", "HLT_2mu14_L12MU8F"]
48 
49  import sys
50  from TriggerJobOpts.runHLT import athenaCfg
51 
52  sys.exit(athenaCfg(flags, parser = parser).run().isFailure())
python.testGeoModel.configureDefaultTagsCfg
def configureDefaultTagsCfg(flags)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:100
python.testGeoModel.geoModelFileDefault
def geoModelFileDefault(useR4Layout=False)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:5
run
Definition: run.py:1
python.runHLT.athenaCfg
def athenaCfg(flags, parser=None)
Definition: runHLT.py:144
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition: hcg.cxx:127