Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-21 01:09:41

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