Print

Print


Commit in hps-java/src/main/java/org/lcsim/hps/recon/tracking on MAIN
HPSSeedTracker.java+43added 1.1
Extending lcsim SeedTracker to allow flexibility of changing members; here it allows simple way of using superclass of MaterialManager.

hps-java/src/main/java/org/lcsim/hps/recon/tracking
HPSSeedTracker.java added at 1.1
diff -N HPSSeedTracker.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ HPSSeedTracker.java	26 Nov 2012 03:18:06 -0000	1.1
@@ -0,0 +1,43 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package org.lcsim.hps.recon.tracking;
+
+import java.util.List;
+import org.lcsim.recon.tracking.seedtracker.*;
+
+/**
+ * Class extending lcsim version to allow extra flexibility
+ * 
+ * @author phansson
+ */
+public class HPSSeedTracker extends SeedTracker  {
+
+    public HPSSeedTracker(List<SeedStrategy> strategylist) {
+        // use base class only if this constructor is called!
+        super(strategylist);
+    }
+
+    public HPSSeedTracker(List<SeedStrategy> strategylist, boolean includeMS) {
+            
+            // use base class constructor 
+        
+            super(strategylist);
+            
+            // Explicitly only replace the objects that might change
+            
+            //  Instantiate the material manager
+            _materialmanager = new HPSMaterialManager(includeMS);
+
+            //  Instantiate the helix finder since it depends on the material manager
+            _helixfitter = new HelixFitter(_materialmanager);
+
+            //  Instantiate the helix finder since it depends on the material manager
+            _finder = new SeedTrackFinder(_hitmanager, _helixfitter);
+
+        }
+
+
+
+}
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