ATLAS Offline Software
Public Member Functions | List of all members
python.TrigConfigSvcCfg.Tests Class Reference
Inheritance diagram for python.TrigConfigSvcCfg.Tests:
Collaboration diagram for python.TrigConfigSvcCfg.Tests:

Public Member Functions

def setUp (self)
 
def test_currentMenu (self)
 
def test_legacyMenu (self)
 
def test_jsonConverter (self)
 

Detailed Description

Definition at line 363 of file TrigConfigSvcCfg.py.

Member Function Documentation

◆ setUp()

def python.TrigConfigSvcCfg.Tests.setUp (   self)

Definition at line 365 of file TrigConfigSvcCfg.py.

365  def setUp(self):
366  # Allow multiple L1 menu generations for these tests
367  l1menu_generated._hasRun = False # type: ignore
368 

◆ test_currentMenu()

def python.TrigConfigSvcCfg.Tests.test_currentMenu (   self)

Definition at line 369 of file TrigConfigSvcCfg.py.

369  def test_currentMenu(self):
370  from AthenaConfiguration.AllConfigFlags import initConfigFlags
371  flags = initConfigFlags()
372  flags.Trigger.EDMVersion = 3
373  from AthenaConfiguration.TestDefaults import defaultTestFiles
374  flags.Input.Files = defaultTestFiles.RAW_RUN2
375  flags.lock()
376  TrigConfigSvcCfg( flags )
377 

◆ test_jsonConverter()

def python.TrigConfigSvcCfg.Tests.test_jsonConverter (   self)

Definition at line 386 of file TrigConfigSvcCfg.py.

386  def test_jsonConverter(self):
387  keys = createJsonMenuFiles(run=360026, lb=151)
388  for k,v in {"SMK" : 2749, "L1PSK" : 23557, "HLTPSK" : 17824, "BGSK" : 2181}.items():
389  assert k in keys, "Missing key {}".format(k)
390  assert v == keys[k], "Wrong value {}".format(v)
391 
392  unittest.main(verbosity=2)

◆ test_legacyMenu()

def python.TrigConfigSvcCfg.Tests.test_legacyMenu (   self)

Definition at line 378 of file TrigConfigSvcCfg.py.

378  def test_legacyMenu(self):
379  from AthenaConfiguration.AllConfigFlags import initConfigFlags
380  flags = initConfigFlags()
381  from AthenaConfiguration.TestDefaults import defaultTestFiles
382  flags.Input.Files = defaultTestFiles.RAW_RUN2
383  flags.lock()
384  TrigConfigSvcCfg( flags )
385 

The documentation for this class was generated from the following file:
python.TrigConfigSvcCfg.TrigConfigSvcCfg
def TrigConfigSvcCfg(flags)
Definition: TrigConfigSvcCfg.py:263
vtune_athena.format
format
Definition: vtune_athena.py:14
python.TrigConfigSvcCfg.createJsonMenuFiles
def createJsonMenuFiles(run, lb)
Definition: TrigConfigSvcCfg.py:59
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:79
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19