Skip to content
Snippets Groups Projects
Commit ae81afd9 authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'master-tile-mon-state-onl-part-init' into 'master'

TileMonitoring: Set up partition from environment in online monitoring

See merge request atlas/athena!37770
parents 06d0dfd5 b2b880de
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,9 @@ ByteStreamEmonInputSvc = svcMgr.ByteStreamInputSvc
# ############################################################
if 'Partition' not in dir():
Partition="ATLAS"
import os
Partition = os.getenv("TDAQ_PARTITION","ATLAS")
ByteStreamEmonInputSvc.Partition = Partition
......@@ -127,7 +129,7 @@ else:
# #########################################
#ByteStreamEmonInputSvc.Key = "ReadoutApplication"
if 'Key' not in dir():
Key="dcm"
Key = {'ATLAS' : 'dcm', 'TileMon' : 'CompleteEvent', 'Tile' : 'ReadoutApplication'}.get(Partition, 'dcm')
ByteStreamEmonInputSvc.Key = Key
# ############################################################
......@@ -139,6 +141,8 @@ ByteStreamEmonInputSvc.Key = Key
# KeyValue=[""]
#ByteStreamEmonInputSvc.KeyValue = KeyValue
if Partition == 'Tile':
KeyValue = ['TileREB-ROS']
if 'KeyValue' in dir():
ByteStreamEmonInputSvc.KeyValue = KeyValue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment