Author: [log in to unmask]
Date: Thu Dec 10 11:53:45 2015
New Revision: 4046
Log:
otion to show plots
Modified:
java/trunk/steering-files/src/main/resources/org/hps/steering/recon/EngineeringRun2015STRecon.lcsim
java/trunk/tracking/src/main/java/org/hps/recon/tracking/straight/StraightThroughAnalysisDriver.java
Modified: java/trunk/steering-files/src/main/resources/org/hps/steering/recon/EngineeringRun2015STRecon.lcsim
=============================================================================
--- java/trunk/steering-files/src/main/resources/org/hps/steering/recon/EngineeringRun2015STRecon.lcsim (original)
+++ java/trunk/steering-files/src/main/resources/org/hps/steering/recon/EngineeringRun2015STRecon.lcsim Thu Dec 10 11:53:45 2015
@@ -55,6 +55,7 @@
<driver name="StraightThroughDriver" type="org.hps.recon.tracking.straight.StraightThroughAnalysisDriver">
<outputFilename>${outputFile}</outputFilename>
<writeGbl>true</writeGbl>
+ <showPlots>false</showPlots>
</driver>
</drivers>
Modified: java/trunk/tracking/src/main/java/org/hps/recon/tracking/straight/StraightThroughAnalysisDriver.java
=============================================================================
--- java/trunk/tracking/src/main/java/org/hps/recon/tracking/straight/StraightThroughAnalysisDriver.java (original)
+++ java/trunk/tracking/src/main/java/org/hps/recon/tracking/straight/StraightThroughAnalysisDriver.java Thu Dec 10 11:53:45 2015
@@ -117,6 +117,7 @@
private String outputFilename = "";
private PrintWriter gblPrintWriter = null;
private boolean writeGbl = true;
+ private boolean showPlots = true;
@@ -392,8 +393,10 @@
}
- for(IPlotter plotter : plotters.values())
- plotter.show();
+ if(showPlots ) {
+ for(IPlotter plotter : plotters.values())
+ plotter.show();
+ }
}
@@ -1029,6 +1032,12 @@
+ public void setShowPlots(boolean showPlots) {
+ this.showPlots = showPlots;
+ }
+
+
+
|