Print

Print


Commit in lcsim/src/org/lcsim/mc/CCDSim on MAIN
ReconstructedCCDHit.java+14-81.1 -> 1.2
JM: Added pathLength method to ReconstructedCCDHit to fulfill SimTrackerHit interface; it throws a RuntimeException

lcsim/src/org/lcsim/mc/CCDSim
ReconstructedCCDHit.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- ReconstructedCCDHit.java	30 Sep 2005 18:31:49 -0000	1.1
+++ ReconstructedCCDHit.java	23 Mar 2006 00:44:40 -0000	1.2
@@ -14,9 +14,9 @@
  * @author sinev  U of Oregon; SLAC x2970 ; [log in to unmask]
  * @see SimTrackerHit
  * @see CCDSim
- * @see CCD 
+ * @see CCD
  */
-	
+
 public class ReconstructedCCDHit implements SimTrackerHit, java.io.Serializable
 {
  double[] point = new double[3];
@@ -39,7 +39,7 @@
   double pax = x;
   double pay = y;
   if(par != null)
-  { 
+  {
    pax = par.getPoint()[0];
    pay = par.getPoint()[1];
    mom = par.getMomentum();
@@ -53,14 +53,14 @@
  }
 
  // SimTrackerHit access functions:
-				
+
 // public int getLayer() { if(parent != null) return parent.getLayer(); return 0; }
  /**
   * hit position
   * @return <code>double[]</code> 3 coordinates of the hit position
   */
  public double[] getPoint() { return point; }
- public double[] getMomentum() 
+ public double[] getMomentum()
   {
    return mom;
   }
@@ -72,7 +72,7 @@
  /**
   * encoded hit cell identification to use in the CellIDDecoder
   * @return cell id which can be used by CellIDDecoder to determine hits layer,
-  * barrel/endcap affiliation and so on  
+  * barrel/endcap affiliation and so on
   */
  public int getCellID() { if(parent != null) return parent.getCellID(); return 0; }
  /**
@@ -84,7 +84,7 @@
   * finding MC particle which generated this hit
   * @return <code>MCParticle</code> which generated hit. If hit has contribution from more than
   * one particle, the largest contributor in the hit signal will be returned.
-  * May return null if MC parent of the hit is not defigned (some type of background hits) 
+  * May return null if MC parent of the hit is not defigned (some type of background hits)
   */
  public MCParticle getMCParticle() { if(parent != null) return parent.getMCParticle(); return null; }
 // public int getSystem() {if(parent != null) return parent.getSystem(); return 0; }
@@ -104,10 +104,16 @@
  public int getADCCounts() { return ADCcounts; }
  /**
   * setting hit digitized amplitude
-  * @param cnts - summ of ADC counts from all pixels, composing hit. Is set by CCDClusterCenter 
+  * @param cnts - summ of ADC counts from all pixels, composing hit. Is set by CCDClusterCenter
   */
  public void setADCCounts(int cnts) {ADCcounts=cnts;}
 
+
+    /* Need this is fulfill SimTrackerHit interface --JM 03-22-2006 */
+    public double getPathLength()
+    {
+        throw new RuntimeException("The getPathLength method from the SimTrackerHit interface is not implemented by ReconstructedCCDHit.");
+    }
 }
 
 
CVSspam 0.2.8