DifPoint Class Reference

#include <DifPoint.h>

Inheritance diagram for DifPoint:

DifVector List of all members.

Public Member Functions

 DifPoint (const DifPoint &p)
 DifPoint ()
 DifPoint (const HepPoint3D &p)
 DifPoint (const DifNumber &X, const DifNumber &Y, const DifNumber &Z)
 DifPoint (double X, double Y, double Z)
DifPointoperator= (const DifPoint &p)
DifPointoperator+= (const DifVector &v)
DifPointoperator-= (const DifVector &v)
DifPointoperator *= (const DifNumber &n)
DifPointoperator/= (const DifNumber &n)
HepPoint3D hepPoint () const
HepSymMatrix errorMatrix (const HepSymMatrix &e) const
HepMatrix jacobian () const
DifVectoroperator *= (const double &n)
DifVectoroperator/= (const double &n)
DifVector operator- () const
int nPar () const
void print () const
DifVectorflipsign ()
DifVectornormalize ()
DifVectorzeroDerivatives ()
DifVectorrotate (const DifVector &axis, const DifNumber &angle)
DifVectorrotate (const DifVector &axis, const DifNumber &cosine, const DifNumber &sine)
DifVectorrotate (const DifNumber &alpha, const DifNumber &beta, const DifNumber &gamma)
DifVectorrotate (const DifRotation &r)
DifVectorrotate (const DifVector &axis, const double &angle)
DifVectorrotate (const DifVector &axis, const double &cosine, const double &sine)
DifVectorrotate (const double &alpha, const double &beta, const double &gamma)
DifVectorrotateX (const DifNumber &angle)
DifVectorrotateX (const DifNumber &cosine, const DifNumber &sine)
DifVectorrotateX (const double &angle)
DifVectorrotateX (const double &cosine, const double &sine)
DifVectorrotateY (const DifNumber &angle)
DifVectorrotateY (const DifNumber &cosine, const DifNumber &sine)
DifVectorrotateY (const double &angle)
DifVectorrotateY (const double &cosine, const double &sine)
DifVectorrotateZ (const DifNumber &angle)
DifVectorrotateZ (const DifNumber &cosine, const DifNumber &sine)
DifVectorrotateZ (const double &angle)
DifVectorrotateZ (const double &cosine, const double &sine)
DifVector transverse (const DifVector &v) const
DifNumber dot (const DifVector &v) const
DifNumber length () const
DifNumber lengthSq () const
DifVector unit () const
DifNumber perp () const
DifNumber perpSq () const
DifNumber r () const
DifNumber phi () const
DifNumber theta () const
DifNumber cosTheta () const

Public Attributes

DifNumber x
DifNumber y
DifNumber z

Private Member Functions

DifPointoperator= (const DifVector &v)
DifPointoperator+= (const DifPoint &p)
DifPointoperator-= (const DifPoint &p)

Friends

DifPoint operator+ (const DifPoint &p, const DifVector &v)
DifPoint operator+ (const DifVector &v, const DifPoint &p)
DifPoint operator- (const DifPoint &p, const DifVector &v)
DifVector operator- (const DifPoint &a, const DifPoint &b)
DifPoint operator * (const DifPoint &p, const DifNumber &n)
DifPoint operator * (const DifNumber &n, const DifPoint &p)
DifPoint operator/ (const DifPoint &v, const DifNumber &n)
DifVector operator- (const DifVector &a, const DifVector &b)
DifVector operator+ (const DifVector &a, const DifVector &b)
DifNumber operator * (const DifVector &a, const DifVector &b)
DifVector operator * (const DifVector &v, const DifNumber &n)
DifVector operator * (const DifNumber &n, const DifVector &v)
DifVector operator * (const DifVector &v, const double &n)
DifVector operator * (const double &n, const DifVector &v)
DifVector operator/ (const DifVector &v, const DifNumber &n)
DifVector operator/ (const DifVector &v, const double &n)
DifVector cross (const DifVector &a, const DifVector &b)

Detailed Description

Definition at line 34 of file DifPoint.h.


Constructor & Destructor Documentation

DifPoint::DifPoint ( const DifPoint p  )  [inline]

Definition at line 37 of file DifPoint.h.

00038     :DifVector(p) {} 

DifPoint::DifPoint (  )  [inline]

