lcsim/src/org/lcsim/fit/helicaltrack
diff -u -r1.9 -r1.10
--- HelicalTrackHitDriver.java 17 Jun 2008 00:40:49 -0000 1.9
+++ HelicalTrackHitDriver.java 24 Jun 2008 22:17:36 -0000 1.10
@@ -14,6 +14,7 @@
import java.util.ArrayList;
import java.util.List;
+import org.lcsim.contrib.SiStripSim.BaseTrackerHit;
import org.lcsim.contrib.SiStripSim.SiTrackerHit;
import org.lcsim.contrib.SiStripSim.SiTrackerHitPixel;
import org.lcsim.contrib.SiStripSim.SiTrackerHitStrip1D;
@@ -289,6 +290,14 @@
}
}
}
+ // This should work for anything subclassing BaseTrackerHit in
+ // org.lcsim.contrib.SiStripSim, including all the SiTrackerHit classes
+ else if (hit instanceof BaseTrackerHit){
+ BaseTrackerHit bth = (BaseTrackerHit) hit;
+ for (MCParticle p : bth.getMCParticles()){
+ hthit.addMCParticle(p);
+ }
+ }
return;
}
}
\ No newline at end of file