View Javadoc

1   package org.lcsim.recon.tracking.trffit;
2   import org.lcsim.recon.tracking.trfbase.ETrack;
3   import org.lcsim.recon.tracking.trfbase.Hit;
4   
5   //concrete implementation of AddFitter for testing only
6   public class AddFitterTest extends AddFitter
7   {
8       
9       // static methods
10      
11      // Return the type name.
12      public static String typeName()
13      { return "AddFitterTest"; }
14      
15      // Return the type.
16      public static String staticType()
17      { return typeName(); }
18      
19      // non-static data
20      
21      // test parameter
22      private int _param;
23      
24      // non-static methods.
25      
26      // Fit.
27      public int addHitFit(ETrack tre, double chsq,  Hit  hit)
28      {
29          return 2*_param;
30      }
31      
32      // Constructor.
33      public AddFitterTest(int param)
34      { _param = param;
35      }
36      
37      // Return the type.
38      public String get_type()
39      { return staticType(); }
40      
41      
42      public String toString()
43      {return  "Test add fitter.";
44       
45      }
46      
47  }