Print

Print


Commit in lcsim/sandbox/RobKutschke/TKNHits on MAIN
ReadTKNRawHitsDriverV1.java+12-31.6 -> 1.7
Add comments clarifying the two ways to get the helper.

lcsim/sandbox/RobKutschke/TKNHits
ReadTKNRawHitsDriverV1.java 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- ReadTKNRawHitsDriverV1.java	16 Nov 2007 16:57:03 -0000	1.6
+++ ReadTKNRawHitsDriverV1.java	17 Nov 2007 00:36:00 -0000	1.7
@@ -51,9 +51,9 @@
  * one of many possible organizations.
  *
  *@author $Author: kutschke $
- *@version $Id: ReadTKNRawHitsDriverV1.java,v 1.6 2007/11/16 16:57:03 kutschke Exp $
+ *@version $Id: ReadTKNRawHitsDriverV1.java,v 1.7 2007/11/17 00:36:00 kutschke Exp $
  *
- * Date $Date: 2007/11/16 16:57:03 $
+ * Date $Date: 2007/11/17 00:36:00 $
  * 
  * Notes:
  *
@@ -84,6 +84,13 @@
  *      - Choose a Map so that one can address hits by strip number
  *      - Choose a TreeMap so that the keyset is sorted in order of ascending strip number.
  *
+ * 7) There are two ways to get the helper:
+ *      - From the subdetector
+ *      - From the RawTrackerHit
+ *    I do not know yet if the same helper will work for all of Tracker/Vertex/Forward
+ *    and endcap/barrel or if a separate helper is needed for each of these.  If all the same then
+ *    we should get it in the detectorChanged() method.  If different we should get it from the
+ *    RawTrackerHit.  I coded the second option for now.
  */
 
 public class ReadTKNRawHitsDriverV1 extends Driver
@@ -117,7 +124,7 @@
      */
     public void detectorChanged( Detector detector) {
 
-	// Get the helper.
+	// An alternate way to get the helper.  See note 7.
 	Subdetector tracker = findSubdetector( detector, "SiTrackerBarrel");
 	SiTrackerIdentifierHelper helper1 = 
 	    (SiTrackerIdentifierHelper)tracker.getDetectorElement().getIdentifierHelper();
@@ -154,6 +161,8 @@
 	    IDetectorElement de = raw.getDetectorElement();
 	    SiSensor sensor     = (SiSensor) de;
 	    IGeometryInfo geom  = de.getGeometry();
+
+	    // See note 7.
 	    SiTrackerIdentifierHelper helper = (SiTrackerIdentifierHelper)de.getIdentifierHelper();
 
 	    // Hit strip.
CVSspam 0.2.8