Definition at line 39 of file DifPoint.h.

00040     :DifVector() {}

DifPoint::DifPoint ( const HepPoint3D p  ) 

DifPoint::DifPoint ( const DifNumber X,
const DifNumber Y,
const DifNumber Z 
) [inline]

Definition at line 43 of file DifPoint.h.

00044     :DifVector(X,Y,Z) {}

DifPoint::DifPoint ( double  X,
double  Y,
double  Z 
) [inline]

Definition at line 45 of file DifPoint.h.

00046     :DifVector(X,Y,Z) {}


Member Function Documentation

DifNumber DifVector::cosTheta (  )  const [inherited]

DifNumber DifVector::dot ( const DifVector v  )  const [inline, inherited]

Referenced by TrkDifPoca::calcDist().

HepSymMatrix DifVector::errorMatrix ( const HepSymMatrix &  e  )  const [inherited]

Definition at line 54 of file DifVector.cxx.

References correlation(), subSeperate::temp, DifVector::x, DifVector::y, and DifVector::z.

Referenced by TrkMomCalculator::calcCurvAllCovsOLD(), TrkMomCalculator::calcCurvErrMom(), TrkMomCalculator::calcNeutAllCovs(), TrkMomCalculator::calcNeutErrMom(), TrkRep::directionErr(), TrkCompTrk::directionErr(), TrkRep::positionErr(), and TrkCompTrk::positionErr().

00054                                                               {
00055   HepSymMatrix temp(3);
00056   temp(1,1)=correlation(x,x,e);  
00057   temp(1,2)=correlation(x,y,e);
00058   temp(1,3)=correlation(x,z,e);
00059   temp(2,2)=correlation(y,y,e);
00060   temp(2,3)=correlation(y,z,e);
00061   temp(3,3)=correlation(z,z,e);
00062   return temp;
00063 }

DifVector& DifVector::flipsign (  )  [inline, inherited]

HepPoint3D DifPoint::hepPoint (  )  const

HepMatrix DifVector::jacobian (  )  const [inherited]

Definition at line 65 of file DifVector.cxx.

References DifNumber::derivative(), genRecEmupikp::i, DifNumber::nPar(), subSeperate::temp, DifVector::x, DifVector::y, and DifVector::z.

Referenced by TrkMomCalculator::calcCurvAllWeightsOLD(), and TrkMomCalculator::calcNeutAllWeights().

00065                                   {
00066   int npar=x.nPar();
00067   HepMatrix temp(3,npar);
00068   for(int i=1; i<=npar; i++){
00069     temp(1,i)=x.derivative(i);
00070     temp(2,i)=y.derivative(i);
00071     temp(3,i)=z.derivative(i);
00072   } // (int i=1; i<=npar; i++)
00073   return temp;
00074 }

DifNumber DifVector::length (  )  const [inline, inherited]

Referenced by DifFourVector::boostFrom(), DifFourVector::boostTo(), TrkMomCalculator::calcCurvAllCovsOLD(), TrkMomCalculator::calcCurvAllWeightsOLD(), TrkMomCalculator::calcCurvErrMom(), TrkMomCalculator::calcCurvPosmomCov(), TrkDifPoca::calcDist(), and DifFourVector::pMag().

DifNumber DifVector::lengthSq (  )  const [inline, inherited]

Referenced by DifFourVector::boostFromMe(), and DifFourVector::boostToMe().

DifVector& DifVector::normalize (  )  [inline, inherited]

Referenced by DifFourVector::boostFrom(), DifFourVector::boostFromMe(), DifFourVector::boostTo(), DifFourVector::boostToMe(), and TrkDifPoca::calcDist().

int DifVector::nPar (  )  const [inline, inherited]

DifVector& DifVector::operator *= ( const double &  n  )  [inline, inherited]

DifPoint& DifPoint::operator *= ( const DifNumber n  )  [inline]

Reimplemented from DifVector.

DifPoint& DifPoint::operator+= ( const DifPoint p  )  [private]

DifPoint& DifPoint::operator+= ( const DifVector v  )  [inline]

Reimplemented from DifVector.

DifVector DifVector::operator- (  )  const [inline, inherited]

DifPoint& DifPoint::operator-= ( const DifPoint p  )  [private]

