Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DLorentzMapCalibDB Class Reference

#include <DLorentzMapCalibDB.h>

+ Inheritance diagram for DLorentzMapCalibDB:

Public Member Functions

 DLorentzMapCalibDB (JApplication *japp, unsigned int run_number=1)
 
 DLorentzMapCalibDB (JCalibration *jcalib)
 
 ~DLorentzMapCalibDB ()
 
unsigned int GetLorentzDeflections (void)
 
jerror_t GetLorentzCorrectionParameters (double x, double y, double z, double &tanz, double &tanr) const
 
double GetLorentzCorrection (double x, double y, double z, double alpha, double dx) const
 

Protected Attributes

JCalibration * jcalib
 
double lorentz_x [LORENTZ_X_POINTS]
 
double lorentz_z [LORENTZ_Z_POINTS]
 
double lorentz_nx [LORENTZ_X_POINTS][LORENTZ_Z_POINTS]
 
double lorentz_nz [LORENTZ_X_POINTS][LORENTZ_Z_POINTS]
 

Detailed Description

Definition at line 10 of file DLorentzMapCalibDB.h.

Constructor & Destructor Documentation

DLorentzMapCalibDB::DLorentzMapCalibDB ( JApplication *  japp,
unsigned int  run_number = 1 
)

Definition at line 11 of file DLorentzMapCalibDB.cc.

References _DBG_.

DLorentzMapCalibDB::DLorentzMapCalibDB ( JCalibration *  jcalib)

Definition at line 26 of file DLorentzMapCalibDB.cc.

References _DBG_.

DLorentzMapCalibDB::~DLorentzMapCalibDB ( )
inline

Definition at line 14 of file DLorentzMapCalibDB.h.

Member Function Documentation

double DLorentzDeflections::GetLorentzCorrection ( double  x,
double  y,
double  z,
double  alpha,
double  dx 
) const
inherited
jerror_t DLorentzDeflections::GetLorentzCorrectionParameters ( double  x,
double  y,
double  z,
double &  tanz,
double &  tanr 
) const
inherited
unsigned int DLorentzMapCalibDB::GetLorentzDeflections ( void  )

Routine for accessing calibration constants adapted from code written by David Lawrence. The values specified by "namepath" will be read into the array "vals". The "vals" array should have enough memory allocated to hold *Nvals elements. If not, only the first *Nvals elements will be copied and a non-zero value returned. If the number of values in the database are less than *Nvals, then all values are copied, *Nvals is updated to reflect the number of valid elements in "vals", and a value of 0 is returned.

Definition at line 38 of file DLorentzMapCalibDB.cc.

References _DBG_, LORENTZ_X_POINTS, and LORENTZ_Z_POINTS.

Member Data Documentation

JCalibration* DLorentzMapCalibDB::jcalib
protected

Definition at line 19 of file DLorentzMapCalibDB.h.

double DLorentzDeflections::lorentz_nx[LORENTZ_X_POINTS][LORENTZ_Z_POINTS]
protectedinherited
double DLorentzDeflections::lorentz_nz[LORENTZ_X_POINTS][LORENTZ_Z_POINTS]
protectedinherited
double DLorentzDeflections::lorentz_x[LORENTZ_X_POINTS]
protectedinherited
double DLorentzDeflections::lorentz_z[LORENTZ_Z_POINTS]
protectedinherited

The documentation for this class was generated from the following files: