ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonValidation
MuonReleaseTestsR4
python
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
"""
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
MuonConfig.MuonConfigUtils
import
configureDefaultTags
34
from
MuonGeoModelTestR4.testGeoModel
import
MuonPhaseIITestDefaults
35
flags.GeoModel.SQLiteDB =
True
36
flags.GeoModel.SQLiteDBFullPath = MuonPhaseIITestDefaults.GEODB_R4
if
args.defaultGeoFile ==
"RUN4"
else
MuonPhaseIITestDefaults.GEODB_R3
37
38
# Set default geometry tag and default condition tag
39
configureDefaultTags(flags)
40
41
# Schedule Phase2 muon reconstruction chain
42
flags.Trigger.Offline.SA.Muon.scheduleActsReco=
True
43
44
# Configure monitoring
45
if
vars(args).
get
(
'perfmon'
,
None
)
is
None
:
46
flags.PerfMon.doFastMonMT =
True
# also doFullMonMT is available
47
48
# Set only the muon slice of HLT
49
flags.Trigger.triggerMenuSetup =
"Physics_pp_run3_v1"
50
flags.Trigger.enabledSignatures = [
"Muon"
]
51
flags.Trigger.selectChains = [
"HLT_mu26_ivarmedium_L1MU14FCH"
,
"HLT_mu22_mu8noL1_L1MU14FCH"
,
"HLT_2mu14_L12MU8F"
]
52
53
import
sys
54
from
TriggerJobOpts.runHLT
import
athenaCfg
55
56
cfg = athenaCfg(flags, parser = parser)
57
58
sys.exit(cfg.run().isFailure())
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition
hcg.cxx:132
Generated on
for ATLAS Offline Software by
1.17.0