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

Public Member Functions

def test_recoFlags (self)
 
def test_allFlags (self)
 

Detailed Description

Definition at line 560 of file TriggerConfigFlags.py.

Member Function Documentation

◆ test_allFlags()

def python.TriggerConfigFlags.Tests.test_allFlags (   self)
Force load all dynamic flags

Definition at line 576 of file TriggerConfigFlags.py.

576  def test_allFlags(self):
577  """Force load all dynamic flags"""
578  flags = initConfigFlags()
579  flags.loadAllDynamicFlags()
580 
581  unittest.main()

◆ test_recoFlags()

def python.TriggerConfigFlags.Tests.test_recoFlags (   self)
Check if offline reco flags can be added to trigger

Definition at line 563 of file TriggerConfigFlags.py.

563  def test_recoFlags(self):
564  """Check if offline reco flags can be added to trigger"""
565  flags = initConfigFlags()
566  flags.Trigger.Offline.Tau.doTauRec=False
567  flags.Tau.doTauRec=True
568  self.assertEqual(flags.Trigger.Offline.Tau.doTauRec, False, "dependent flag setting does not work")
569  self.assertEqual(flags.Tau.doTauRec, True, "dependent flag setting does not work")
570 
571  newflags = flags.cloneAndReplace('Tau', 'Trigger.Offline.Tau')
572 
573  self.assertEqual(flags.Tau.doTauRec, True, "dependent flag setting does not work")
574  self.assertEqual(newflags.Tau.doTauRec, False, "dependent flag setting does not work")
575 

The documentation for this class was generated from the following file:
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19