ATLAS Offline Software
CheckMonGroups.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 
3 """
4 Validation of Monitoring groups
5 - Check thatall chains streamed in express have a signature or detector monGroup
6 
7 Author: John Patrick Mc Gowan
8 """
9 
10 __doc__="Validation of monGroups"
11 
12 from AthenaCommon.Logging import logging
13 log = logging.getLogger(__name__)
14 
15 def checkMonGroups(chainDicts):
16 
17 
18  MON_OK = True
19  for hlt in chainDicts:
20  if 'express' in hlt['stream']:
21  if 'monGroups' not in hlt or len(hlt['monGroups']) < 1:
22  log.error("Chain %s is streamed to express but does not have a signature or detector monGroup assigned", hlt['chainName'])
23  MON_OK = False
24 
25  if not MON_OK:
26  raise Exception("Express chains found without monGroups")
CheckMonGroups.checkMonGroups
def checkMonGroups(chainDicts)
Definition: CheckMonGroups.py:15