Skip to content

Commit e00e84a

Browse files
committed
Simplification for TPC global prop adjustment
1 parent c2400b4 commit e00e84a

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

MC/run/ANCHOR/2021/OCT/pass4/anchorMC.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ if [ "${MCRC}" = "0" ]; then
144144
fi
145145

146146
# could take this way finally
147-
if [ ${ALIBI_EXECUTOR_FRAMEWORK} ]; then
147+
if [ ${ALIBI_EXECUTOR_FRAMEWORK} ]; then
148148
# publish the original data to ALIEN
149149
find ./ -name "localhos*_*" -delete
150150
tar -czf mcarchive.tar.gz workflow.json tf* QC pipeline*

UTILS/parse-async-WorkflowConfig.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -246,16 +246,12 @@ def extract_commands(commandlist):
246246

247247
# some manual intervention (could and should be done from outside)
248248
def postadjust_ConfigValues(flat_config):
249-
# for now we reset the TPC calibration things
250249
gpuglobal = flat_config.get("GPU_global")
251-
if gpuglobal != None:
252-
gpuglobal.pop("dEdxCorrFile", None)
253-
gpuglobal.pop("gainCalibFile", None)
254-
gpuglobal.pop("dEdxPolTopologyCorrFile", None)
255-
d=os.getcwd()
256-
gpuglobal["dEdxSplineTopologyCorrFile"]=d+"/splines_for_dedx_threshold_3.5.root"
257-
gpuglobal["thresholdCalibFile"]=d+"/NoiseThresholds.3.5s.physics.root"
258-
250+
# fix location of root files for TPC
251+
d=os.getcwd()
252+
for key in gpuglobal:
253+
if gpuglobal[key].count(".root") > 0:
254+
gpuglobal[key] = d + "/" + gpuglobal[key]
259255

260256
cmdlist = get_topology_cmd("workflowconfig.log")
261257
#print (cmdlist)

0 commit comments

Comments
 (0)