View Javadoc

1   package org.lcsim.recon.tracking.trffit;
2   // concrete implementation to test FullFitter
3   
4   public class FullFitterTest extends FullFitter
5   {
6       
7       // static methods
8       
9       // Return the type name.
10      public static String typeName()
11      { return "FullFitterTest"; }
12      
13      // Return the type.
14      public static String staticType()
15      { return typeName(); }
16      
17      // non-static data
18      
19      // test parameter
20      private int _param;
21      
22      // non-static methods
23      
24      // Constructor.
25      public FullFitterTest(int param)
26      { _param=param; }
27      
28      // Return the type.
29      public String get_type()
30      { return staticType(); }
31      
32      // Fit the specified track.
33      public int fit(HTrack trh)
34      {
35          return _param;
36      }
37      
38      public String toString()
39      {
40          return "Test full fitter.";
41      }
42      
43  }
44