Commit in hps-java/src/main/java/org/lcsim/hps/recon/tracking on MAIN
TrackerReconDriver.java+26-21.34 -> 1.35
Added check for correct z-bin for sectors and new material manager.

hps-java/src/main/java/org/lcsim/hps/recon/tracking
TrackerReconDriver.java 1.34 -> 1.35
diff -u -r1.34 -r1.35
--- TrackerReconDriver.java	16 May 2013 18:00:53 -0000	1.34
+++ TrackerReconDriver.java	12 Jul 2013 20:55:49 -0000	1.35
@@ -49,6 +49,10 @@
     private boolean includeMS = true;
     // number of repetitive fits on confirmed/extended tracks
     private int _iterativeConfirmed = 3;
+    // use HPS implementation of material manager
+    private boolean _useHPSMaterialManager = true;
+    // enable the use of sectoring using sector binning in SeedTracker
+    private boolean _applySectorBinning = true;
     
     public TrackerReconDriver() {
     }
@@ -79,9 +83,27 @@
         this.includeMS = incMS;
     }
     
+     /**
+     * Set to enable the use of the HPS material manager implementation 
+     * 
+     * @param useHPSMaterialManager switch
+     */
+    public void setUseHPSMaterialManager(boolean useHPSMaterialManager) {
+        this._useHPSMaterialManager = useHPSMaterialManager;
+    }
+    
     public void setIterativeFits(int val) {
         this._iterativeConfirmed = val;
     }
+    
+     /**
+     * Set to enable the sectoring to use the sector bins in checking for consistent hits.
+     *
+     * @param applySectorBinning apply sector binning switch
+     */
+    public void setApplySectorBinning(boolean applySectorBinning) {
+        this._applySectorBinning = applySectorBinning;
+    }
    
     /**
      * This is used to setup the Drivers after XML config.
@@ -95,7 +117,7 @@
         // FIXME Is this always right?
         this.bfield = Math.abs((detector.getFieldMap().getField(new BasicHep3Vector(0, 0, 0)).y()));
         if (debug) {
-            System.out.printf("%s: Set B-field to %.3f",this.getClass().getSimpleName(),this.bfield);
+            System.out.printf("%s: Set B-field to %.3f\n",this.getClass().getSimpleName(),this.bfield);
         }
 
         initialize();
@@ -116,8 +138,10 @@
             strategyResource = "/org/lcsim/hps/recon/tracking/strategies/" + strategyResource;
         }
         List<SeedStrategy> sFinallist = StrategyXMLUtils.getStrategyListFromInputStream(this.getClass().getResourceAsStream(strategyResource));
-        SeedTracker stFinal = new SeedTracker(sFinallist,this.includeMS);
+        SeedTracker stFinal = new SeedTracker(sFinallist,this._useHPSMaterialManager,this.includeMS);
+        stFinal.setApplySectorBinning(_applySectorBinning);
         stFinal.setUseDefaultXPlane(false);
+        stFinal.setDebug(this.debug);
         stFinal.setIterativeConfirmed(_iterativeConfirmed);
         HPSTransformations hpstrans = new HPSTransformations();
         stFinal.setMaterialManagerTransform(hpstrans.getTransform());
CVSspam 0.2.12


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