Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-10-25 05:06:28

0001 #!/bin/bash
0002 function die { echo $1: status $2; exit $2; }
0003 
0004 echo -e "Testing help functions"
0005 printPixelLayersDisksMap --help  || die 'failed running printPixelLayersDisksMap --help' $?
0006 printPixelROCsMap --help || die 'failed running printPixelROCsMap --help' $?
0007 printPixelTrackerMap --help || die 'failed running printPixelTrackerMap --help' $?
0008 printStripTrackerMap --help || die 'failed running printStripTrackerMap --help' $?
0009 echo -e "\n"
0010 testPixelFile=$CMSSW_RELEASE_BASE/src/SLHCUpgradeSimulations/Geometry/data/PhaseI/PixelSkimmedGeometry_phase1.txt
0011 # Store the first 50 elements of the first column in a variable
0012 testPixelDetids=$(head -n 50 "$testPixelFile" | cut -d ' ' -f 1 | paste -sd ' ' -)
0013 
0014 echo "Using the following pixel DetIds:" $testPixelDetids
0015 echo -e "\n"
0016 echo -e "==== Testing printPixelLayersDisksMap"
0017 printPixelLayersDisksMap --input-file $testPixelFile || die 'failed printPixelLayersDisksMap --input-file' $?
0018 printPixelLayersDisksMap $testPixelDetids || die 'failed printPixelLayersDisksMap $testPixelDetids' $?
0019 echo -e "\n"
0020 echo -e "==== Testing printPixelROCsMap"
0021 printPixelROCsMap --input-file $testPixelFile || die 'failed printPixelROCsMap --input-file' $?
0022 printPixelROCsMap $testPixelDetids || die 'failed printPixelROCsMap $testPixelDetids' $?
0023 printPixelROCsMap $testPixelDetids --region barrel || die 'failed printPixelROCsMap $testPixelDetids --barrel' $?
0024 printPixelROCsMap $testPixelDetids --region forward || die 'failed printPixelROCsMap $testPixelDetids --forward' $?
0025 printPixelROCsMap $testPixelDetids --region full || die 'failed printPixelROCsMap $testPixelDetids --full' $?
0026 echo -e "\n"
0027 echo -e "==== Testing printPixelTrackerMap"
0028 printPixelTrackerMap --input-file $testPixelFile || die 'failed printPixelTrackerMap --input-file' $?
0029 printPixelTrackerMap $testPixelDetids || die 'failed printPixelTrackerMap $testPixelDetids' $?
0030 echo -e "\n"
0031 testStripFile=$CMSSW_RELEASE_BASE/src/CalibTracker/SiStripCommon/data/SiStripDetInfo.dat
0032 # Store the first 50 elements of the first column in a variable
0033 testStripDetids=$(head -n 50 "$testStripFile" | cut -d ' ' -f 1 | paste -sd ' ' -)
0034 
0035 echo "Using the following strip DetIds:" $testStripDetids
0036 echo -e "\n"
0037 echo -e "==== Testing printStripTrackerMap"
0038 printStripTrackerMap --input-file $testStripFile || die 'failed printStripTrackerMap --input-file' $?
0039 printStripTrackerMap $testStripDetids || die 'failed printStripTrackerMap $testPixelDetids' $?