3 from collections
import OrderedDict
as odict
5 from AthenaCommon.Logging
import logging
6 log = logging.getLogger(__name__)
8 from ..Config.MonitorDef
import MonitorDef
9 from ..Config.CTPInputConfig
import CTPInputConfig
10 from .BunchGroupSet
import BunchGroupSet
11 from .MonCounters
import MenuMonCountersCollection
17 self.
random =
Random( names = [
'Random0',
'Random1',
'Random2',
'Random3'], cuts = [1, 1, 1, 1] )
36 for counter
in MonitorDef.ctpmonCounters( menuThresholds, connectors ):
40 for counter
in MonitorDef.ctpinCounters( menuThresholds, connectors, self.
inputConnectors[
"ctpin"] ):
44 MonitorDef.applyItemCounter( menuName, menuItems )
48 inputConnectorList = []
54 for connName
in inputConnectorList:
55 if connName !=
'' and connName
not in availableConnectors:
56 msg =
"Connector '%s' requested in L1/Config/CTPConfig.py not defined as menu input. Please add it to L1/Menu/Menu_%s.py" % (connName, menuToLoad[1])
58 raise RuntimeError(msg)
63 confObj[
"monitoring"] = self.
counters.json()