ATLAS Offline Software
Loading...
Searching...
No Matches
CheckMonGroups.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3"""
4Validation of Monitoring groups
5- Check thatall chains streamed in express have a signature or detector monGroup
6
7Author: John Patrick Mc Gowan
8"""
9
10__doc__="Validation of monGroups"
11
12from AthenaCommon.Logging import logging
13log = logging.getLogger(__name__)
14
15def 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(chainDicts)