#include <PerigeeConversions.h>
Private Types | |
typedef FreeTrajectoryState | FTS |
Class provides several methods to transform perigee parameters to and from various other parametrisations.
Definition at line 16 of file PerigeeConversions.h.
|
private |
Definition at line 18 of file PerigeeConversions.h.
TrackCharge PerigeeConversions::chargeFromPerigee | ( | const PerigeeTrajectoryParameters & | perigee | ) | const |
This method returns the charge.
Definition at line 153 of file PerigeeConversions.cc.
References PerigeeTrajectoryParameters::charge().
CurvilinearTrajectoryError PerigeeConversions::curvilinearError | ( | const PerigeeTrajectoryError & | perigeeError, |
const GlobalTrajectoryParameters & | gtp | ||
) | const |
Definition at line 102 of file PerigeeConversions.cc.
References PerigeeTrajectoryError::covarianceMatrix().
Referenced by TrajectoryStateClosestToPoint::calculateFTS().
PerigeeTrajectoryError PerigeeConversions::ftsToPerigeeError | ( | const FTS & | originalFTS | ) | const |
Definition at line 63 of file PerigeeConversions.cc.
References FreeTrajectoryState::curvilinearError(), and CurvilinearTrajectoryError::matrix().
Referenced by MuonTrackingRegionBuilder::region(), and TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint().
PerigeeTrajectoryParameters PerigeeConversions::ftsToPerigeeParameters | ( | const FTS & | originalFTS, |
const GlobalPoint & | referencePoint, | ||
double & | pt | ||
) | const |
This method calculates the perigee parameters from a given FTS and a reference point.
Definition at line 7 of file PerigeeConversions.cc.
References FreeTrajectoryState::charge(), epsilon, edm::hlt::Exception, MagneticField::inInverseGeV(), M_PI, GlobalTrajectoryParameters::magneticField(), FreeTrajectoryState::momentum(), FreeTrajectoryState::parameters(), PV3DBase< T, PVType, FrameType >::perp(), phi, PV3DBase< T, PVType, FrameType >::phi(), FreeTrajectoryState::position(), ExpressReco_HICollisions_FallBack::pt, mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::theta(), theta(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint().
AlgebraicMatrix55 PerigeeConversions::jacobianCurvilinear2Perigee | ( | const FreeTrajectoryState & | fts | ) | const |
Definition at line 226 of file PerigeeConversions.cc.
References alpha, funct::cos(), Vector3DBase< T, FrameTag >::cross(), Vector3DBase< T, FrameTag >::dot(), ExpressReco_HICollisions_FallBack::e, Exhume::I, MagneticField::inInverseGeV(), M_PI, PV3DBase< T, PVType, FrameType >::mag(), GlobalTrajectoryParameters::magneticField(), GlobalTrajectoryParameters::momentum(), FreeTrajectoryState::momentum(), MultiGaussianStateTransform::N, L1TEmulatorMonitor_cff::p, FreeTrajectoryState::parameters(), FreeTrajectoryState::position(), FreeTrajectoryState::signedInverseMomentum(), funct::tan(), PV3DBase< T, PVType, FrameType >::theta(), FreeTrajectoryState::transverseCurvature(), Vector3DBase< T, FrameTag >::unit(), PV3DBase< T, PVType, FrameType >::x(), ExpressReco_HICollisions_FallBack::x, PV3DBase< T, PVType, FrameType >::y(), Gflash::Z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by jacobianCurvilinear2Perigee_old(), and PerigeeKinematicState::PerigeeKinematicState().
AlgebraicMatrix PerigeeConversions::jacobianCurvilinear2Perigee_old | ( | const FreeTrajectoryState & | fts | ) | const |
Jacobians of tranformations between curvilinear frame at point of closest approach in transverse plane and perigee frame. The fts must therefore be given at exactly this point in order to yield the correct Jacobians.
Definition at line 220 of file PerigeeConversions.cc.
References asHepMatrix(), and jacobianCurvilinear2Perigee().
AlgebraicMatrix66 PerigeeConversions::jacobianParameters2Cartesian | ( | const AlgebraicVector3 & | momentum, |
const GlobalPoint & | position, | ||
const TrackCharge & | charge, | ||
const MagneticField * | field | ||
) | const |
Jacobians of tranformations between the parametrixation (x, y, z, transverse curvature, theta, phi) to Cartesian
Definition at line 193 of file PerigeeConversions.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, DeDxDiscriminatorTools::charge(), funct::cos(), ExpressReco_HICollisions_FallBack::e, edm::hlt::Exception, MagneticField::inInverseGeV(), funct::sin(), funct::tan(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by jacobianParameters2Cartesian_old(), and KinematicPerigeeConversions::jacobianParameters2Kinematic().
AlgebraicMatrix PerigeeConversions::jacobianParameters2Cartesian_old | ( | const AlgebraicVector & | momentum, |
const GlobalPoint & | position, | ||
const TrackCharge & | charge, | ||
const MagneticField * | field | ||
) | const |
Jacobians of tranformations between the parametrixation (x, y, z, transverse curvature, theta, phi) to Cartesian
Definition at line 186 of file PerigeeConversions.cc.
References asHepMatrix(), and jacobianParameters2Cartesian().
AlgebraicMatrix55 PerigeeConversions::jacobianPerigee2Curvilinear | ( | const GlobalTrajectoryParameters & | gtp | ) | const |
Definition at line 296 of file PerigeeConversions.cc.
References alpha, funct::cos(), Vector3DBase< T, FrameTag >::cross(), Vector3DBase< T, FrameTag >::dot(), ExpressReco_HICollisions_FallBack::e, Exhume::I, MagneticField::inInverseGeV(), M_PI, PV3DBase< T, PVType, FrameType >::mag(), GlobalTrajectoryParameters::magneticField(), GlobalTrajectoryParameters::momentum(), MultiGaussianStateTransform::N, L1TEmulatorMonitor_cff::p, GlobalTrajectoryParameters::position(), GlobalTrajectoryParameters::signedInverseMomentum(), funct::sin(), PV3DBase< T, PVType, FrameType >::theta(), GlobalTrajectoryParameters::transverseCurvature(), Vector3DBase< T, FrameTag >::unit(), PV3DBase< T, PVType, FrameType >::x(), ExpressReco_HICollisions_FallBack::x, PV3DBase< T, PVType, FrameType >::y(), Gflash::Z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by jacobianPerigee2Curvilinear_old().
AlgebraicMatrix PerigeeConversions::jacobianPerigee2Curvilinear_old | ( | const GlobalTrajectoryParameters & | gtp | ) | const |
Definition at line 291 of file PerigeeConversions.cc.
References asHepMatrix(), and jacobianPerigee2Curvilinear().
GlobalVector PerigeeConversions::momentumFromPerigee | ( | const AlgebraicVector & | momentum, |
const TrackCharge & | charge, | ||
const GlobalPoint & | referencePoint, | ||
const MagneticField * | field | ||
) | const |
This method returns the (Cartesian) momentum. The parameters need not be the full perigee parameters, as long as the first 3 parameters are the transverse curvature, theta and phi.
Definition at line 127 of file PerigeeConversions.cc.
Referenced by TrajectoryStateClosestToPoint::calculateFTS(), and TrajectoryStateClosestToPoint::momentum().
GlobalVector PerigeeConversions::momentumFromPerigee | ( | const AlgebraicVector3 & | momentum, |
const TrackCharge & | charge, | ||
const GlobalPoint & | referencePoint, | ||
const MagneticField * | field | ||
) | const |
Definition at line 133 of file PerigeeConversions.cc.
References abs, funct::cos(), ExpressReco_HICollisions_FallBack::e, edm::hlt::Exception, MagneticField::inInverseGeV(), ExpressReco_HICollisions_FallBack::pt, funct::sin(), funct::tan(), and PV3DBase< T, PVType, FrameType >::z().
GlobalVector PerigeeConversions::momentumFromPerigee | ( | const PerigeeTrajectoryParameters & | parameters, |
double | pt, | ||
const GlobalPoint & | referencePoint | ||
) | const |
This method returns the (Cartesian) momentum from the PerigeeTrajectoryParameters
Definition at line 119 of file PerigeeConversions.cc.
References funct::cos(), PerigeeTrajectoryParameters::phi(), funct::sin(), funct::tan(), and PerigeeTrajectoryParameters::theta().
GlobalPoint PerigeeConversions::positionFromPerigee | ( | const PerigeeTrajectoryParameters & | parameters, |
const GlobalPoint & | referencePoint | ||
) | const |
This method returns the position (on the helix) at which the parameters are defined
Definition at line 109 of file PerigeeConversions.cc.
References funct::cos(), funct::sin(), PerigeeTrajectoryParameters::vector(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by TrajectoryStateClosestToPoint::calculateFTS(), and TrajectoryStateClosestToPoint::position().
TrajectoryStateClosestToPoint PerigeeConversions::trajectoryStateClosestToPoint | ( | const AlgebraicVector & | momentum, |
const GlobalPoint & | referencePoint, | ||
const TrackCharge & | charge, | ||
const AlgebraicMatrix & | theCovarianceMatrix, | ||
const MagneticField * | field | ||
) | const |
Public constructor. This constructor takes a momentum, with parameters (transverse curvature, theta, phi) and a position, which is both the reference position and the position at which the momentum is defined. The covariance matrix is defined for these 6 parameters, in the order (x, y, z, transverse curvature, theta, phi).
field | FIXME !!! why not Sym !!?? |
Definition at line 159 of file PerigeeConversions.cc.
Referenced by PerigeeMultiLTS::createRefittedTrackState(), and PerigeeLinearizedTrackState::createRefittedTrackState().
TrajectoryStateClosestToPoint PerigeeConversions::trajectoryStateClosestToPoint | ( | const AlgebraicVector3 & | momentum, |
const GlobalPoint & | referencePoint, | ||
const TrackCharge & | charge, | ||
const AlgebraicSymMatrix66 & | theCovarianceMatrix, | ||
const MagneticField * | field | ||
) | const |
Definition at line 170 of file PerigeeConversions.cc.