View Javadoc

1   package org.lcsim.recon.tracking.vsegment.geom;
2   
3   /**
4    * Direction along the track - {@link #OUT} means from the center of the detector to the 
5    * periphery (for most tracks, this is the direction the particle moves in), {@link #IN}
6    * means from outside into the detector.
7    *
8    * @author D.Onoprienko
9    * @version $Id: Direction.java,v 1.1 2008/12/06 21:53:43 onoprien Exp $
10   */
11  public enum Direction {
12  
13    /** Outside-to-inside direction. */
14    IN(-1), 
15    
16    /** Inside-to-outside direction. */
17    OUT(1);
18    
19    /**
20     * Integer coefficient associated with the direction: <tt>-1</tt> for {@link #IN}, <tt>1</tt> for {@link #OUT}.
21     */
22    public final int k;
23    
24    Direction(int k) {this.k = k;}
25    
26  }