StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
FtfGeneral.h
1 //:>------------------------------------------------------------------
2 //: FILE: FtfGeneral.h
3 //: HISTORY:
4 //: 27jan2000 ppy Start recording history
5 //: 27jan2000 ppy FtfVolume added to FtfGeneral
6 //: 27jan2000 ppy VOLUME, ROW and AREA classes replaced with
7 //: FtfContainer
8 //: 19apr2000 ppy cs ppy dEdxCalibrationConstant
9 //:<------------------------------------------------------------------
10 #ifndef FTFGENERAL
11 #define FTFGENERAL
12 
13 #include "Stl3Util/base/FtfLog.h"
14 
15 
16 #include <math.h>
17 #include <stdio.h>
18 #include <stdlib.h>
19 #include <algorithm>
20 
21 
22 // needed for solaris cc5
23 using namespace std;
24 using std::min;
25 using std::max;
26 
27 //
28 // Some constants
29 //
30 const float toDeg =57.29577951F ;
31 const float pi =3.141592654F ;
32 const float twoPi =2.F*pi ;
33 const float piHalf = 0.5 * pi ;
34 const double bFactor = 0.0029979 ;
35 //
36 //--> Functions
37 //
38 //VP #define min(a,b) ( ( (a) < (b) ) ? (a) : (b) )
39 //VP #define max(a,b) ( ( (a) > (b) ) ? (a) : (b) )
40 #define seta(r,z) (float)(3.0F * (z) / (fabs(z)+2.0F*(r)))
41 #define reta(eta,r) ((2.F*(r)*eta / ( 3 - fabs(eta)) ))
42 #define sgn(a) (float)( ( (a) > 0 ) ? (1) :(-1) )
43 #define square(a) (float)( (a) * (a) )
44 
45 
46 //VP extern double fmod(double,double);
47 //VP extern double ::sqrt(double);
48 //VP extern double fabs(double);
49 //VP extern double atan2(double,double);
50 
51 
52 class FtfContainer{
53  public:
54  void *first;
55  void *last;
56 } ;
57 
58 
59 #endif
60 
61 
62