hps-java/src/main/java/org/lcsim/hps/recon/tracking
diff -N HPSTrackerHit.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ HPSTrackerHit.java 24 Apr 2012 14:07:45 -0000 1.1
@@ -0,0 +1,43 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package org.lcsim.hps.recon.tracking;
+
+import org.lcsim.detector.identifier.Identifier;
+import org.lcsim.event.RawTrackerHit;
+import org.lcsim.event.base.BaseRawTrackerHit;
+
+/**
+ *
+ * @author mgraham
+ */
+public class HPSTrackerHit extends BaseRawTrackerHit{
+ double t0;
+ double amp;
+ public HPSTrackerHit(
+ long id,
+ int time,
+ short[] adcValues, double t0, double Amp) {
+ this.cellId = id;
+ this.compactId = new Identifier(id);
+ this.time = time;
+ this.adcValues = adcValues;
+ this.t0=t0;
+ this.amp=Amp;
+ }
+
+ public HPSTrackerHit(
+ RawTrackerHit rth, double t0, double Amp) {
+ this.cellId = rth.getCellID();
+ this.compactId = new Identifier(rth.getCellID());
+ this.time = rth.getTime();
+ this.adcValues = rth.getADCValues();
+ this.t0=t0;
+ this.amp=Amp;
+ }
+
+ public double getT0(){return t0;}
+ public double getAmp(){return amp;}
+
+}