Classes | Functions
GapWidth Namespace Reference

Classes

class  GapWidth
 

Functions

double xextrap (double z)
 
void minuitFunctionx (int &nDim, double *gout, double &result, double par[], int flg)
 
double zextrap (double y)
 
void minuitFunctionz (int &nDim, double *gout, double &result, double par[], int flg)
 

Function Documentation

void GapWidth::minuitFunctionx ( int &  nDim,
double *  gout,
double &  result,
double  par[],
int  flg 
)

Definition at line 121 of file GapWidth_module.cc.

121  {
122  result = xextrap(par[0]);
123  }
static QCString result
double xextrap(double z)
void GapWidth::minuitFunctionz ( int &  nDim,
double *  gout,
double &  result,
double  par[],
int  flg 
)

Definition at line 130 of file GapWidth_module.cc.

130  {
131  result = zextrap(par[0]);
132  }
static QCString result
double zextrap(double y)
double GapWidth::xextrap ( double  z)

Definition at line 116 of file GapWidth_module.cc.

116  {
117  if (track1grad <= 0) return fabs((track1x - (track1grad)*(minz + z)) - track2x);
118  else return fabs((track1x + (track1grad)*(minz + z)) - track2x);
119  }
double track2x
double track1grad
double minz
double track1x
double z
double GapWidth::zextrap ( double  y)

Definition at line 125 of file GapWidth_module.cc.

125  {
126  if (track1grad <= 0) return fabs((track1z - (track1grad)*(miny + y)) - track2z);
127  else return fabs((track1z + (track1grad)*(miny + y)) - track2z);
128  }
double miny
double track1grad
double track2z
double track1z
double y