CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

KinematicParameters Class Reference

#include <KinematicParameters.h>

List of all members.

Public Types

typedef ROOT::Math::SVector
< double, 7 > 
AlgebraicVector7

Public Member Functions

double energy () const
bool isValid () const
 KinematicParameters (const AlgebraicVector7 &pr)
 KinematicParameters ()
double mass () const
GlobalVector momentum () const
double operator() (const int i) const
 Allows to access directly one component of the vector (index between 0 and 6)
GlobalPoint position () const
AlgebraicVector7 const & vector () const
 The full vector (7 elements)

Private Attributes

AlgebraicVector7 par
bool vl

Detailed Description

Class to store the 7-vector of particle parameters: (x,y,z,p_x,p_y,p_z,m)

Kirill Prokofiev Febrauary 2003

Definition at line 16 of file KinematicParameters.h.


Member Typedef Documentation

typedef ROOT::Math::SVector<double,7> KinematicParameters::AlgebraicVector7

Definition at line 20 of file KinematicParameters.h.


Constructor & Destructor Documentation

KinematicParameters::KinematicParameters ( ) [inline]

Definition at line 22 of file KinematicParameters.h.

: vl(false) {}
KinematicParameters::KinematicParameters ( const AlgebraicVector7 pr) [inline]

Definition at line 24 of file KinematicParameters.h.

                                                 : par(pr),vl(true)
  {}

Member Function Documentation

double KinematicParameters::energy ( void  ) const

The energy of the particle

Definition at line 9 of file KinematicParameters.cc.

References par, and mathSSE::sqrt().

                                         {
  return sqrt(par(3)*par(3)+par(4)*par(4)+par(5)*par(5)+par(6)*par(6));
}
bool KinematicParameters::isValid ( void  ) const [inline]

Definition at line 61 of file KinematicParameters.h.

References vl.

  {return vl;}
double KinematicParameters::mass ( ) const [inline]

The mass of the particle

Definition at line 54 of file KinematicParameters.h.

References par.

{return par(6);}
GlobalVector KinematicParameters::momentum ( ) const

The momentum vector

Definition at line 3 of file KinematicParameters.cc.

References par.

Referenced by KinematicState::globalMomentum().

{return GlobalVector(par[3], par[4], par[5]);}
double KinematicParameters::operator() ( const int  i) const [inline]

Allows to access directly one component of the vector (index between 0 and 6)

The order of the parameters is (x,y,z,p_x,p_y,p_z,m)

Definition at line 39 of file KinematicParameters.h.

References par.

{return par(i);}
GlobalPoint KinematicParameters::position ( ) const

The position of the state

Definition at line 6 of file KinematicParameters.cc.

References par.

Referenced by KinematicState::globalPosition(), and VirtualKinematicParticle::stateAtPoint().

{return GlobalPoint(par[0], par[1], par[2]);}
AlgebraicVector7 const& KinematicParameters::vector ( ) const [inline]

The full vector (7 elements)

The order of the parameters is (x,y,z,p_x,p_y,p_z,m)

Definition at line 32 of file KinematicParameters.h.

References par.

Referenced by KinematicConstrainedVertexFitterT< nTrk, nConstraint >::fit(), KinematicConstrainedVertexFitter::fit(), KinematicState::mass(), KinematicState::operator==(), and TrackKinematicStatePropagator::propagateToTheTransversePCANeutral().

{return par;}

Member Data Documentation

Definition at line 65 of file KinematicParameters.h.

Referenced by energy(), mass(), momentum(), operator()(), position(), and vector().

bool KinematicParameters::vl [private]

Definition at line 66 of file KinematicParameters.h.

Referenced by isValid().