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.
12 athena [options] MuonReleaseTestsR4/test_muonHLTphase2.py [flags]
13 python -m MuonReleaseTestsR4.test_muonHLTphase2 # not recommended (due to missing LD_PRELOADs)
17if __name__ ==
"__main__":
19 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
20 flags = initConfigFlags()
22 parser = flags.getArgumentParser()
23 parser.add_argument(
"--defaultGeoFile", help=
"Use the predefined GeoModel files on cvmfs", choices=[
"RUN3",
"RUN4"], required=
True)
25 args = flags.fillFromArgs(parser=parser)
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"]
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
38 configureDefaultTagsCfg(flags)
41 flags.Trigger.Offline.SA.Muon.scheduleActsReco=
True
44 if vars(args).
get(
'perfmon',
None)
is None:
45 flags.PerfMon.doFastMonMT =
True
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"]
53 from TriggerJobOpts.runHLT
import athenaCfg
55 cfg = athenaCfg(flags, parser = parser)
57 sys.exit(cfg.run().isFailure())
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)