Commit in hps-java/src/main/java/org/lcsim/hps/recon/ecal on MAIN | |||
HPSRawCalorimeterHit.java | +12 | -1 | 1.7 -> 1.8 |
Override position functions to avoid using cell id and use detector element instead.
diff -u -r1.7 -r1.8 --- HPSRawCalorimeterHit.java 27 Aug 2012 21:53:47 -0000 1.7 +++ HPSRawCalorimeterHit.java 1 Oct 2012 21:22:54 -0000 1.8 @@ -1,5 +1,6 @@
package org.lcsim.hps.recon.ecal;
+import hep.physics.vec.Hep3Vector;
import java.util.Comparator; import org.lcsim.detector.IDetectorElement; import org.lcsim.detector.IDetectorElementContainer;
@@ -11,7 +12,7 @@
* for use in ECalReadout * * @author Sho Uemura
- * @version $Id: HPSRawCalorimeterHit.java,v 1.7 2012/08/27 21:53:47 meeg Exp $
+ * @version $Id: HPSRawCalorimeterHit.java,v 1.8 2012/10/01 21:22:54 phansson Exp $
*/ public class HPSRawCalorimeterHit extends BaseCalorimeterHit {
@@ -51,6 +52,16 @@
return de; }
+ @Override + public double[] getPosition() { + return getPositionVec().v(); + } + + @Override + public Hep3Vector getPositionVec() { + return this.getDetectorElement().getGeometry().getPosition(); + } +
static class TimeComparator implements Comparator<CalorimeterHit> { @Override
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