Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:24:44

0001 #!/bin/bash
0002 
0003 # this script will take output histos from CSCValidation and make 'nice' looking .pngs
0004 #
0005 # to run this script, do
0006 # ./makePlots.sh <newfilepath> <reffilepath>
0007 # where <filepath> is the paths to the output root files from CSCValiation
0008 
0009 # example:  ./makePlots.sh CMSSW_1_8_0_pre8/src/RecoLocalMuon/CSCValidation/test/validationHists.root CMSSW_2_1_0/src/RecoLocalMuon/CSCValidation/test/validationHists.root
0010 
0011 ARG1=$1
0012 ARG2=$2
0013 
0014 MACRO=makePlots.C
0015 cat > ${MACRO}<<EOF
0016 
0017 {
0018   gROOT->Reset();
0019   gROOT->ProcessLine(".L myFunctions.C");
0020 
0021   std::string Path1 = "${ARG1}";
0022   std::string Path2 = "${ARG2}";
0023 
0024   TFile *f1;
0025   TFile *f2;
0026   f1 = OpenFiles(Path1);
0027   f2 = OpenFiles(Path2);
0028 
0029   //Make global position graphs from trees
0030   GlobalPosfromTreeCompare("Global recHit positions ME+1", f1, f2, 1, 1, "rechit", "rHglobal_station_+1.png");
0031   GlobalPosfromTreeCompare("Global recHit positions ME+2", f1, f2, 1, 2, "rechit", "rHglobal_station_+2.png");
0032   GlobalPosfromTreeCompare("Global recHit positions ME+3", f1, f2, 1, 3, "rechit", "rHglobal_station_+3.png");
0033   GlobalPosfromTreeCompare("Global recHit positions ME+4", f1, f2, 1, 4, "rechit", "rHglobal_station_+4.png");
0034   GlobalPosfromTreeCompare("Global recHit positions ME-1", f1, f2, 2, 1, "rechit", "rHglobal_station_-1.png");
0035   GlobalPosfromTreeCompare("Global recHit positions ME-2", f1, f2, 2, 2, "rechit", "rHglobal_station_-2.png");
0036   GlobalPosfromTreeCompare("Global recHit positions ME-3", f1, f2, 2, 3, "rechit", "rHglobal_station_-3.png");
0037   GlobalPosfromTreeCompare("Global recHit positions ME-4", f1, f2, 2, 4, "rechit", "rHglobal_station_-4.png");
0038   GlobalPosfromTreeCompare("Global Segment positions ME+1", f1, f2, 1, 1, "segment", "Sglobal_station_+1.png");
0039   GlobalPosfromTreeCompare("Global Segment positions ME+2", f1, f2, 1, 2, "segment", "Sglobal_station_+2.png");
0040   GlobalPosfromTreeCompare("Global Segment positions ME+3", f1, f2, 1, 3, "segment", "Sglobal_station_+3.png");
0041   GlobalPosfromTreeCompare("Global Segment positions ME+4", f1, f2, 1, 4, "segment", "Sglobal_station_+4.png");
0042   GlobalPosfromTreeCompare("Global Segment positions ME-1", f1, f2, 2, 1, "segment", "Sglobal_station_-1.png");
0043   GlobalPosfromTreeCompare("Global Segment positions ME-2", f1, f2, 2, 2, "segment", "Sglobal_station_-2.png");
0044   GlobalPosfromTreeCompare("Global Segment positions ME-3", f1, f2, 2, 3, "segment", "Sglobal_station_-3.png");
0045   GlobalPosfromTreeCompare("Global Segment positions ME-4", f1, f2, 2, 4, "segment", "Sglobal_station_-4.png");
0046  
0047 
0048   //produce number of X per event plots
0049   compare1DPlot("Digis/hStripNFired",f1,f2,"Fired Strips per Event", 1110, "Digis_hStripNFired.png");
0050   compare1DPlot("Digis/hWirenGroupsTotal",f1,f2,"Fired Wires per Event", 1110, "Digis_hWirenGroupsTotal.png");
0051   compare1DPlot("recHits/hRHnrechits",f1,f2,"RecHits per Event", 1110, "recHits_hRHnrechits.png");
0052   compare1DPlot("Segments/hSnSegments",f1,f2,"Segments per Event", 1110, "Segments_hSnSegments.png");
0053 
0054   //efficiency plots
0055   compareEffGif("Efficiency/hRHSTE", f1,f2, "RecHit Efficiency", "Efficiency_hRHEff.png");
0056   compareEffGif("Efficiency/hSSTE", f1,f2, "Segment Efficiency", "Efficiency_hSEff.png");
0057 
0058   
0059   //produce wire timing plots
0060   compare1DPlot("Digis/hWireTBin+11",f1,f2,"Wire TimeBin Fired ME+1/1b", 1110,"Digis_hWireTBin+11.png");
0061   compare1DPlot("Digis/hWireTBin+14",f1,f2,"Wire TimeBin Fired ME+1/1a", 1110,"Digis_hWireTBin+11a.png");
0062   compare1DPlot("Digis/hWireTBin+12",f1,f2,"Wire TimeBin Fired ME+1/2", 1110,"Digis_hWireTBin+12.png");
0063   compare1DPlot("Digis/hWireTBin+13",f1,f2,"Wire TimeBin Fired ME+1/3", 1110,"Digis_hWireTBin+13.png");
0064   compare1DPlot("Digis/hWireTBin+21",f1,f2,"Wire TimeBin Fired ME+2/1", 1110,"Digis_hWireTBin+21.png");
0065   compare1DPlot("Digis/hWireTBin+22",f1,f2,"Wire TimeBin Fired ME+2/2", 1110,"Digis_hWireTBin+22.png");
0066   compare1DPlot("Digis/hWireTBin+31",f1,f2,"Wire TimeBin Fired ME+3/1", 1110,"Digis_hWireTBin+31.png");
0067   compare1DPlot("Digis/hWireTBin+32",f1,f2,"Wire TimeBin Fired ME+3/2", 1110,"Digis_hWireTBin+32.png");
0068   compare1DPlot("Digis/hWireTBin+41",f1,f2,"Wire TimeBin Fired ME+4/1", 1110,"Digis_hWireTBin+41.png");
0069   compare1DPlot("Digis/hWireTBin-11",f1,f2,"Wire TimeBin Fired ME-1/1b", 1110,"Digis_hWireTBin-11.png");
0070   compare1DPlot("Digis/hWireTBin-14",f1,f2,"Wire TimeBin Fired ME-1/1a", 1110,"Digis_hWireTBin-11a.png");
0071   compare1DPlot("Digis/hWireTBin-12",f1,f2,"Wire TimeBin Fired ME-1/2", 1110,"Digis_hWireTBin-12.png");
0072   compare1DPlot("Digis/hWireTBin-13",f1,f2,"Wire TimeBin Fired ME-1/3", 1110,"Digis_hWireTBin-13.png");
0073   compare1DPlot("Digis/hWireTBin-21",f1,f2,"Wire TimeBin Fired ME-2/1", 1110,"Digis_hWireTBin-21.png");
0074   compare1DPlot("Digis/hWireTBin-22",f1,f2,"Wire TimeBin Fired ME-2/2", 1110,"Digis_hWireTBin-22.png");
0075   compare1DPlot("Digis/hWireTBin-31",f1,f2,"Wire TimeBin Fired ME-3/1", 1110,"Digis_hWireTBin-31.png");
0076   compare1DPlot("Digis/hWireTBin-32",f1,f2,"Wire TimeBin Fired ME-3/2", 1110,"Digis_hWireTBin-32.png");
0077   compare1DPlot("Digis/hWireTBin-41",f1,f2,"Wire TimeBin Fired ME-4/1", 1110,"Digis_hWireTBin-41.png");
0078 
0079 
0080   //produce pedestal noise plots
0081   compare1DPlot("PedestalNoise/hStripPedME+11",f1,f2,"Pedestal Noise Distribution ME+1/1b", 1110,"PedestalNoise_hStripPedME+11.png");
0082   compare1DPlot("PedestalNoise/hStripPedME+14",f1,f2,"Pedestal Noise Distribution ME+1/1a", 1110,"PedestalNoise_hStripPedME+11a.png");
0083   compare1DPlot("PedestalNoise/hStripPedME+12",f1,f2,"Pedestal Noise Distribution ME+1/2", 1110,"PedestalNoise_hStripPedME+12.png");
0084   compare1DPlot("PedestalNoise/hStripPedME+13",f1,f2,"Pedestal Noise Distribution ME+1/3", 1110,"PedestalNoise_hStripPedME+13.png");
0085   compare1DPlot("PedestalNoise/hStripPedME+21",f1,f2,"Pedestal Noise Distribution ME+2/1", 1110,"PedestalNoise_hStripPedME+21.png");
0086   compare1DPlot("PedestalNoise/hStripPedME+22",f1,f2,"Pedestal Noise Distribution ME+2/2", 1110,"PedestalNoise_hStripPedME+22.png");
0087   compare1DPlot("PedestalNoise/hStripPedME+31",f1,f2,"Pedestal Noise Distribution ME+3/1", 1110,"PedestalNoise_hStripPedME+31.png");
0088   compare1DPlot("PedestalNoise/hStripPedME+32",f1,f2,"Pedestal Noise Distribution ME+3/2", 1110,"PedestalNoise_hStripPedME+32.png");
0089   compare1DPlot("PedestalNoise/hStripPedME+41",f1,f2,"Pedestal Noise Distribution ME+4/1", 1110,"PedestalNoise_hStripPedME+41.png");
0090   compare1DPlot("PedestalNoise/hStripPedME-11",f1,f2,"Pedestal Noise Distribution ME-1/1b", 1110,"PedestalNoise_hStripPedME-11.png");
0091   compare1DPlot("PedestalNoise/hStripPedME-14",f1,f2,"Pedestal Noise Distribution ME-1/1a", 1110,"PedestalNoise_hStripPedME-11a.png");
0092   compare1DPlot("PedestalNoise/hStripPedME-12",f1,f2,"Pedestal Noise Distribution ME-1/2", 1110,"PedestalNoise_hStripPedME-12.png");
0093   compare1DPlot("PedestalNoise/hStripPedME-13",f1,f2,"Pedestal Noise Distribution ME-1/3", 1110,"PedestalNoise_hStripPedME-13.png");
0094   compare1DPlot("PedestalNoise/hStripPedME-21",f1,f2,"Pedestal Noise Distribution ME-2/1", 1110,"PedestalNoise_hStripPedME-21.png");
0095   compare1DPlot("PedestalNoise/hStripPedME-22",f1,f2,"Pedestal Noise Distribution ME-2/2", 1110,"PedestalNoise_hStripPedME-22.png");
0096   compare1DPlot("PedestalNoise/hStripPedME-31",f1,f2,"Pedestal Noise Distribution ME-3/1", 1110,"PedestalNoise_hStripPedME-31.png");
0097   compare1DPlot("PedestalNoise/hStripPedME-32",f1,f2,"Pedestal Noise Distribution ME-3/2", 1110,"PedestalNoise_hStripPedME-32.png");
0098   compare1DPlot("PedestalNoise/hStripPedME-41",f1,f2,"Pedestal Noise Distribution ME-4/1", 1110,"PedestalNoise_hStripPedME-41.png");
0099 
0100   // resolution
0101   compare1DPlot("Resolution/hSResid+11",f1,f2,"Expected Position from Fit - Reconstructed, ME+1/1b", 1110,"Resolution_hSResid+11.png");
0102   compare1DPlot("Resolution/hSResid+14",f1,f2,"Expected Position from Fit - Reconstructed, ME+1/1a", 1110,"Resolution_hSResid+11a.png");
0103   compare1DPlot("Resolution/hSResid+12",f1,f2,"Expected Position from Fit - Reconstructed, ME+1/2", 1110,"Resolution_hSResid+12.png");
0104   compare1DPlot("Resolution/hSResid+13",f1,f2,"Expected Position from Fit - Reconstructed, ME+1/3", 1110,"Resolution_hSResid+13.png");
0105   compare1DPlot("Resolution/hSResid+21",f1,f2,"Expected Position from Fit - Reconstructed, ME+2/1", 1110,"Resolution_hSResid+21.png");
0106   compare1DPlot("Resolution/hSResid+22",f1,f2,"Expected Position from Fit - Reconstructed, ME+2/2", 1110,"Resolution_hSResid+22.png");
0107   compare1DPlot("Resolution/hSResid+31",f1,f2,"Expected Position from Fit - Reconstructed, ME+3/1", 1110,"Resolution_hSResid+31.png");
0108   compare1DPlot("Resolution/hSResid+32",f1,f2,"Expected Position from Fit - Reconstructed, ME+3/2", 1110,"Resolution_hSResid+32.png");
0109   compare1DPlot("Resolution/hSResid+41",f1,f2,"Expected Position from Fit - Reconstructed, ME+4/1", 1110,"Resolution_hSResid+41.png");
0110   compare1DPlot("Resolution/hSResid-11",f1,f2,"Expected Position from Fit - Reconstructed, ME-1/1b", 1110,"Resolution_hSResid-11.png");
0111   compare1DPlot("Resolution/hSResid-14",f1,f2,"Expected Position from Fit - Reconstructed, ME-1/1a", 1110,"Resolution_hSResid-11a.png");
0112   compare1DPlot("Resolution/hSResid-12",f1,f2,"Expected Position from Fit - Reconstructed, ME-1/2", 1110,"Resolution_hSResid-12.png");
0113   compare1DPlot("Resolution/hSResid-13",f1,f2,"Expected Position from Fit - Reconstructed, ME-1/3", 1110,"Resolution_hSResid-13.png");
0114   compare1DPlot("Resolution/hSResid-21",f1,f2,"Expected Position from Fit - Reconstructed, ME-2/1", 1110,"Resolution_hSResid-21.png");
0115   compare1DPlot("Resolution/hSResid-22",f1,f2,"Expected Position from Fit - Reconstructed, ME-2/2", 1110,"Resolution_hSResid-22.png");
0116   compare1DPlot("Resolution/hSResid-31",f1,f2,"Expected Position from Fit - Reconstructed, ME-3/1", 1110,"Resolution_hSResid-31.png");
0117   compare1DPlot("Resolution/hSResid-32",f1,f2,"Expected Position from Fit - Reconstructed, ME-3/2", 1110,"Resolution_hSResid-32.png");
0118   compare1DPlot("Resolution/hSResid-41",f1,f2,"Expected Position from Fit - Reconstructed, ME-4/1", 1110,"Resolution_hSResid-41.png");
0119 
0120 
0121   // rechit timing
0122   compare1DPlot("recHits/hRHTiming+11",f1,f2,"RecHit Timing ME+1/1b", 1110,"recHits_hRHTiming+11.png");
0123   compare1DPlot("recHits/hRHTiming+14",f1,f2,"RecHit Timing ME+1/1a", 1110,"recHits_hRHTiming+11a.png");
0124   compare1DPlot("recHits/hRHTiming+12",f1,f2,"RecHit Timing ME+1/2", 1110,"recHits_hRHTiming+12.png");
0125   compare1DPlot("recHits/hRHTiming+13",f1,f2,"RecHit Timing ME+1/3", 1110,"recHits_hRHTiming+13.png");
0126   compare1DPlot("recHits/hRHTiming+21",f1,f2,"RecHit Timing ME+2/1", 1110,"recHits_hRHTiming+21.png");
0127   compare1DPlot("recHits/hRHTiming+22",f1,f2,"RecHit Timing ME+2/2", 1110,"recHits_hRHTiming+22.png");
0128   compare1DPlot("recHits/hRHTiming+31",f1,f2,"RecHit Timing ME+3/1", 1110,"recHits_hRHTiming+31.png");
0129   compare1DPlot("recHits/hRHTiming+32",f1,f2,"RecHit Timing ME+3/2", 1110,"recHits_hRHTiming+32.png");
0130   compare1DPlot("recHits/hRHTiming+41",f1,f2,"RecHit Timing ME+4/1", 1110,"recHits_hRHTiming+41.png");
0131   compare1DPlot("recHits/hRHTiming-11",f1,f2,"RecHit Timing ME-1/1b", 1110,"recHits_hRHTiming-11.png");
0132   compare1DPlot("recHits/hRHTiming-14",f1,f2,"RecHit Timing ME-1/1a", 1110,"recHits_hRHTiming-11a.png");
0133   compare1DPlot("recHits/hRHTiming-12",f1,f2,"RecHit Timing ME-1/2", 1110,"recHits_hRHTiming-12.png");
0134   compare1DPlot("recHits/hRHTiming-13",f1,f2,"RecHit Timing ME-1/3", 1110,"recHits_hRHTiming-13.png");
0135   compare1DPlot("recHits/hRHTiming-21",f1,f2,"RecHit Timing ME-2/1", 1110,"recHits_hRHTiming-21.png");
0136   compare1DPlot("recHits/hRHTiming-22",f1,f2,"RecHit Timing ME-2/2", 1110,"recHits_hRHTiming-22.png");
0137   compare1DPlot("recHits/hRHTiming-31",f1,f2,"RecHit Timing ME-3/1", 1110,"recHits_hRHTiming-31.png");
0138   compare1DPlot("recHits/hRHTiming-32",f1,f2,"RecHit Timing ME-3/2", 1110,"recHits_hRHTiming-32.png");
0139   compare1DPlot("recHits/hRHTiming-41",f1,f2,"RecHit Timing ME-4/1", 1110,"recHits_hRHTiming-41.png");
0140 
0141   // rechit charge
0142   compare1DPlot("recHits/hRHSumQ+11",f1,f2,"Sum 3x3 RecHit Charge ME+1/1b", 1110,"recHits_hRHSumQ+11.png");
0143   compare1DPlot("recHits/hRHSumQ+14",f1,f2,"Sum 3x3 RecHit Charge ME+1/1a", 1110,"recHits_hRHSumQ+11a.png");
0144   compare1DPlot("recHits/hRHSumQ+12",f1,f2,"Sum 3x3 RecHit Charge ME+1/2", 1110,"recHits_hRHSumQ+12.png");
0145   compare1DPlot("recHits/hRHSumQ+13",f1,f2,"Sum 3x3 RecHit Charge ME+1/3", 1110,"recHits_hRHSumQ+13.png");
0146   compare1DPlot("recHits/hRHSumQ+21",f1,f2,"Sum 3x3 RecHit Charge ME+2/1", 1110,"recHits_hRHSumQ+21.png");
0147   compare1DPlot("recHits/hRHSumQ+22",f1,f2,"Sum 3x3 RecHit Charge ME+2/2", 1110,"recHits_hRHSumQ+22.png");
0148   compare1DPlot("recHits/hRHSumQ+31",f1,f2,"Sum 3x3 RecHit Charge ME+3/1", 1110,"recHits_hRHSumQ+31.png");
0149   compare1DPlot("recHits/hRHSumQ+32",f1,f2,"Sum 3x3 RecHit Charge ME+3/2", 1110,"recHits_hRHSumQ+32.png");
0150   compare1DPlot("recHits/hRHSumQ+41",f1,f2,"Sum 3x3 RecHit Charge ME+4/1", 1110,"recHits_hRHSumQ+41.png");
0151   compare1DPlot("recHits/hRHSumQ-11",f1,f2,"Sum 3x3 RecHit Charge ME-1/1b", 1110,"recHits_hRHSumQ-11.png");
0152   compare1DPlot("recHits/hRHSumQ-14",f1,f2,"Sum 3x3 RecHit Charge ME-1/1a", 1110,"recHits_hRHSumQ-11a.png");
0153   compare1DPlot("recHits/hRHSumQ-12",f1,f2,"Sum 3x3 RecHit Charge ME-1/2", 1110,"recHits_hRHSumQ-12.png");
0154   compare1DPlot("recHits/hRHSumQ-13",f1,f2,"Sum 3x3 RecHit Charge ME-1/3", 1110,"recHits_hRHSumQ-13.png");
0155   compare1DPlot("recHits/hRHSumQ-21",f1,f2,"Sum 3x3 RecHit Charge ME-2/1", 1110,"recHits_hRHSumQ-21.png");
0156   compare1DPlot("recHits/hRHSumQ-22",f1,f2,"Sum 3x3 RecHit Charge ME-2/2", 1110,"recHits_hRHSumQ-22.png");
0157   compare1DPlot("recHits/hRHSumQ-31",f1,f2,"Sum 3x3 RecHit Charge ME-3/1", 1110,"recHits_hRHSumQ-31.png");
0158   compare1DPlot("recHits/hRHSumQ-32",f1,f2,"Sum 3x3 RecHit Charge ME-3/2", 1110,"recHits_hRHSumQ-32.png");
0159   compare1DPlot("recHits/hRHSumQ-41",f1,f2,"Sum 3x3 RecHit Charge ME-4/1", 1110,"recHits_hRHSumQ-41.png");
0160 
0161   compare1DPlot("recHits/hRHRatioQ+11",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME+1/1b", 1110,"recHits_hRHRatioQ+11.png");
0162   compare1DPlot("recHits/hRHRatioQ+14",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME+1/1a", 1110,"recHits_hRHRatioQ+11a.png");
0163   compare1DPlot("recHits/hRHRatioQ+12",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME+1/2", 1110,"recHits_hRHRatioQ+12.png");
0164   compare1DPlot("recHits/hRHRatioQ+13",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME+1/3", 1110,"recHits_hRHRatioQ+13.png");
0165   compare1DPlot("recHits/hRHRatioQ+21",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME+2/1", 1110,"recHits_hRHRatioQ+21.png");
0166   compare1DPlot("recHits/hRHRatioQ+22",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME+2/2", 1110,"recHits_hRHRatioQ+22.png");
0167   compare1DPlot("recHits/hRHRatioQ+31",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME+3/1", 1110,"recHits_hRHRatioQ+31.png");
0168   compare1DPlot("recHits/hRHRatioQ+32",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME+3/2", 1110,"recHits_hRHRatioQ+32.png");
0169   compare1DPlot("recHits/hRHRatioQ+41",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME+4/1", 1110,"recHits_hRHRatioQ+41.png");
0170   compare1DPlot("recHits/hRHRatioQ-11",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME-1/1b", 1110,"recHits_hRHRatioQ-11.png");
0171   compare1DPlot("recHits/hRHRatioQ-14",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME-1/1a", 1110,"recHits_hRHRatioQ-11a.png");
0172   compare1DPlot("recHits/hRHRatioQ-12",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME-1/2", 1110,"recHits_hRHRatioQ-12.png");
0173   compare1DPlot("recHits/hRHRatioQ-13",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME-1/3", 1110,"recHits_hRHRatioQ-13.png");
0174   compare1DPlot("recHits/hRHRatioQ-21",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME-2/1", 1110,"recHits_hRHRatioQ-21.png");
0175   compare1DPlot("recHits/hRHRatioQ-22",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME-2/2", 1110,"recHits_hRHRatioQ-22.png");
0176   compare1DPlot("recHits/hRHRatioQ-31",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME-3/1", 1110,"recHits_hRHRatioQ-31.png");
0177   compare1DPlot("recHits/hRHRatioQ-32",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME-3/2", 1110,"recHits_hRHRatioQ-32.png");
0178   compare1DPlot("recHits/hRHRatioQ-41",f1,f2,"Charge Ratio (Ql_Qr)/Qt ME-4/1", 1110,"recHits_hRHRatioQ-41.png");
0179 
0180   // rechit strip position
0181   compare1DPlot("recHits/hRHstpos+11",f1,f2,"Hit Position on Strip ME+1/1b", 1110,"recHits_hRHstpos+11.png");
0182   compare1DPlot("recHits/hRHstpos+14",f1,f2,"Hit Position on Strip ME+1/1a", 1110,"recHits_hRHstpos+11a.png");
0183   compare1DPlot("recHits/hRHstpos+12",f1,f2,"Hit Position on Strip ME+1/2", 1110,"recHits_hRHstpos+12.png");
0184   compare1DPlot("recHits/hRHstpos+13",f1,f2,"Hit Position on Strip ME+1/3", 1110,"recHits_hRHstpos+13.png");
0185   compare1DPlot("recHits/hRHstpos+21",f1,f2,"Hit Position on Strip ME+2/1", 1110,"recHits_hRHstpos+21.png");
0186   compare1DPlot("recHits/hRHstpos+22",f1,f2,"Hit Position on Strip ME+2/2", 1110,"recHits_hRHstpos+22.png");
0187   compare1DPlot("recHits/hRHstpos+31",f1,f2,"Hit Position on Strip ME+3/1", 1110,"recHits_hRHstpos+31.png");
0188   compare1DPlot("recHits/hRHstpos+32",f1,f2,"Hit Position on Strip ME+3/2", 1110,"recHits_hRHstpos+32.png");
0189   compare1DPlot("recHits/hRHstpos+41",f1,f2,"Hit Position on Strip ME+4/1", 1110,"recHits_hRHstpos+41.png");
0190   compare1DPlot("recHits/hRHstpos-11",f1,f2,"Hit Position on Strip ME-1/1b", 1110,"recHits_hRHstpos-11.png");
0191   compare1DPlot("recHits/hRHstpos-14",f1,f2,"Hit Position on Strip ME-1/1a", 1110,"recHits_hRHstpos-11a.png");
0192   compare1DPlot("recHits/hRHstpos-12",f1,f2,"Hit Position on Strip ME-1/2", 1110,"recHits_hRHstpos-12.png");
0193   compare1DPlot("recHits/hRHstpos-13",f1,f2,"Hit Position on Strip ME-1/3", 1110,"recHits_hRHstpos-13.png");
0194   compare1DPlot("recHits/hRHstpos-21",f1,f2,"Hit Position on Strip ME-2/1", 1110,"recHits_hRHstpos-21.png");
0195   compare1DPlot("recHits/hRHstpos-22",f1,f2,"Hit Position on Strip ME-2/2", 1110,"recHits_hRHstpos-22.png");
0196   compare1DPlot("recHits/hRHstpos-31",f1,f2,"Hit Position on Strip ME-3/1", 1110,"recHits_hRHstpos-31.png");
0197   compare1DPlot("recHits/hRHstpos-32",f1,f2,"Hit Position on Strip ME-3/2", 1110,"recHits_hRHstpos-32.png");
0198   compare1DPlot("recHits/hRHstpos-41",f1,f2,"Hit Position on Strip ME-4/1", 1110,"recHits_hRHstpos-41.png");
0199 
0200   //hits on a segment
0201   compare1DPlot("Segments/hSnHits+11",f1,f2,"N Hits on Segments ME+1/1b", 1110,"Segments_hSnHits+11.png");
0202   compare1DPlot("Segments/hSnHits+14",f1,f2,"N Hits on Segments ME+1/1a", 1110,"Segments_hSnHits+11a.png");
0203   compare1DPlot("Segments/hSnHits+12",f1,f2,"N Hits on Segments ME+1/2", 1110,"Segments_hSnHits+12.png");
0204   compare1DPlot("Segments/hSnHits+13",f1,f2,"N Hits on Segments ME+1/3", 1110,"Segments_hSnHits+13.png");
0205   compare1DPlot("Segments/hSnHits+21",f1,f2,"N Hits on Segments ME+2/1", 1110,"Segments_hSnHits+21.png");
0206   compare1DPlot("Segments/hSnHits+22",f1,f2,"N Hits on Segments ME+2/2", 1110,"Segments_hSnHits+22.png");
0207   compare1DPlot("Segments/hSnHits+31",f1,f2,"N Hits on Segments ME+3/1", 1110,"Segments_hSnHits+31.png");
0208   compare1DPlot("Segments/hSnHits+32",f1,f2,"N Hits on Segments ME+3/2", 1110,"Segments_hSnHits+32.png");
0209   compare1DPlot("Segments/hSnHits+41",f1,f2,"N Hits on Segments ME+4/1", 1110,"Segments_hSnHits+41.png");
0210   compare1DPlot("Segments/hSnHits-11",f1,f2,"N Hits on Segments ME-1/1b", 1110,"Segments_hSnHits-11.png");
0211   compare1DPlot("Segments/hSnHits-14",f1,f2,"N Hits on Segments ME-1/1a", 1110,"Segments_hSnHits-11a.png");
0212   compare1DPlot("Segments/hSnHits-12",f1,f2,"N Hits on Segments ME-1/2", 1110,"Segments_hSnHits-12.png");
0213   compare1DPlot("Segments/hSnHits-13",f1,f2,"N Hits on Segments ME-1/3", 1110,"Segments_hSnHits-13.png");
0214   compare1DPlot("Segments/hSnHits-21",f1,f2,"N Hits on Segments ME-2/1", 1110,"Segments_hSnHits-21.png");
0215   compare1DPlot("Segments/hSnHits-22",f1,f2,"N Hits on Segments ME-2/2", 1110,"Segments_hSnHits-22.png");
0216   compare1DPlot("Segments/hSnHits-31",f1,f2,"N Hits on Segments ME-3/1", 1110,"Segments_hSnHits-31.png");
0217   compare1DPlot("Segments/hSnHits-32",f1,f2,"N Hits on Segments ME-3/2", 1110,"Segments_hSnHits-32.png");
0218   compare1DPlot("Segments/hSnHits-41",f1,f2,"N Hits on Segments ME-4/1", 1110,"Segments_hSnHits-41.png");
0219 
0220   // segment chi2
0221   compare1DPlot("Segments/hSChiSq+11",f1,f2,"Segment Chi2/ndof ME+1/1b", 1110,"Segments_hSChiSq+11.png");
0222   compare1DPlot("Segments/hSChiSq+14",f1,f2,"Segment Chi2/ndof ME+1/1a", 1110,"Segments_hSChiSq+11a.png");
0223   compare1DPlot("Segments/hSChiSq+12",f1,f2,"Segment Chi2/ndof ME+1/2", 1110,"Segments_hSChiSq+12.png");
0224   compare1DPlot("Segments/hSChiSq+13",f1,f2,"Segment Chi2/ndof ME+1/3", 1110,"Segments_hSChiSq+13.png");
0225   compare1DPlot("Segments/hSChiSq+21",f1,f2,"Segment Chi2/ndof ME+2/1", 1110,"Segments_hSChiSq+21.png");
0226   compare1DPlot("Segments/hSChiSq+22",f1,f2,"Segment Chi2/ndof ME+2/2", 1110,"Segments_hSChiSq+22.png");
0227   compare1DPlot("Segments/hSChiSq+31",f1,f2,"Segment Chi2/ndof ME+3/1", 1110,"Segments_hSChiSq+31.png");
0228   compare1DPlot("Segments/hSChiSq+32",f1,f2,"Segment Chi2/ndof ME+3/2", 1110,"Segments_hSChiSq+32.png");
0229   compare1DPlot("Segments/hSChiSq+41",f1,f2,"Segment Chi2/ndof ME+4/1", 1110,"Segments_hSChiSq+41.png");
0230   compare1DPlot("Segments/hSChiSq-11",f1,f2,"Segment Chi2/ndof ME-1/1b", 1110,"Segments_hSChiSq-11.png");
0231   compare1DPlot("Segments/hSChiSq-14",f1,f2,"Segment Chi2/ndof ME-1/1a", 1110,"Segments_hSChiSq-11a.png");
0232   compare1DPlot("Segments/hSChiSq-12",f1,f2,"Segment Chi2/ndof ME-1/2", 1110,"Segments_hSChiSq-12.png");
0233   compare1DPlot("Segments/hSChiSq-13",f1,f2,"Segment Chi2/ndof ME-1/3", 1110,"Segments_hSChiSq-13.png");
0234   compare1DPlot("Segments/hSChiSq-21",f1,f2,"Segment Chi2/ndof ME-2/1", 1110,"Segments_hSChiSq-21.png");
0235   compare1DPlot("Segments/hSChiSq-22",f1,f2,"Segment Chi2/ndof ME-2/2", 1110,"Segments_hSChiSq-22.png");
0236   compare1DPlot("Segments/hSChiSq-31",f1,f2,"Segment Chi2/ndof ME-3/1", 1110,"Segments_hSChiSq-31.png");
0237   compare1DPlot("Segments/hSChiSq-32",f1,f2,"Segment Chi2/ndof ME-3/2", 1110,"Segments_hSChiSq-32.png");
0238   compare1DPlot("Segments/hSChiSq-41",f1,f2,"Segment Chi2/ndof ME-4/1", 1110,"Segments_hSChiSq-41.png");
0239 
0240   
0241 
0242   //miscellaneous
0243   compare1DPlot("Segments/hSGlobalPhi",f1,f2,"Segment Global Phi", 1110,"Segments_hSGlobalPhi.png");
0244   compare1DPlot("Segments/hSGlobalTheta",f1,f2,"Segment Global Theta", 1110,"Segments_hSGlobalTheta.png");
0245   
0246 
0247 
0248 }
0249 
0250 EOF
0251 
0252 root -l -q -b ${MACRO}
0253 
0254 rm makePlots.C
0255