Skip to content

Commit

Permalink
PrintTkMaps: Prefer to use data files from local area
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 30, 2024
1 parent ee08414 commit 4534239
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DQM/TrackerRemapper/test/testPrintTkMaps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ' ' -)

Expand All @@ -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 ' ' -)

Expand Down

0 comments on commit 4534239

Please sign in to comment.