Print

Print


Author: [log in to unmask]
Date: Fri Mar 27 18:38:48 2015
New Revision: 2610

Log:
Remove unnecessary plotter calls from monitoring Driver.

Modified:
    java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalMonitoringPlots.java

Modified: java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalMonitoringPlots.java
 =============================================================================
--- java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalMonitoringPlots.java	(original)
+++ java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalMonitoringPlots.java	Fri Mar 27 18:38:48 2015
@@ -6,7 +6,6 @@
 
 import java.util.List;
 
-import org.hps.recon.ecal.ECalUtils;
 import org.lcsim.event.CalorimeterHit;
 import org.lcsim.event.Cluster;
 import org.lcsim.event.EventHeader;
@@ -44,7 +43,6 @@
     int eventn = 0;
     int thisEventN,prevEventN;
 
-    boolean hide = false;
     long thisTime,prevTime;
     double thisEventTime,prevEventTime;
 
@@ -58,11 +56,6 @@
     public void setClusterCollection(String clusterCollection) {
         this.clusterCollection = clusterCollection;
     }
-
-    public void setHide(boolean hide) {
-        this.hide = hide;
-    }
-
 
     /**
      * Set the refresh rate for histograms in this driver
@@ -74,7 +67,7 @@
     }
 
     protected void detectorChanged(Detector detector) {
-        System.out.println("EcalMonitoringPlots:: detector changed was called");
+        //System.out.println("EcalMonitoringPlots:: detector changed was called");
         // Setup the plotter.
         plotter = aida.analysisFactory().createPlotterFactory("Ecal Monitoring Plots").create("HPS ECal Monitoring Plots");
         // Setup plots.
@@ -116,9 +109,8 @@
         // style.zAxisStyle().setParameter("scale", "log");
         plotter.region(2).plot(occupancyDrawPlot);
 
-        if (!hide) {
-            plotter.show();
-        }
+        plotter.show();
+
         prevTime=0; //init the time 
         thisTime=0; //init the time 
 
@@ -189,8 +181,6 @@
     }
 
     public void endOfData() {
-        plotter.hide();
-        plotter.destroyRegions();
     }
 
     void redraw() {