35 #ifndef STAR_StFtpcSlowSimField
36 #define STAR_StFtpcSlowSimField
41 extern int Locate(
const int npt,
const float* x,
const float xx);
53 float Interpolate(
const int npt,
const float* x,
54 const float* y,
const int ich,
56 float InterpValue(
const int npt,
const float* x,
57 const float* y,
const float xx);
60 int GetGridIndex(
const float r)
const
61 {
return ((
int) ((r - innerRadius)*inverseDeltaRadius) ) ; }
65 void GetVelocityZ(
const float inverseRadius,
const int padrow,
const float phi,
float *inverseVelocity,
float *angle);
67 float GetVelAtReadout()
const {
return finalVelocity; }
69 float GetDeltaRadius()
const {
return del_r; }
71 float GetInverseDeltaRadius()
const {
return inverseDeltaRadius; }
73 float GetTwoDeltaRadius()
const {
return twoDeltaRadius; }
75 float GetDiffusionXSqr(
const int i)
const {
return grid_point[i].diff_x;}
77 float GetDiffusionZSqr(
const int i)
const {
return grid_point[i].diff_z;}
79 float GetDlnvDr(
const int i)
const {
return grid_point[i].dlnv_dr;}
86 float inverseDeltaRadius;
94 float EFieldStepInverted;
95 float EFieldStepInvConverted;
101 float *inverseDriftVelocityWest;
102 float *preciseLorentzAngleWest;
103 float *inverseDriftVelocityEast;
104 float *preciseLorentzAngleEast;
108 float mOffsetCathodeWest;
109 float mOffsetCathodeEast;
110 float mAngleOffsetWest;
111 float mAngleOffsetEast;
123 grid_data *grid_point;