View Javadoc

1   package org.lcsim.recon.tracking.ftf;
2   public class FtfGeneral
3   {
4       //
5       //    Some constants
6       //
7       static   float toDeg =57.29577951f ;
8       
9       static  double bFactor = 0.0029979 ;
10      
11      static boolean TRDEBUG = false;
12      //
13      //-->   Functions
14      //
15      
16      static float  seta(float r, float z)
17      {
18          return (float)(3.0F * (z) / (Math.abs(z)+2.0F*(r)));
19      }
20      static float reta(float eta, float r)
21      {
22          return ((2.F*(r)*eta / ( 3 - Math.abs(eta)) )) ;
23      }
24      static float sgn( float a)
25      {
26          return (float)( ( (a) > 0   ) ? (1) :(-1) );
27      }
28      
29  }