Skip to content

Commit

Permalink
Merge pull request #40113 from sroychow/stripcalibunittest
Browse files Browse the repository at this point in the history
SiStrip use LFN for unit test input
  • Loading branch information
cmsbuild authored Nov 28, 2022
2 parents 71654b0 + ea6b577 commit 2f470f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ function die { echo $1: status $2 ; exit $2; }
REMOTE="/store/group/dpg_tracker_strip/comm_tracker/Strip/Calibration/calibrationtree/GR18"
RUN="325310"
FILE="calibTree_${RUN}.root"
COMMMAND=`xrdfs cms-xrd-global.cern.ch locate ${REMOTE}/${FILE}`
COMMMAND=`xrdfs root://eoscms.cern.ch// locate ${REMOTE}/${FILE}`
STATUS=$?
echo "xrdfs command status = "$STATUS
if [ $STATUS -eq 0 ]; then
(cmsRun ${LOCAL_TEST_DIR}/Gains_CT_step1.py firstRun=${RUN} lastRun=${RUN} inputFiles=root://cms-xrd-global.cern.ch//$REMOTE/$FILE outputFile=PromptCalibProdSiStripGainsFromTree.root) || die 'Failure running cmsRun Gains_CT_step1.py firstRun=${RUN} lastRun=${RUN} inputFiles=root://cms-xrd-global.cern.ch//$REMOTE/$FILE outputFile=PromptCalibProdSiStripGainsFromTree.root' $?
(cmsRun ${LOCAL_TEST_DIR}/Gains_CT_step1.py firstRun=${RUN} lastRun=${RUN} inputFiles=root://eoscms.cern.ch//$REMOTE/$FILE outputFile=PromptCalibProdSiStripGainsFromTree.root) || die 'Failure running cmsRun Gains_CT_step1.py firstRun=${RUN} lastRun=${RUN} inputFiles=root://eoscms.cern.ch//$REMOTE/$FILE outputFile=PromptCalibProdSiStripGainsFromTree.root' $?
(cmsRun ${LOCAL_TEST_DIR}/Gains_CT_step2.py inputFiles=file:PromptCalibProdSiStripGainsFromTree.root DQMOutput=True) || die 'Failure running cmsRun Gains_CT_step2.py inputFiles=file:PromptCalibProdSiStripGainsFromTree.root DQMOutput=True' $?
else
die "SKIPPING test, file ${FILE} not found" 0
Expand Down

0 comments on commit 2f470f6

Please sign in to comment.