00001
00004 #ifndef StiHitTestr_H
00005 #define StiHitTestr_H 1
00006
00011 class StiHitTest
00012 {
00013 public:
00014 StiHitTest(){reset();}
00015 int getN() const {return fN;}
00016 void reset();
00017 double width (int idx=2);
00018 const double *vector(int idx=2);
00019 const double *center() const {return fX;}
00020 void add(double x,double y,double z);
00021 void add(double x[3]);
00022 double yAngle () const;
00023 double zAngle () const;
00024 private:
00025 void doIt();
00026 private:
00027 char fBeg[1];
00028 int fN;
00029 double fW[3];
00030 double fV[3][3];
00031 double fX[3];
00032 double fM[3][3];
00033 char fEnd[1];
00034
00035 };
00036
00037 #endif
00038