Skip to content

Commit

Permalink
Add test_TreeAndTkMapProducer.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tvami committed Oct 4, 2022
1 parent 4afd632 commit 53b2a06
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DQM/SiStripMonitorClient/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
<flags TEST_RUNNER_ARGS="/bin/bash DQM/SiStripMonitorClient/test test_SiStripDQM_OfflineTkMap.sh"/>
<use name="FWCore/Utilities"/>
</bin>

<bin name="test_TreeAndTkMapProducer" file="TestDriver.cpp">
<flags TEST_RUNNER_ARGS="/bin/bash DQM/SiStripMonitorClient/test test_TreeAndTkMapProducer.sh"/>
<use name="FWCore/Utilities"/>
</bin>
14 changes: 14 additions & 0 deletions DQM/SiStripMonitorClient/test/test_TreeAndTkMapProducer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
function die { echo $1: status $2; exit $2; }
DQMFILE="/store/group/comm_dqm/DQMGUI_data/Run2018/ZeroBias/R0003191xx/DQM_V0001_R000319176__ZeroBias__Run2018B-PromptReco-v2__DQMIO.root"
COMMMAND=`xrdfs cms-xrd-global.cern.ch locate $DQMFILE`
STATUS=$?
echo "xrdfs command status = "$STATUS
if [ $STATUS -eq 0 ]; then
echo "Using file ${DQMFILE} Running in ${LOCAL_TEST_DIR}."
xrdcp root://cms-xrd-global.cern.ch//$DQMFILE DQM_V0001_R000319176__ZeroBias__Run2018B-PromptReco-v2__DQMIO.root
(python3 ${LOCAL_TEST_DIR}/../scripts/PhaseITreeProducer.py DQM_V0001_R000319176__ZeroBias__Run2018B-PromptReco-v2__DQMIO.root) || die 'failed running PhaseITreeProducer.py' $?
(python3 ${LOCAL_TEST_DIR}/../scripts/TH2PolyOfflineMaps.py DQM_V0001_R000319176__ZeroBias__Run2018B-PromptReco-v2__DQMIO.root 3000 2000 ) || die 'failed running TH2PolyOfflineMaps.py' $?
else
die "SKIPPING test, file ${DQMFILE} not found" 0
fi

0 comments on commit 53b2a06

Please sign in to comment.