From 4534239d8f5349294f81c312b502edb7d5c4a46c Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Wed, 30 Oct 2024 21:59:58 +0100 Subject: [PATCH] PrintTkMaps: Prefer to use data files from local area --- DQM/TrackerRemapper/test/testPrintTkMaps.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DQM/TrackerRemapper/test/testPrintTkMaps.sh b/DQM/TrackerRemapper/test/testPrintTkMaps.sh index b0c4de5aee0c7..cadcd7e1e32b1 100755 --- a/DQM/TrackerRemapper/test/testPrintTkMaps.sh +++ b/DQM/TrackerRemapper/test/testPrintTkMaps.sh @@ -7,7 +7,8 @@ printPixelROCsMap --help || die 'failed running printPixelROCsMap --help' $? printPixelTrackerMap --help || die 'failed running printPixelTrackerMap --help' $? printStripTrackerMap --help || die 'failed running printStripTrackerMap --help' $? echo -e "\n" -testPixelFile=$CMSSW_RELEASE_BASE/src/SLHCUpgradeSimulations/Geometry/data/PhaseI/PixelSkimmedGeometry_phase1.txt +testPixelFile=$CMSSW_BASE/src/SLHCUpgradeSimulations/Geometry/data/PhaseI/PixelSkimmedGeometry_phase1.txt +[ -e $testPixelFile} ] || testPixelFile=$CMSSW_RELEASE_BASE/src/SLHCUpgradeSimulations/Geometry/data/PhaseI/PixelSkimmedGeometry_phase1.txt # Store the first 50 elements of the first column in a variable testPixelDetids=$(head -n 50 "$testPixelFile" | cut -d ' ' -f 1 | paste -sd ' ' -) @@ -28,7 +29,8 @@ echo -e "==== Testing printPixelTrackerMap" printPixelTrackerMap --input-file $testPixelFile || die 'failed printPixelTrackerMap --input-file' $? printPixelTrackerMap $testPixelDetids || die 'failed printPixelTrackerMap $testPixelDetids' $? echo -e "\n" -testStripFile=$CMSSW_RELEASE_BASE/src/CalibTracker/SiStripCommon/data/SiStripDetInfo.dat +testStripFile=$CMSSW_BASE/src/CalibTracker/SiStripCommon/data/SiStripDetInfo.dat +[ -e $testStripFile ] || testStripFile=$CMSSW_RELEASE_BASE/src/CalibTracker/SiStripCommon/data/SiStripDetInfo.dat # Store the first 50 elements of the first column in a variable testStripDetids=$(head -n 50 "$testStripFile" | cut -d ' ' -f 1 | paste -sd ' ' -)