3 __all__ = [
'MenuBoardsCollection',
'BoardType']
6 from collections
import OrderedDict
as odict
8 from AthenaCommon.Logging
import logging
9 log = logging.getLogger(__name__)
23 if 'muctpi' in name.lower():
24 btype = BoardType.MUCTPI
25 elif 'merger' in name.lower():
26 btype = BoardType.MERGER
27 elif 'topo' in name.lower():
28 btype = BoardType.TOPO
29 elif 'ctpin' in name.lower():
30 btype = BoardType.CTPIN
32 raise RuntimeError(
"No BoardType defined for board %s" % name)
41 name = boardDef[
"name"]
42 btype = BoardType.fromBoardName(name)
43 isLegacy =
'legacy' in boardDef
45 if "connectors" in boardDef:
46 self.
boards[name].addOutputConnectorNames([c[
"name"]
for c
in boardDef[
"connectors"]])
50 from collections
import OrderedDict
as odict
53 confObj[boardName] = self.
boards[boardName].json()
58 def __init__(self, name, btype, isLegacy = False):
75 if confObj[
"type"] == BoardType.MERGER: