File indexing completed on 2024-04-06 12:08:46
0001
0002 function die { echo $1: status $2; exit $2; }
0003 GT=`echo ${@} | python3 -c 'import Configuration.AlCa.autoCond as AC;print(AC.autoCond["run3_data_prompt"])'`
0004 RUN="319176"
0005 DQMFILE="/store/group/comm_dqm/DQMGUI_data/Run2018/ZeroBias/R0003191xx/DQM_V0001_R000319176__ZeroBias__Run2018B-PromptReco-v2__DQMIO.root"
0006 COMMMAND=`xrdfs cms-xrd-global.cern.ch locate $DQMFILE`
0007 STATUS=$?
0008 echo "xrdfs command status = "$STATUS
0009 if [ $STATUS -eq 0 ]; then
0010 echo "Using file ${DQMFILE} and run ${RUN}. Running in ${SCRAM_TEST_PATH}."
0011 (cmsRun "${SCRAM_TEST_PATH}/SiStripDQM_OfflineTkMap_Template_cfg_DB.py" globalTag="$GT" runNumber="$RUN" dqmFile=" root://cms-xrd-global.cern.ch//$DQMFILE" detIdInfoFile="file.root") || die 'failed running SiStripDQM_OfflineTkMap_Template_cfg_DB.py' $?
0012 else
0013 die "SKIPPING test, file ${DQMFILE} not found" 0
0014 fi