BCLine Class Reference

#include <BCLine.h>

List of all members.

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]


Detailed Description

Definition at line 14 of file BCLine.h.


Constructor & Destructor Documentation

BCLine::BCLine (  ) 

BCLine::BCLine ( double  xStart,
double  yStart,
double  zStart,
double  xEnd,
double  yEnd,
double  zEnd,
int  wire[],
int  goldenTrk = 1 
)

Definition at line 29 of file BCLine.cxx.

References fWire.

00031                           :
00032   fXStart(xStart),
00033   fYStart(yStart),
00034   fZStart(zStart),
00035   fXEnd(xEnd),
00036   fYEnd(yEnd),
00037   fZEnd(zEnd),
00038   fGoldenTrk(goldenTrk)
00039 {
00040   for (int i=0; i<12; i++)
00041     fWire[i] = wire[i];
00042 }

BCLine::~BCLine (  )  [virtual]

Definition at line 46 of file BCLine.cxx.

00046 { }


Member Function Documentation

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 }


Member Data Documentation

float BCLine::fGoldenTrk

Definition at line 32 of file BCLine.h.

int BCLine::fWire[12]

Definition at line 33 of file BCLine.h.

Referenced by BCLine().

float BCLine::fXEnd

Definition at line 29 of file BCLine.h.

Referenced by GetXY().

float BCLine::fXStart

Definition at line 26 of file BCLine.h.

Referenced by GetXY().

float BCLine::fYEnd

Definition at line 30 of file BCLine.h.

Referenced by GetXY().

float BCLine::fYStart

Definition at line 27 of file BCLine.h.

Referenced by GetXY().

float BCLine::fZEnd

Definition at line 31 of file BCLine.h.

Referenced by GetXY().

float BCLine::fZStart

Definition at line 28 of file BCLine.h.

Referenced by GetXY().


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 08:03:57 2009 for MIPP(E907) by  doxygen 1.4.7