HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hmdctrackgfield.h
Go to the documentation of this file.
1 #ifndef HMdcTrackGField_H
2 #define HMdcTrackGField_H
3 
4 //Read the field
5 //Input: 3 dimensional Position vector
6 //Output:3 dimensional Field vector
7 //created 16/01/2002/
8 //********************************************
9 // nfz number of steps in z-direction
10 // nfr number of steps in rho-direction
11 // nfp number of steps in phi-direction
12 // zflmin minimum value of z-coordinate
13 // zflmax maximum value of z-coordinate
14 // zfldel step value of z-coordinate
15 // rflmin minimum value of rho-coordinate
16 // rflmax maximum value of rho-coordinate
17 // rfldel step value of rho-coordinate
18 // pflmin minimum value of phi-coordinate
19 // pflmax maximum value of phi-coordinate
20 // pfldel step value of phi-coordinate
21 
22 #include "TNamed.h"
23 #include "TString.h"
24 
25 //size of acos table. 50000 - is enough, as was found out
26 #define ACOS_TABLE_SIZE 50000
27 
28 class HMdcTrackGField : public TNamed{
29  //private:
30 public:
31  Int_t nfz,nfr,nfp;
32  Double_t zflmin,zflmax,zfldel;
33  Double_t rflmin,rflmax,rfldel;
34  Double_t pflmin,pflmax,pfldel;
35  Double_t* p_tzfl;
36  Double_t* p_trfl;
37  Double_t* p_tpfl;
38  Double_t* acos_table; //!
39 
40  Double_t Pvector[3];
41  Double_t Fvector[3];
42 
43  Double_t step1z,step1r,step1p; //!
44  Double_t dconv; //!
45  Int_t nfz_nfr; //!
46  Double_t one_sixtyth; //!
47 
48 public:
49  HMdcTrackGField(const Char_t *name="",const Char_t *title="");
50  virtual ~HMdcTrackGField();
51  void init(TString infile);
52  void clear();
53  void calcField(Double_t* xv,Double_t *btos,Double_t fpol);
54  ClassDef(HMdcTrackGField,1)
55 };
56 
57 #endif /*!HMdcTrackGField_H*/
58 
59 
Double_t * p_trfl
Double_t * acos_table
void calcField(Double_t *xv, Double_t *btos, Double_t fpol)
Double_t Pvector[3]
HMdcTrackGField(const Char_t *name="", const Char_t *title="")
Double_t Fvector[3]
void init(TString infile)
Double_t one_sixtyth
Double_t * p_tzfl
virtual ~HMdcTrackGField()
Double_t * p_tpfl