Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DLorentzDeflections.h
Go to the documentation of this file.
1 // Base class for dealing with the Lorentz effect
2 #ifndef _DLorentzDeflections_
3 #define _DLorentzDeflections_
4 
5 #include <JANA/jerror.h>
6 /* The folowing are for interpreting grid of Lorentz deflection data */
7 #define PACKAGE_Z_POINTS 10
8 #define LORENTZ_X_POINTS 21
9 #define LORENTZ_Z_POINTS (4*PACKAGE_Z_POINTS)
10 
12  public:
13 
15  virtual ~DLorentzDeflections(){};
16  jerror_t GetLorentzCorrectionParameters(double x,double y,double z,
17  double &tanz, double &tanr) const;
18  double GetLorentzCorrection(double x,double y,double z,double alpha,
19  double dx) const;
20 
21  protected:
22  // Variables for implementing lorentz effect (deflections of avalanche
23  // position due to the magnetic field).
28 
29 };
30 
31 #endif // _DLorentzDeflections_
Double_t x[NCHANNELS]
Definition: st_tw_resols.C:39
#define y
#define LORENTZ_X_POINTS
#define LORENTZ_Z_POINTS
double lorentz_x[LORENTZ_X_POINTS]
double lorentz_nx[LORENTZ_X_POINTS][LORENTZ_Z_POINTS]
const double alpha
jerror_t GetLorentzCorrectionParameters(double x, double y, double z, double &tanz, double &tanr) const
double lorentz_z[LORENTZ_Z_POINTS]
double lorentz_nz[LORENTZ_X_POINTS][LORENTZ_Z_POINTS]
double GetLorentzCorrection(double x, double y, double z, double alpha, double dx) const