View Javadoc

1   package org.lcsim.recon.tracking.trfbase;
2   
3   import org.lcsim.recon.tracking.trfbase.ETrack;
4   import org.lcsim.recon.tracking.trfbase.PropDir;
5   import org.lcsim.recon.tracking.trfbase.PropStat;
6   import org.lcsim.recon.tracking.trfbase.Propagator;
7   import org.lcsim.recon.tracking.trfbase.Surface;
8   import org.lcsim.recon.tracking.trfbase.TrackDerivative;
9   import org.lcsim.recon.tracking.trfbase.VTrack;
10  
11  
12  
13  public class SimplePropTest extends Propagator
14  {
15      
16      private int _flag;
17      
18      
19      // Return the type name.
20      public static String typeName()
21      { return "SimplePropTest"; }
22      // Return the type.
23      private static String get_static_type()
24      { return typeName(); }
25      
26      public String toString()
27      {
28          return  "SimplePropTest propagator.";
29      }
30      
31      
32      public SimplePropTest()
33      { _flag = 0; }
34      // return the type
35      public String get_type()
36      { return get_static_type(); }
37      
38      public int get_flag()
39      { return _flag; }
40      public Propagator newPropagator()
41      { return new SimplePropTest(); }
42      
43      public PropStat vecProp(VTrack trv, Surface srf)
44      {
45          TrackDerivative der = null;
46          return vecProp(trv,srf,der);
47      }
48      public PropStat vecProp(VTrack trv, Surface srf,
49              TrackDerivative der)
50      {
51          _flag = 1;
52          return new PropStat();
53      }
54      
55      public PropStat errProp(ETrack tre, Surface srf)
56      {
57          TrackDerivative der = null;
58          return errProp(tre,srf,der);
59      }
60      
61      public PropStat errProp(ETrack tre, Surface srf,
62              TrackDerivative der)
63      {
64          _flag = 2;
65          return new PropStat();
66      }
67      
68      public PropStat vecDirProp(VTrack trv, Surface srf,
69              PropDir dir)
70      {
71          TrackDerivative der = null;
72          return vecDirProp(trv,srf,dir,der);
73      }
74      
75      public PropStat vecDirProp(VTrack trv, Surface srf,
76              PropDir dir, TrackDerivative der)
77      {
78          _flag = 3;
79          return new PropStat();
80      }
81      
82      public PropStat errDirProp(ETrack tre, Surface srf,
83              PropDir dir)
84      {
85          TrackDerivative der = null;
86          return errDirProp(tre,srf,dir,der);
87      }
88      
89      public PropStat errDirProp(ETrack tre, Surface srf,
90              PropDir dir, TrackDerivative der)
91      {
92          _flag = 4;
93          return new PropStat();
94      }
95  }