Skip to content
Snippets Groups Projects

Draft: Update Rich/RichMirrorAlignmentOnline for use during Run 3 (RICH-51, RICH-60)

Closed Paras Naik requested to merge pnaik_Run3MirrOnline_202205 into master
1 file
+ 14
8
Compare changes
  • Side-by-side
  • Inline
@@ -173,7 +173,8 @@ def patchBrunel(true_online_version, alignConf, n):
brunel.OutputType = 'NONE'
brunel.PartitionName = os.environ.get('PARTITION_NAME', 'TEST')
print("INFO: (RichAnalyzer.py) brunel.PartitionName = ", brunel.PartitionName)
print("INFO: (RichAnalyzer.py) brunel.PartitionName = ",
brunel.PartitionName)
# CondDB Configuration
@@ -197,8 +198,8 @@ def patchBrunel(true_online_version, alignConf, n):
if inCurrentYear:
conddb.Tags[
'ONLINE'] = Online.OnlDBTag # needed when using gitDB (but only in the current year [in principle])
print("INFO: (RichAnalyzer.py) conddb.Tags['ONLINE'] = ", conddb.Tags[
'ONLINE'])
print("INFO: (RichAnalyzer.py) conddb.Tags['ONLINE'] = ",
conddb.Tags['ONLINE'])
# RunChangeHandler Configuration
@@ -292,7 +293,8 @@ def patchBrunel(true_online_version, alignConf, n):
rd = '/group/online/hlt/conditions/RunChangeHandler'
sys.path.append(rd)
import All
print("INFO: (RichAnalyzer.py) Had to use sys.path.append(", rd, ") to make import All work.")
print("INFO: (RichAnalyzer.py) Had to use sys.path.append(", rd,
") to make import All work.")
### Add base path of the files to the files in All.py
conditionmap = {
@@ -358,7 +360,8 @@ def patchBrunel(true_online_version, alignConf, n):
# print("INFO: (RichAnalyzer.py) rch.Conditions is too large to print. Try again on a single node.")
if patMDCS != '' and os.path.exists(patMDCS):
print("INFO: (RichAnalyzer.py) Importing MDCS corrections from " + patMDCS + ".")
print("INFO: (RichAnalyzer.py) Importing MDCS corrections from " +
patMDCS + ".")
from Configurables import UpdateManagerSvc
import xml.etree.ElementTree as xmlparser
@@ -388,10 +391,13 @@ def patchBrunel(true_online_version, alignConf, n):
cond + ' := ' + condsMDCS[cond] for cond in condsMDCS
]
try:
print("INFO: (RichAnalyzer.py) UpdateManagerSvc().ConditionsOverride = ", UpdateManagerSvc(
).ConditionsOverride)
print(
"INFO: (RichAnalyzer.py) UpdateManagerSvc().ConditionsOverride = ",
UpdateManagerSvc().ConditionsOverride)
except:
print("INFO: (RichAnalyzer.py) UpdateManagerSvc().ConditionsOverride is too large to print. Try again on a single node.")
print(
"INFO: (RichAnalyzer.py) UpdateManagerSvc().ConditionsOverride is too large to print. Try again on a single node."
)
#Send rch.Conditions to the RunChangeHandler
appendPostConfigAction(applyConds)
Loading