Skip to content

Commit dbe04a9

Browse files
authored
Merge pull request #46561 from smuzaffar/fix-testPrintTkMaps
PrintTkMaps: Prefer to use data files from local area
2 parents 59389d8 + 4534239 commit dbe04a9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

DQM/TrackerRemapper/test/testPrintTkMaps.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ printPixelROCsMap --help || die 'failed running printPixelROCsMap --help' $?
77
printPixelTrackerMap --help || die 'failed running printPixelTrackerMap --help' $?
88
printStripTrackerMap --help || die 'failed running printStripTrackerMap --help' $?
99
echo -e "\n"
10-
testPixelFile=$CMSSW_RELEASE_BASE/src/SLHCUpgradeSimulations/Geometry/data/PhaseI/PixelSkimmedGeometry_phase1.txt
10+
testPixelFile=$CMSSW_BASE/src/SLHCUpgradeSimulations/Geometry/data/PhaseI/PixelSkimmedGeometry_phase1.txt
11+
[ -e $testPixelFile} ] || testPixelFile=$CMSSW_RELEASE_BASE/src/SLHCUpgradeSimulations/Geometry/data/PhaseI/PixelSkimmedGeometry_phase1.txt
1112
# Store the first 50 elements of the first column in a variable
1213
testPixelDetids=$(head -n 50 "$testPixelFile" | cut -d ' ' -f 1 | paste -sd ' ' -)
1314

@@ -28,7 +29,8 @@ echo -e "==== Testing printPixelTrackerMap"
2829
printPixelTrackerMap --input-file $testPixelFile || die 'failed printPixelTrackerMap --input-file' $?
2930
printPixelTrackerMap $testPixelDetids || die 'failed printPixelTrackerMap $testPixelDetids' $?
3031
echo -e "\n"
31-
testStripFile=$CMSSW_RELEASE_BASE/src/CalibTracker/SiStripCommon/data/SiStripDetInfo.dat
32+
testStripFile=$CMSSW_BASE/src/CalibTracker/SiStripCommon/data/SiStripDetInfo.dat
33+
[ -e $testStripFile ] || testStripFile=$CMSSW_RELEASE_BASE/src/CalibTracker/SiStripCommon/data/SiStripDetInfo.dat
3234
# Store the first 50 elements of the first column in a variable
3335
testStripDetids=$(head -n 50 "$testStripFile" | cut -d ' ' -f 1 | paste -sd ' ' -)
3436

0 commit comments

Comments
 (0)