Print

Print


Commit in hps-java/src/main/java/org/lcsim/hps/recon/ecal on MAIN
HPSEcalReadoutDriver.java+2-21.10 -> 1.11
fix mod math in readout clock

hps-java/src/main/java/org/lcsim/hps/recon/ecal
HPSEcalReadoutDriver.java 1.10 -> 1.11
diff -u -r1.10 -r1.11
--- HPSEcalReadoutDriver.java	29 Aug 2011 23:05:37 -0000	1.10
+++ HPSEcalReadoutDriver.java	30 Aug 2011 22:00:33 -0000	1.11
@@ -15,7 +15,7 @@
  * Performs readout of ECal hits.
  * 
  * @author Sho Uemura <[log in to unmask]>
- * @version $Id: HPSEcalReadoutDriver.java,v 1.10 2011/08/29 23:05:37 meeg Exp $
+ * @version $Id: HPSEcalReadoutDriver.java,v 1.11 2011/08/30 22:00:33 meeg Exp $
  */
 public abstract class HPSEcalReadoutDriver extends Driver {
 
@@ -89,7 +89,7 @@
         putHits(hits);
 
         //if at the end of a readout cycle, write buffers to hits
-        if (ClockSingleton.getClock() % readoutCycle == 0) {
+        if ((ClockSingleton.getClock() + 1) % readoutCycle == 0) {
             event.put(ecalRawCollectionName, readHits(), HPSRawCalorimeterHit.class, flags, ecalReadoutName);
         } else
             event.put(ecalRawCollectionName, new ArrayList<HPSRawCalorimeterHit>(), HPSRawCalorimeterHit.class, flags, ecalReadoutName);
CVSspam 0.2.8