Commit in hps-java/src/main/java/org/lcsim/hps/recon/ecal on MAIN | |||
EcalCrystalFilter.java | +15 | -1 | 1.4 -> 1.5 |
Added output file.
diff -u -r1.4 -r1.5 --- EcalCrystalFilter.java 8 Jun 2012 17:45:50 -0000 1.4 +++ EcalCrystalFilter.java 22 Jun 2012 22:41:32 -0000 1.5 @@ -30,6 +30,7 @@
public class EcalCrystalFilter extends Driver implements Resettable, ActionListener, Redrawable { private String inputCollection;
+ private String outputPlotFileName;
private IPlotter plotter; private IPlotter plotter2; private IPlotter plotter3;
@@ -137,6 +138,9 @@
Logger.getLogger(EcalCrystalFilter.class.getName()).log(Level.SEVERE, null, ex); }
+ + outputPlotFileName = ""; +
} public void closeFile() throws IOException {
@@ -634,6 +638,16 @@
} catch (IOException ex) { Logger.getLogger(EcalCrystalFilter.class.getName()).log(Level.SEVERE, null, ex); }
+ + + if (outputPlotFileName != "") + try { + aida.saveAs(outputPlotFileName); + } catch (IOException ex) { + Logger.getLogger(EcalCrystalFilter.class.getName()).log(Level.SEVERE, "Couldn't save aida plots to file " + outputPlotFileName, ex); + } + //displayFastTrackingPlots(); +
} public void reset() {
@@ -925,7 +939,7 @@
tBTOutMeanPlot.reset(); for (int x = -23; x <= 23; x++) { // slot for (int y = -5; y <= 5; y++) { // crate
- System.out.println("redraw x,y " + x + "," + y + " tT " + tTPlots[x + 23][y + 5].entries() + " tB " + tBPlots[x + 23][y + 5].entries());
+ //System.out.println("redraw x,y " + x + "," + y + " tT " + tTPlots[x + 23][y + 5].entries() + " tB " + tBPlots[x + 23][y + 5].entries());
if (aPlots[x + 23][y + 5].entries() > 10) { aSigmaPlot.fill(aPlots[x + 23][y + 5].rms()); aMeanPlot.fill(aPlots[x + 23][y + 5].mean());
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