DifPoint& DifPoint::operator-= ( const DifVector v  )  [inline]

Reimplemented from DifVector.

DifVector& DifVector::operator/= ( const double &  n  )  [inherited]

DifPoint& DifPoint::operator/= ( const DifNumber n  )  [inline]

Reimplemented from DifVector.

DifPoint& DifPoint::operator= ( const DifVector v  )  [private]

Reimplemented from DifVector.

DifPoint& DifPoint::operator= ( const DifPoint p  )  [inline]

DifNumber DifVector::perp (  )  const [inline, inherited]

DifNumber DifVector::perpSq (  )  const [inline, inherited]

DifNumber DifVector::phi (  )  const [inherited]

void DifVector::print (  )  const [inherited]

Definition at line 85 of file DifVector.cxx.

00085                            {
00086   /*SKIP
00087   cout << "x:" << x;
00088   cout << "y:" << y;
00089   cout << "z:" << z;
00090   */
00091   //yzhang TEMP
00092   cout << "Yzhang::DifVector::print x,y,z SKIPED!\n";
00093 }

DifNumber DifVector::r (  )  const [inherited]

Referenced by DifVector::rotate().

DifVector& DifVector::rotate ( const double &  alpha,
const double &  beta,
const double &  gamma 
) [inherited]

DifVector& DifVector::rotate ( const DifVector axis,
const double &  cosine,
const double &  sine 
) [inline, inherited]

DifVector& DifVector::rotate ( const DifVector axis,
const double &  angle 
) [inline, inherited]

DifVector & DifVector::rotate ( const DifRotation r  )  [inherited]

Definition at line 76 of file DifVector.cxx.

References DifVector::r().

00076                                                  {
00077   r.rotate(*this); return *this;
00078 }

DifVector & DifVector::rotate ( const DifNumber alpha,
const DifNumber beta,
const DifNumber gamma 
) [inherited]

Definition at line 80 of file DifVector.cxx.

References DifVector::rotate().

00080                                                                                      {
00081   DifRotation(a,b,g).rotate(*this);
00082   return *this;
00083 }

DifVector& DifVector::rotate ( const DifVector axis,
const DifNumber cosine,
const DifNumber sine 
) [inline, inherited]

DifVector& DifVector::rotate ( const DifVector axis,
const DifNumber angle 
) [inline, inherited]

Referenced by DifVector::rotate().

DifVector& DifVector::rotateX ( const double &  cosine,
const double &  sine 
) [inline, inherited]

DifVector& DifVector::rotateX ( const double &  angle  )  [inline, inherited]

DifVector& DifVector::rotateX ( const DifNumber cosine,
const DifNumber sine 
) [inline, inherited]

DifVector& DifVector::rotateX ( const DifNumber angle  )  [inline, inherited]

DifVector& DifVector::rotateY ( const double &  cosine,
const double &  sine 
) [inline, inherited]

DifVector& DifVector::rotateY ( const double &  angle  )  [inline, inherited]

DifVector& DifVector::rotateY ( const DifNumber cosine,
const DifNumber sine 
) [inline, inherited]

DifVector& DifVector::rotateY ( const DifNumber angle  )  [inline, inherited]

DifVector& DifVector::rotateZ ( const double &  cosine,
const double &  sine 
) [inline, inherited]

DifVector& DifVector::rotateZ ( const double &  angle  )  [inline, inherited]

DifVector& DifVector::rotateZ ( const DifNumber cosine,
const DifNumber sine 
) [inline, inherited]

DifVector& DifVector::rotateZ ( const DifNumber angle  )  [inline, inherited]

DifNumber DifVector::theta (  )  const [inherited]

DifVector DifVector::transverse ( const DifVector v  )  const [inline, inherited]

DifVector DifVector::unit (  )  const [inline, inherited]

DifVector& DifVector::zeroDerivatives (  )  [inline, inherited]


Friends And Related Function Documentation

DifVector cross ( const DifVector a,
const DifVector b 
) [friend, inherited]

DifVector operator * ( const double &  n,
const DifVector v 
) [friend, inherited]

DifVector operator * ( const DifVector v,
const double &  n 
) [friend, inherited]

DifVector operator * ( const DifNumber n,
const DifVector v 
) [friend, inherited]

DifVector operator * ( const DifVector v,
const DifNumber n 
) [friend, inherited]

