Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:28

0001 #!/bin/bash
0002 
0003 if [ "$#" == 0 ] || [ $1 == "-h" ] || [ $1 == "--help" ]
0004 then
0005   printf "\nUsage: "
0006   printf "runPlotter.sh [InputFileName] [runMin(optional)] [runMax(optional)]\n\n"
0007   exit 1;
0008 fi
0009 
0010 INPUTFILE=$1
0011 CWD=`pwd`
0012 FILE=\"$CWD/$INPUTFILE\"
0013 
0014 if [ "$#" == 1 ]
0015 then
0016    root -l -b -q "$CMSSW_BASE/src/Alignment/TrackerAlignment/macros/CosmicRateTool_CosmicRates.C(${FILE})"
0017    root -l -b -q "$CMSSW_BASE/src/Alignment/TrackerAlignment/macros/CosmicRateTool_PIXEL_HitRates.C(${FILE})"
0018 fi
0019 
0020 runMin=$2
0021 runMax=$3
0022 if [ "$#" -gt 2 ]
0023 then
0024    root -l -b -q "$CMSSW_BASE/src/Alignment/TrackerAlignment/macros/CosmicRateTool_CosmicRates.C(${FILE},$runMin,$runMax)"
0025    root -l -b -q "$CMSSW_BASE/src/Alignment/TrackerAlignment/macros/CosmicRateTool_PIXEL_HitRates.C(${FILE},$runMin,$runMax)"
0026 fi
0027 root -l -b -q "$CMSSW_BASE/src/Alignment/TrackerAlignment/macros/CosmicRateTool_Kinematics.C(${FILE})"