5 from TriggerMenuMT.TriggerAPI.TriggerAPI
import TriggerAPI
6 from TriggerMenuMT.TriggerAPI.TriggerEnums
import TriggerPeriod, TriggerType
12 for triggerType
in TriggerType:
13 print(
"\n------------- TriggerType:",triggerType)
14 for triggerPeriod
in TriggerPeriod:
15 unprescaled = TriggerAPI.getLowestUnprescaled(triggerPeriod, triggerType)
16 print(
"- TriggerPeriod:",triggerPeriod)
21 print(
"Pattern match :",TriggerAPI.getLowestUnprescaled(337833, TriggerType.mu_bphys, matchPattern=
"bJpsi|bUpsi"))
24 print(
"Bjet combined items:",TriggerAPI.getLowestUnprescaled(337833, TriggerType.bj, TriggerType.xe | TriggerType.ht))
26 print(
"Ele combined items:",TriggerAPI.getLowestUnprescaled(337833, TriggerType.el, TriggerType.ALL))
30 print(
"Lowest in at least one period:",TriggerAPI.getLowestUnprescaledAnyPeriod(TriggerPeriod.y2017periodAll, TriggerType.bj_multi))
34 print(
"Lowest j225_gsc with 100% data:",TriggerAPI.getLowestUnprescaled(TriggerPeriod.y2017periodB, TriggerType.j_single, matchPattern=
"j225_gsc"))
35 print(
"Lowest j225_gsc with 95% data:",TriggerAPI.getLowestUnprescaled(TriggerPeriod.y2017periodB, TriggerType.j_single, matchPattern=
"j225_gsc", livefraction=0.95))
38 print(
"Muon+jet+met items:",TriggerAPI.getLowestUnprescaled(337833, TriggerType.mu, [TriggerType.j, TriggerType.xe]))
40 print(
"Single muon lowest-unprescaled 2.0e34 items:",TriggerAPI.getLowestUnprescaled(TriggerPeriod.future2e34, TriggerType.mu_single))
42 print(
"Single muon unprescaled 2.0e34 items:" ,TriggerAPI.getUnprescaled(TriggerPeriod.future2e34, TriggerType.mu_single))
45 print(
"Multi-bjet in periods GHIK (default GRL)", TriggerAPI.getLowestUnprescaled(TriggerPeriod.y2017periodGHIK, TriggerType.bj_multi))
46 TriggerAPI.setCustomGRL(
"/cvmfs/atlas.cern.ch/repo/sw/database/GroupData/GoodRunsLists/data17_13TeV/20171130/data17_13TeV.periodAllYear_DetStatus-v97-pro21-13_Unknown_PHYS_StandardGRL_All_Good_25ns_BjetHLT_Normal2017.xml")