hps-java/src/main/java/org/lcsim/hps/recon/tracking
diff -u -r1.4 -r1.5
--- DataProcessingModule.java 30 Aug 2012 03:31:13 -0000 1.4
+++ DataProcessingModule.java 30 Aug 2012 11:57:14 -0000 1.5
@@ -5,6 +5,7 @@
import java.util.List;
import java.util.Map;
+import org.lcsim.detector.IReadout;
import org.lcsim.detector.tracker.silicon.ChargeCarrier;
import org.lcsim.detector.tracker.silicon.SiSensor;
import org.lcsim.event.EventHeader;
@@ -19,7 +20,7 @@
/**
*
* @author Omar Moreno <[log in to unmask]>
- * @version $Id: DataProcessingModule.java,v 1.4 2012/08/30 03:31:13 omoreno Exp $
+ * @version $Id: DataProcessingModule.java,v 1.5 2012/08/30 11:57:14 omoreno Exp $
*/
public class DataProcessingModule extends Driver {
@@ -95,7 +96,9 @@
SvtDataBlocks blocks = sensor.getValue();
for(int channel = 0; channel < 640; channel++){
-
+
+ if(HPSSVTCalibrationConstants.isBadChannel(sensor.getKey(), channel)) continue;
+
short[] samples = blocks.getSamples(channel);
if(!this.samplesAboveThreshold(sensor.getKey(), channel, samples)) continue;
@@ -112,7 +115,12 @@
sideNumber = ChargeCarrier.ELECTRON.charge();
}
long cellID = sensor.getKey().makeStripId(channel, sideNumber).getValue();
- rawHits.add(new BaseRawTrackerHit(time, cellID, samples, new ArrayList<SimTrackerHit>(), sensor.getKey()));
+ RawTrackerHit rawHit = new BaseRawTrackerHit(time, cellID, samples, new ArrayList<SimTrackerHit>(), sensor.getKey());
+ rawHits.add(rawHit);
+
+ // Add the raw hit to the sensor readout
+ IReadout readOut = sensor.getKey().getReadout();
+ readOut.addHit(rawHit);
}
}