View Javadoc

1   package org.lcsim.recon.tracking.trfbase;
2   /** An Enumeration class for Propagation Directions
3    *
4    *@author Norman A. Graf
5    *@version 1.0
6    */
7   public class PropDir
8   {
9       private String _propdir;
10      // Direction for a propagator to go.
11      // XXX_MOVE means to go to the next crossing if the original and
12      // destinataion surfaces are the same.
13      private PropDir( String propdir)
14      {
15          _propdir = propdir;
16      }
17      
18      /**
19       * @return String representation of this class
20       */
21      public String toString()
22      {
23          String className = getClass().getName();
24          int lastDot = className.lastIndexOf('.');
25          if(lastDot!=-1)className = className.substring(lastDot+1);
26          
27          return className+_propdir;
28      }
29      public final static PropDir NEAREST = new PropDir("NEAREST");
30      public final static PropDir FORWARD = new PropDir("FORWARD");
31      public final static PropDir BACKWARD = new PropDir("BACKWARD");
32      public final static PropDir NEAREST_MOVE = new PropDir("NEAREST_MOVE");
33      public final static PropDir FORWARD_MOVE= new PropDir("FORWARD_MOVE");
34      public final static PropDir BACKWARD_MOVE = new PropDir("BACKWARD_MOVE");
35      
36  }