Commit in hps-java/src/main/java/org/lcsim/hps/monitoring/svt on MAIN | |||
SVTEventInfo.java | +13 | -11 | 1.1 -> 1.2 |
Basic SVT hit monitor.
diff -u -r1.1 -r1.2 --- SVTEventInfo.java 2 May 2012 00:01:13 -0000 1.1 +++ SVTEventInfo.java 2 May 2012 01:45:37 -0000 1.2 @@ -53,17 +53,17 @@
IPlotter plotter2 = fac.createPlotterFactory().create("HPS SVT Events Plots"); plotters.add(plotter2); IPlotterStyle style2 = plotter2.style();
- style2.dataStyle().fillStyle().setColor("green"); - style2.dataStyle().errorBarStyle().setVisible(true);
+ style2.dataStyle().fillStyle().setColor("green"); + style2.dataStyle().errorBarStyle().setVisible(false);
plotter2.createRegions(1, 2);
-
+ style2.dataStyle().markerStyle().setSize(20);
IHistogram1D nrawTopPlot = aida.histogram1D("Total Number of Raw Hits in Top Half", 20, 0, 19.0); IHistogram1D nrawBottomPlot = aida.histogram1D("Total Number of Raw Hits in Bottom Half", 20, 0, 19.0); IHistogram1D nlayersTopPlot = aida.histogram1D("Number of Layers Hit in Top Half", 11, 0, 10.0); IHistogram1D nlayersBottomPlot = aida.histogram1D("Number of Layers Hit in Bottom Half", 11, 0, 10.0);
- IProfile avgLayersTopPlot = aida.profile1D("Number of Hits per layer in Top Half", 10, 1,10); - IProfile avgLayersBottomPlot = aida.profile1D("Number of Hits per layer in Bottom Half", 10,1,10);
+ IProfile avgLayersTopPlot = aida.profile1D("Number of Hits per layer in Top Half", 10, 1,11); + IProfile avgLayersBottomPlot = aida.profile1D("Number of Hits per layer in Bottom Half", 10,1,11);
plotter.region(0).plot(nrawTopPlot); plotter.region(1).plot(nrawBottomPlot);
@@ -91,11 +91,13 @@
int layerNumber = hit.getLayerNumber(); boolean isTop = isHitOnTop(hit); if (isTop) {
- totalTopHit++; - layersTop[layerNumber] ++;
+ if(layerNumber!=5)totalTopHit++; +// layersTop[layerNumber] ++; + if(layerNumber!=5)layersTop[layerNumber-1] ++; //mask layer 5, top
} else {
- totalBotHit++; - layersBot[layerNumber]++;
+ if(layerNumber!=4)totalBotHit++; +// layersBot[layerNumber]++; + if(layerNumber!=4)layersBot[layerNumber-1]++; //mask layer 4, bottom
} }
@@ -109,8 +111,8 @@
nlayersTopHit++; if (layersBot[i]>0) nlayersBotHit++;
- aida.profile1D("Number of Hits per layer in Top Half").fill(i,layersTop[i]); - aida.profile1D("Number of Hits per layer in Bottom Half").fill(i,layersBot[i]);
+ aida.profile1D("Number of Hits per layer in Top Half").fill(i+1,layersTop[i]); + aida.profile1D("Number of Hits per layer in Bottom Half").fill(i+1,layersBot[i]);
} aida.histogram1D("Number of Layers Hit in Top Half").fill(nlayersTopHit);
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1