Print

Print


Author: [log in to unmask]
Date: Mon Jan  5 14:52:27 2015
New Revision: 1869

Log:
Flush the logger after every event.

Modified:
    java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterDriver.java

Modified: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterDriver.java
 =============================================================================
--- java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterDriver.java	(original)
+++ java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterDriver.java	Mon Jan  5 14:52:27 2015
@@ -191,7 +191,6 @@
      * This method implements the default clustering procedure based on input parameters.
      */
     public void process(EventHeader event) {
-        this.getLogger().fine("processing event #" + event.getEventNumber());
         if (event.hasCollection(CalorimeterHit.class, inputHitCollectionName)) {       
             List<CalorimeterHit> hits = event.get(CalorimeterHit.class, inputHitCollectionName);
             logger.fine("input hit collection " + inputHitCollectionName + " has " + hits.size() + " hits");
@@ -225,6 +224,7 @@
                 throw new RuntimeException("The expected input hit collection is missing from the event.");
             }
         }
+        logger.getHandlers()[0].flush();
     }
     
     /**
@@ -244,4 +244,4 @@
         // Return the Clusterer and cast it to the type provided by the caller.
         return (ClustererType) clusterer;
     }
-}
+}