ATLAS Offline Software
Loading...
Searching...
No Matches
testMuonHLTphase2.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"""
4CA module to configure a test for the HLT running with phase2 geometry
5building style for athena. A default RUN3 input file is provided, as well as
6a default geometry file. The --defaultGeoFile argument allows to easily
7switch between RUN3 and RUN4 layout. If desired, it is possible to
8provide a customized input file using the --filesInput argument. A default
9RUN4 input file will be provided in future.
10
11Usage:
12 athena [options] MuonReleaseTestsR4/test_muonHLTphase2.py [flags]
13 python -m MuonReleaseTestsR4.test_muonHLTphase2 # not recommended (due to missing LD_PRELOADs)
14
15"""
16
17if __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 MuonPhaseIITestDefaults, configureDefaultTagsCfg
34 flags.GeoModel.SQLiteDB = True
35 flags.GeoModel.SQLiteDBFullPath = MuonPhaseIITestDefaults.GEODB_R4 if args.defaultGeoFile == "RUN4" else MuonPhaseIITestDefaults.GEODB_R3
36
37 # Set default geometry tag and default condition tag
38 configureDefaultTagsCfg(flags)
39
40 # Schedule Phase2 muon reconstruction chain
41 flags.Trigger.Offline.SA.Muon.scheduleActsReco=True
42
43 # Configure monitoring
44 if vars(args).get('perfmon', None) is None:
45 flags.PerfMon.doFastMonMT = True # also doFullMonMT is available
46
47 # Set only the muon slice of HLT
48 flags.Trigger.triggerMenuSetup = "Physics_pp_run3_v1"
49 flags.Trigger.enabledSignatures = ["Muon"]
50 flags.Trigger.selectChains = ["HLT_mu26_ivarmedium_L1MU14FCH", "HLT_mu22_mu8noL1_L1MU14FCH", "HLT_2mu14_L12MU8F"]
51
52 import sys
53 from TriggerJobOpts.runHLT import athenaCfg
54
55 cfg = athenaCfg(flags, parser = parser)
56
57 sys.exit(cfg.run().isFailure())
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition hcg.cxx:130