CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
KinematicParameters Class Reference

#include <KinematicParameters.h>

Public Types

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

Public Member Functions

double energy () const
 
bool isValid () const
 
 KinematicParameters ()
 
template<typename... Args>
 KinematicParameters (Args...args)
 
 KinematicParameters (const AlgebraicVector7 &pr)
 
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) More...
 
GlobalPoint position () const
 
AlgebraicVector7 const & vector () const
 The full vector (7 elements) More...
 

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.

22 : vl(false) {}
template<typename... Args>
KinematicParameters::KinematicParameters ( Args...  args)
inline

Definition at line 25 of file KinematicParameters.h.

25 : par(args...), vl(true){}
AlgebraicVector7 par
KinematicParameters::KinematicParameters ( const AlgebraicVector7 pr)
inline

Definition at line 27 of file KinematicParameters.h.

27  : par(pr),vl(true)
28  {}
AlgebraicVector7 par

Member Function Documentation

double KinematicParameters::energy ( void  ) const
inline

The energy of the particle

Definition at line 62 of file KinematicParameters.h.

References par, and mathSSE::sqrt().

62  {
63  return sqrt(par(3)*par(3)+par(4)*par(4)+par(5)*par(5)+par(6)*par(6));
64  }
AlgebraicVector7 par
T sqrt(T t)
Definition: SSEVec.h:18
bool KinematicParameters::isValid ( void  ) const
inline

Definition at line 67 of file KinematicParameters.h.

References vl.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

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

The mass of the particle

Definition at line 57 of file KinematicParameters.h.

References par.

Referenced by Particle.Particle::__str__(), and DiObject.DiMuon::__str__().

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

The momentum vector

Definition at line 47 of file KinematicParameters.h.

References par.

47 {return GlobalVector(par[3], par[4], par[5]);}
AlgebraicVector7 par
Global3DVector GlobalVector
Definition: GlobalVector.h:10
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 42 of file KinematicParameters.h.

References par.

42 {return par(i);}
int i
Definition: DBlmapReader.cc:9
AlgebraicVector7 par
GlobalPoint KinematicParameters::position ( ) const
inline

The position of the state

Definition at line 52 of file KinematicParameters.h.

References par.

Referenced by VirtualKinematicParticle::stateAtPoint().

52 {return GlobalPoint(par[0], par[1], par[2]);}
AlgebraicVector7 par
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
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 35 of file KinematicParameters.h.

References par.

Referenced by KinematicRefittedTrackState::kinematicParameters(), KinematicState::mass(), and KinematicState::operator==().

35 {return par;}
AlgebraicVector7 par

Member Data Documentation

AlgebraicVector7 KinematicParameters::par
private

Definition at line 71 of file KinematicParameters.h.

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

bool KinematicParameters::vl
private

Definition at line 72 of file KinematicParameters.h.

Referenced by isValid().