Commit in lcsim/src/org/lcsim/recon/tracking/seedtracker/ReconTracking on MAIN
SiD02ReconTrackingDriver.java+25-61.4 -> 1.5
Add constructor that allows the FullCCDSimulation package to be used.

lcsim/src/org/lcsim/recon/tracking/seedtracker/ReconTracking
SiD02ReconTrackingDriver.java 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- SiD02ReconTrackingDriver.java	26 Oct 2008 18:45:14 -0000	1.4
+++ SiD02ReconTrackingDriver.java	27 Oct 2008 13:47:38 -0000	1.5
@@ -17,10 +17,12 @@
 /**
  * Official driver for SiD02 tracking reconstruction.
  * 
- * If _fullccd is set true, then the FullCCDSimulation package is used
- * to digitize pixel hits in the vertex barrel and endcap layers as well
- * as the forward tracker layers.  Otherwise, the virtual segmentation
- * package is used for these layers.
+ * Either the FullCCDSimulation package or the virtual segmentation
+ * package can be used to digitize pixel hits in the vertex barrel
+ * and endcap layers as well as the forward tracker layers.  The default
+ * constructor will use the virtual segmentation package for pixel
+ * digitization, but a fully qualified constructor is available to
+ * explicitly set which package is used.
  * 
  * The virtual segmentation package is used to digitize all barrel and endcap
  * strip hits.
@@ -39,15 +41,28 @@
  * @version 1.0
  */
 public class SiD02ReconTrackingDriver extends Driver {  
-    private boolean _fullccd = false;
+    private boolean _fullccd;
     private String _sfile_ccd = "autogen_ttbar_sid02_ccd.xml";
     private String _sfile_vs = "autogen_ttbar_sid02_vs.xml";
     private List<SeedStrategy> _stratlist;
     
     /**
-     * Creates a new instance of SiD02ReconTrackingDriver
+     * Default SiD02ReconTrackingDriver constructor.  Virtual segmentation
+     * is used for both strip and pixel detectors.
      */
     public SiD02ReconTrackingDriver() {
+        this(false);
+    }
+    
+    /**
+     * Fully qualified constructor that provides control over pixel digitization
+     * (FullCCDSimulation vs virtual segmentation).
+     * @param fullccd set true to use the FullCCDSimulation package for pixel digitization
+     */
+    public SiD02ReconTrackingDriver(boolean fullccd) {
+        
+        //  fullccd true means we will use Nick's FullCCDSimulation package for pixels
+        _fullccd = fullccd;
         
         //  Hit digitization driver
         SiD02ReconHybridHitMaker hhm = new SiD02ReconHybridHitMaker(_fullccd);
@@ -64,6 +79,10 @@
         add(st);
     }    
     
+    /**
+     * Return the list of strategies being used for track finding.
+     * @return List of strategies
+     */
     public List<SeedStrategy> getStrategies() {
         return _stratlist;
     }
CVSspam 0.2.8