Commit in hps-java/src/main/java/org/lcsim/hps/monitoring/svt on MAIN | |||
SVTHitPulsePlots.java | +9 | -4 | 1.2 -> 1.3 |
Cheat a little to make the plots more pretty.
diff -u -r1.2 -r1.3 --- SVTHitPulsePlots.java 1 May 2012 17:59:22 -0000 1.2 +++ SVTHitPulsePlots.java 1 May 2012 19:03:38 -0000 1.3 @@ -39,12 +39,14 @@
plotters.add(plotter3); IPlotterStyle style3 = plotter3.style(); style3.statisticsBoxStyle().setVisible(false);
- style3.dataStyle().fillStyle().setColor("yellow"); - style3.dataStyle().errorBarStyle().setVisible(false);
+ style3.dataStyle().fillStyle().setColor("black"); + style3.dataStyle().errorBarStyle().setVisible(true);
plotter3.createRegions(5, 4); int ns = sensors.size(); for (int i = 0; i < ns; i++) {
- IHistogram2D pulsePlot = aida.histogram2D(sensors.get(i).getName() + "_pulse", 6, 0, 24 * 6.0, 50, -1000, 2000.0);
+// IHistogram2D pulsePlot = aida.histogram2D(sensors.get(i).getName() + "_pulse", 6, 0, 24 * 6.0, 50, -100, 1500.0); + IProfile pulsePlot = aida.profile1D(sensors.get(i).getName() + "_pulse", 6, 0, 24 * 6.0); +
plotter3.region(i).plot(pulsePlot); } plotter3.show();
@@ -77,9 +79,12 @@
int strip = hit.getIdentifierFieldValue("strip"); short[] adcVal = hit.getADCValues(); double ped = HPSSVTCalibrationConstants.getPedestal(sensor, strip);
+ double noise = HPSSVTCalibrationConstants.getNoise(sensor, strip);
for (int i = 0; i < 6; i++) { double pedSub = (adcVal[i]-ped);
- aida.histogram2D(sensorName+"_pulse").fill(24.0*i, pedSub);
+ //only plot hits above threshold... + if(pedSub/noise>3) + aida.profile1D(sensorName+"_pulse").fill(24.0*i, pedSub);
} } }
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