Commit in hps-java/src/main/java/org/lcsim/hps/recon/tracking/apv25 on MAIN
SvtReadout.java+7-31.7 -> 1.8
very hackish patch to keep SVT readout dead time from breaking event builder synchronization

hps-java/src/main/java/org/lcsim/hps/recon/tracking/apv25
SvtReadout.java 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- SvtReadout.java	15 Sep 2012 01:28:29 -0000	1.7
+++ SvtReadout.java	21 Sep 2012 21:08:01 -0000	1.8
@@ -1,6 +1,7 @@
 package org.lcsim.hps.recon.tracking.apv25;
 
 //--- java ---//
+import org.lcsim.event.RawTrackerHit;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -35,7 +36,7 @@
 /**
  * 
  * @author Omar Moreno <[log in to unmask]>
- * @version $Id: SvtReadout.java,v 1.7 2012/09/15 01:28:29 omoreno Exp $
+ * @version $Id: SvtReadout.java,v 1.8 2012/09/21 21:08:01 meeg Exp $
  */
 public class SvtReadout extends Driver {
 
@@ -156,8 +157,8 @@
             
         // If an Ecal trigger is received, readout six samples from each APV25
         if(Apv25Full.readoutBit){
-            
-        	nTriggers++;
+
+            nTriggers++;
             Apv25Full.readoutBit = false;
 
             // An APV25 cannot receive a trigger while it's still reading out samples; 
@@ -176,6 +177,9 @@
                 }
             } else {
             	if(debug) System.out.println(this.getClass().getSimpleName() + ": Trigger has been dropped!");
+                //make an empty hit collection to make the DAQ happy
+                //TODO: block the event builder from making an event
+                event.put("SVTRawTrackerHits", new ArrayList<RawTrackerHit>(), RawTrackerHit.class, 0);
             	nTriggersDropped++;
             	nTriggers--;
             }
CVSspam 0.2.12


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