CMS 3D CMS Logo

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

#include <PerigeeTrajectoryParameters.h>

Public Member Functions

TrackCharge charge () const
 
double longitudinalImpactParameter () const
 
 PerigeeTrajectoryParameters ()
 
 PerigeeTrajectoryParameters (const AlgebraicVector5 &aVector, bool charged=true)
 
 PerigeeTrajectoryParameters (double aCurv, double aTheta, double aPhi, double aTip, double aLip, bool charged=true)
 
double phi () const
 
double theta () const
 
double transverseCurvature () const
 
double transverseImpactParameter () const
 
const AlgebraicVector5vector () const
 

Private Attributes

TrackCharge theCharge
 
AlgebraicVector5 theVector
 

Detailed Description

Class providing access to the Perigee parameters of a trajectory. These parameters consist of
rho : charged particles: transverse curvature (signed)
neutral particles: inverse magnitude of transverse momentum
theta, phi, transverse impact parameter (signed), longitudinal i.p.

Definition at line 16 of file PerigeeTrajectoryParameters.h.

Constructor & Destructor Documentation

PerigeeTrajectoryParameters::PerigeeTrajectoryParameters ( )
inline

Definition at line 18 of file PerigeeTrajectoryParameters.h.

18 {}
PerigeeTrajectoryParameters::PerigeeTrajectoryParameters ( const AlgebraicVector5 aVector,
bool  charged = true 
)
inlineexplicit

Definition at line 20 of file PerigeeTrajectoryParameters.h.

References theCharge, and theVector.

20  : theVector(aVector) {
21  if (charged)
22  theCharge = theVector[0] > 0 ? -1 : 1;
23  else
24  theCharge = 0;
25  }
PerigeeTrajectoryParameters::PerigeeTrajectoryParameters ( double  aCurv,
double  aTheta,
double  aPhi,
double  aTip,
double  aLip,
bool  charged = true 
)
inline

Definition at line 27 of file PerigeeTrajectoryParameters.h.

References theCharge, and theVector.

27  {
28  theVector[0] = aCurv;
29  theVector[1] = aTheta;
30  theVector[2] = aPhi;
31  theVector[3] = aTip;
32  theVector[4] = aLip;
33 
34  if (charged)
35  theCharge = aCurv > 0 ? -1 : 1;
36  else
37  theCharge = 0;
38  }

Member Function Documentation

TrackCharge PerigeeTrajectoryParameters::charge ( void  ) const
inline
double PerigeeTrajectoryParameters::longitudinalImpactParameter ( ) const
inline

The longitudinal impact parameter

Definition at line 74 of file PerigeeTrajectoryParameters.h.

References theVector.

Referenced by PrimaryVertexValidation::analyze().

74 { return theVector[4]; }
double PerigeeTrajectoryParameters::phi ( void  ) const
inline
double PerigeeTrajectoryParameters::theta ( void  ) const
inline
double PerigeeTrajectoryParameters::transverseCurvature ( ) const
inline

The signed transverse curvature

Definition at line 50 of file PerigeeTrajectoryParameters.h.

References charge(), and theVector.

50 { return ((charge() != 0) ? theVector[0] : 0.); }
double PerigeeTrajectoryParameters::transverseImpactParameter ( ) const
inline

The (signed) transverse impact parameter

Definition at line 68 of file PerigeeTrajectoryParameters.h.

References theVector.

Referenced by PrimaryVertexValidation::analyze().

68 { return theVector[3]; }
const AlgebraicVector5& PerigeeTrajectoryParameters::vector ( ) const
inline

returns the perigee parameters as a vector. The order of the parameters are:
transverse curvature (signed), theta, phi, transverse impact parameter (signed), longitudinal i.p.

Definition at line 82 of file PerigeeTrajectoryParameters.h.

References theVector.

Referenced by tauImpactParameter::ParticleBuilder::createTrackParticle(), VertexFitterResult::fillParameters(), MatcherUsingTracksAlgorithm::getChi2(), PerigeeRefittedTrackState::parameters(), PerigeeConversions::positionFromPerigee(), PerigeeLinearizedTrackState::predictedStateMomentumParameters(), and PerigeeLinearizedTrackState::predictedStateParameters().

82 { return theVector; }

Member Data Documentation

TrackCharge PerigeeTrajectoryParameters::theCharge
private

Definition at line 86 of file PerigeeTrajectoryParameters.h.

Referenced by charge(), and PerigeeTrajectoryParameters().

AlgebraicVector5 PerigeeTrajectoryParameters::theVector
private