ATLAS Offline Software
getMenu.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 def getMenu(flags):
4  """getMenu returns a L1Menu accessor object"""
5 
6  from TrigConfigSvc.TriggerConfigAccess import getL1MenuAccess
7  return getL1MenuAccess(flags)
8 
9 
10 if __name__ == '__main__':
11  # print details for selected L1Topo Alforithms
12 
13  from pprint import pprint
14  from AthenaConfiguration.AllConfigFlags import initConfigFlags
15  flags = initConfigFlags()
16 
17  flags.Input.Files = ['/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/CampaignInputs/data23/RAW/data23_13p6TeV.00452463.physics_Main.daq.RAW/540events.data23_13p6TeV.00452463.physics_Main.daq.RAW._lb0514._SFO-16._0004.data']
18 
19 
20  flags.lock()
21 
22  menu = getMenu(flags)
23  menu.printSummary()
24 
25  d_algs = menu.topoAlgorithms('TOPO')['decisionAlgorithms']
26  print("====== Decision Algs =======")
27  alg_klasses = ('DeltaRSqrIncl2',)
28 
29  for alg_name in d_algs:
30  if d_algs[alg_name]['klass'] in alg_klasses:
31  print(alg_name)
32  pprint(d_algs[alg_name])
33 
34  print ('-------')
35 
36  s_algs = menu.topoAlgorithms('TOPO')['sortingAlgorithms']
37  print("====== SORT Algs =======")
38  alg_klasses = ('jJetSelect',)
39  for alg_name in s_algs:
40  if s_algs[alg_name]['klass'] in alg_klasses:
41  print(alg_name)
42  pprint(s_algs[alg_name])
43 
44  print ('-------')
45 
46  c_algs = menu.topoAlgorithms('MULTTOPO')['multiplicityAlgorithms']
47 
48  print("====== COUNT Algs =======")
49  alg_klasses = ('cTauMultiplicity',)
50  for alg_name in c_algs:
51  if c_algs[alg_name]['klass'] in alg_klasses:
52  print(alg_name)
53  pprint(c_algs[alg_name])
54  algname = c_algs[alg_name]
55  threshold = c_algs[alg_name]['threshold']
56  pprint(menu.thresholds()[threshold])
57 
58  print ('-------')
59 
60 
getMenu.getMenu
def getMenu(flags)
Definition: getMenu.py:3
python.TriggerConfigAccess.getL1MenuAccess
L1MenuAccess getL1MenuAccess(flags=None)
Definition: TriggerConfigAccess.py:129
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
getMenu
Definition: getMenu.py:1
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition: SGImplSvc.cxx:70