DifNumber operator * ( const DifVector a,
const DifVector b 
) [friend, inherited]

DifPoint operator * ( const DifNumber n,
const DifPoint p 
) [friend]

DifPoint operator * ( const DifPoint p,
const DifNumber n 
) [friend]

DifVector operator+ ( const DifVector a,
const DifVector b 
) [friend, inherited]

DifPoint operator+ ( const DifVector v,
const DifPoint p 
) [friend]

DifPoint operator+ ( const DifPoint p,
const DifVector v 
) [friend]

DifVector operator- ( const DifVector a,
const DifVector b 
) [friend, inherited]

DifVector operator- ( const DifPoint a,
const DifPoint b 
) [friend]

DifPoint operator- ( const DifPoint p,
const DifVector v 
) [friend]

DifVector operator/ ( const DifVector v,
const double &  n 
) [friend, inherited]

DifVector operator/ ( const DifVector v,
const DifNumber n 
) [friend, inherited]

DifPoint operator/ ( const DifPoint v,
const DifNumber n 
) [friend]


Member Data Documentation

DifNumber DifVector::x [inherited]

Definition at line 148 of file DifVector.h.

Referenced by TrkMomCalculator::calcCurvAllCovsOLD(), TrkMomCalculator::calcCurvAllWeightsOLD(), TrkMomCalculator::calcCurvErrMom(), TrkMomCalculator::calcCurvPosmomCov(), TrkDifPoca::calcDist(), TrkMomCalculator::calcNeutAllCovs(), TrkMomCalculator::calcNeutAllWeights(), TrkMomCalculator::calcNeutErrMom(), TrkMomCalculator::calcNeutPosmomCov(), TrkRep::directionErr(), TrkCompTrk::directionErr(), DifVector::errorMatrix(), DifFourVector::errorMatrix(), TrkCircleTraj::getDFInfo(), HelixTraj::getDFInfo(), TrkCircleTraj::getDFInfo2(), HelixTraj::getDFInfo2(), DifVector::jacobian(), DifFourVector::jacobian(), TrkRep::positionErr(), and TrkCompTrk::positionErr().

DifNumber DifVector::y [inherited]

Definition at line 149 of file DifVector.h.

Referenced by TrkMomCalculator::calcCurvAllCovsOLD(), TrkMomCalculator::calcCurvAllWeightsOLD(), TrkMomCalculator::calcCurvErrMom(), TrkMomCalculator::calcCurvPosmomCov(), TrkMomCalculator::calcNeutAllCovs(), TrkMomCalculator::calcNeutAllWeights(), TrkMomCalculator::calcNeutErrMom(), TrkMomCalculator::calcNeutPosmomCov(), TrkRep::directionErr(), TrkCompTrk::directionErr(), DifVector::errorMatrix(), DifFourVector::errorMatrix(), TrkCircleTraj::getDFInfo(), HelixTraj::getDFInfo(), TrkCircleTraj::getDFInfo2(), HelixTraj::getDFInfo2(), DifVector::jacobian(), DifFourVector::jacobian(), TrkRep::positionErr(), and TrkCompTrk::positionErr().

DifNumber DifVector::z [inherited]

Definition at line 150 of file DifVector.h.

Referenced by TrkMomCalculator::calcCurvAllCovsOLD(), TrkMomCalculator::calcCurvAllWeightsOLD(), TrkMomCalculator::calcCurvErrMom(), TrkMomCalculator::calcCurvPosmomCov(), TrkDifPoca::calcDist(), TrkMomCalculator::calcNeutAllCovs(), TrkMomCalculator::calcNeutAllWeights(), TrkMomCalculator::calcNeutErrMom(), TrkMomCalculator::calcNeutPosmomCov(), TrkRep::directionErr(), TrkCompTrk::directionErr(), DifVector::errorMatrix(), DifFourVector::errorMatrix(), TrkCircleTraj::getDFInfo(), HelixTraj::getDFInfo(), TrkCircleTraj::getDFInfo2(), HelixTraj::getDFInfo2(), DifVector::jacobian(), DifFourVector::jacobian(), TrkRep::positionErr(), and TrkCompTrk::positionErr().


Generated on Tue Nov 29 23:18:16 2016 for BOSS_7.0.2 by  doxygen 1.4.7