Print

Print


Commit in lcsim/src/org/lcsim/contrib/seedtracker on MAIN
FindSeeds.java+1-11.8 -> 1.9
SeedCandidate.java+3-21.6 -> 1.7
+4-3
2 modified files
Add the strategy to the default constructor for SeedCandidate

lcsim/src/org/lcsim/contrib/seedtracker
FindSeeds.java 1.8 -> 1.9
diff -u -r1.8 -r1.9
--- FindSeeds.java	16 Jul 2008 05:10:41 -0000	1.8
+++ FindSeeds.java	25 Jul 2008 20:38:16 -0000	1.9
@@ -81,7 +81,7 @@
                     phicut = dphi3 > Math.abs(dphi3mx-dphi2mx);
                     if(diag!=null) diag.fireFinderDPhiCut(3, dphi3, phicut, hit3);
                     if (phicut) continue;
-                    SeedCandidate seed = new SeedCandidate();
+                    SeedCandidate seed = new SeedCandidate(strategy);
                     seed.addHit(hit1);
                     seed.addHit(hit2);
                     seed.addHit(hit3);

lcsim/src/org/lcsim/contrib/seedtracker
SeedCandidate.java 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- SeedCandidate.java	22 Jun 2008 23:19:34 -0000	1.6
+++ SeedCandidate.java	25 Jul 2008 20:38:16 -0000	1.7
@@ -30,7 +30,8 @@
     /**
      * Create an empty SeedCandidate.
      */
-    public SeedCandidate() {
+    public SeedCandidate(SeedStrategy strategy) {
+        _strategy = strategy;
     }
     
     /**
@@ -39,8 +40,8 @@
      * @param strategy strategy used for this SeedCandidate
      */
     public SeedCandidate(List<HelicalTrackHit> hits, SeedStrategy strategy) {
+        this(strategy);
         _hits.addAll(hits);
-        _strategy = strategy;
     }
     
     /**
CVSspam 0.2.8