#include <BCLine.h>
Public Member Functions | |
| BCLine () | |
| BCLine (double xStart, double yStart, double zStart, double xEnd, double yEnd, double zEnd, int wire[], int goldenTrk=1) | |
| virtual | ~BCLine () |
| void | GetXY (double z, double *x, double *y) const |
Public Attributes | |
| float | fXStart |
| float | fYStart |
| float | fZStart |
| float | fXEnd |
| float | fYEnd |
| float | fZEnd |
| float | fGoldenTrk |
| int | fWire [12] |
Definition at line 14 of file BCLine.h.
| BCLine::BCLine | ( | ) |
| BCLine::BCLine | ( | double | xStart, | |
| double | yStart, | |||
| double | zStart, | |||
| double | xEnd, | |||
| double | yEnd, | |||
| double | zEnd, | |||
| int | wire[], | |||
| int | goldenTrk = 1 | |||
| ) |
| BCLine::~BCLine | ( | ) | [virtual] |
| void BCLine::GetXY | ( | double | z, | |
| double * | x, | |||
| double * | y | |||
| ) | const |
Definition at line 50 of file BCLine.cxx.
References dxdz, dydz, fXEnd, fXStart, fYEnd, fYStart, fZEnd, and fZStart.
00051 { 00052 //====================================================================== 00053 // Get (x,y) position at a given z position 00054 //====================================================================== 00055 00056 double dxdz = (fXStart - fXEnd)/(fZStart - fZEnd); 00057 double dydz = (fYStart - fYEnd)/(fZStart - fZEnd); 00058 00059 double x0 = fXStart - dxdz*fZStart; 00060 double y0 = fYStart - dydz*fZStart; 00061 00062 *x = x0 + dxdz*z; 00063 *y = y0 + dydz*z; 00064 }
| float BCLine::fGoldenTrk |
| int BCLine::fWire[12] |
| float BCLine::fXEnd |
| float BCLine::fXStart |
| float BCLine::fYEnd |
| float BCLine::fYStart |
| float BCLine::fZEnd |
| float BCLine::fZStart |
1.4.7