StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
FtfGeneral.h
1 #ifndef L3GENERAL_H
2 #define L3GENERAL_H
3 
4 #include <math.h>
5 //#include <stdio.h>
6 //#include <stdlib.h>
7 //#include <algorithm>
8 
9 //#include "l3Log.h"
10 
11 // needed for solaris cc5
12 #if !defined(ST_NO_NAMESPACES)
13 using namespace std;
14 #endif
15 
16 //
17 // Some constants
18 //
19 const float toDeg =57.29577951F ;
20 const float pi =3.141592654F ;
21 const float twoPi =2.F*pi ;
22 const float piHalf = 0.5 * pi ;
23 const double bFactor = 0.0029979 ;
24 //
25 //--> Functions
26 //
27 #define seta(r,z) (float)(3.0F * (z) / (fabs(z)+2.0F*(r)))
28 #define reta(eta,r) ((2.F*(r)*eta / ( 3 - fabs(eta)) ))
29 #define sgn(a) (float)( ( (a) > 0 ) ? (1) :(-1) )
30 #define square(a) (float)( (a) * (a) )
31 
33  public:
34  void *first;
35  void *last;
36 } ;
37 
38 
39 #endif
40 
41 
42