CMS 3D CMS Logo

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 15 of file KinematicParameters.h.

Member Typedef Documentation

◆ AlgebraicVector7

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

Definition at line 17 of file KinematicParameters.h.

Constructor & Destructor Documentation

◆ KinematicParameters() [1/3]

KinematicParameters::KinematicParameters ( )
inline

Definition at line 19 of file KinematicParameters.h.

19 : vl(false) {}

◆ KinematicParameters() [2/3]

template<typename... Args>
KinematicParameters::KinematicParameters ( Args...  args)
inline

Definition at line 22 of file KinematicParameters.h.

22 : par(args...), vl(true) {}

◆ KinematicParameters() [3/3]

KinematicParameters::KinematicParameters ( const AlgebraicVector7 pr)
inline

Definition at line 24 of file KinematicParameters.h.

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

Member Function Documentation

◆ energy()

double KinematicParameters::energy ( void  ) const
inline

The energy of the particle

Definition at line 58 of file KinematicParameters.h.

58 { return sqrt(par(3) * par(3) + par(4) * par(4) + par(5) * par(5) + par(6) * par(6)); }

References par, and mathSSE::sqrt().

Referenced by Jet.Jet::rawEnergy().

◆ isValid()

bool KinematicParameters::isValid ( void  ) const
inline

Definition at line 60 of file KinematicParameters.h.

60 { return vl; }

References vl.

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

◆ mass()

double KinematicParameters::mass ( ) const
inline

The mass of the particle

Definition at line 53 of file KinematicParameters.h.

53 { return par(6); }

References par.

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

◆ momentum()

GlobalVector KinematicParameters::momentum ( ) const
inline

The momentum vector

Definition at line 43 of file KinematicParameters.h.

43 { return GlobalVector(par[3], par[4], par[5]); }

References par.

Referenced by BPHWriteSpecificDecay::write().

◆ operator()()

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 38 of file KinematicParameters.h.

38 { return par(i); }

References mps_fire::i, and par.

◆ position()

GlobalPoint KinematicParameters::position ( ) const
inline

The position of the state

Definition at line 48 of file KinematicParameters.h.

48 { return GlobalPoint(par[0], par[1], par[2]); }

References par.

Referenced by VirtualKinematicParticle::stateAtPoint().

◆ vector()

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 31 of file KinematicParameters.h.

31 { return par; }

References par.

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

Member Data Documentation

◆ par

AlgebraicVector7 KinematicParameters::par
private

Definition at line 63 of file KinematicParameters.h.

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

◆ vl

bool KinematicParameters::vl
private

Definition at line 64 of file KinematicParameters.h.

Referenced by isValid().

writedatasetfile.args
args
Definition: writedatasetfile.py:18
mps_fire.i
i
Definition: mps_fire.py:428
GlobalVector
Global3DVector GlobalVector
Definition: GlobalVector.h:10
KinematicParameters::vl
bool vl
Definition: KinematicParameters.h:64
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
sipixeldigitoraw
Definition: SiPixelDigiToRaw.cc:32
KinematicParameters::par
AlgebraicVector7 par
Definition: KinematicParameters.h:63