31 if (otherP ==
nullptr) {
32 throw VertexException(
"PerigeeLinearizedTrackState: don't know how to compare myself to non-perigee track state");
39 if (otherP ==
nullptr) {
40 throw VertexException(
"PerigeeLinearizedTrackState: don't know how to compare myself to non-perigee track state");
61 std::vector<RefCountedLinearizedTrackState>
result;
69 auto p = theRefittedState->position();
74 momentum(2) -= 2 *
M_PI;
76 momentum(2) += 2 *
M_PI;
103 double transverseCurvatureAtEP = field / ptAtEP * signTC;
113 double X = x_v - paramPt.
x() -
sin(phiAtEP) / transverseCurvatureAtEP;
114 double Y = y_v - paramPt.
y() +
cos(phiAtEP) / transverseCurvatureAtEP;
115 double SS =
X *
X +
Y *
Y;
125 double signX = (
X > 0.0 ? +1.0 : -1.0);
126 phiFEP = -signTC * signX * acos(signTC *
Y /
S);
128 phiFEP = asin(-signTC *
X /
S);
129 if ((signTC *
Y) < 0.0)
130 phiFEP =
M_PI - phiFEP;
158 -(
X *
cos(phiAtEP) +
Y *
sin(phiAtEP)) / (SS * transverseCurvatureAtEP * transverseCurvatureAtEP);
163 (signTC * (
Y *
cos(phiAtEP) -
X *
sin(phiAtEP)) /
S - 1) / (transverseCurvatureAtEP * transverseCurvatureAtEP);
168 (phiAtEP -
theExpandedParams[2]) /
tan(thetaAtEP) / (transverseCurvatureAtEP * transverseCurvatureAtEP) +
180 AlgebraicVector3 momentumAtExpansionPoint(transverseCurvatureAtEP, thetaAtEP, phiAtEP);
197 double X = x_v - paramPt.
x();
198 double Y = y_v - paramPt.
y();
std::vector< ReferenceCountingPointer< LinearizedTrackState< 5 > > > components() const override
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const AlgebraicVector3 &momentum, const GlobalPoint &referencePoint, const TrackCharge &charge, const AlgebraicSymMatrix66 &theCovarianceMatrix, const MagneticField *field)
TrackCharge charge() const override
void checkParameters(AlgebraicVector5 ¶meters) const override
ROOT::Math::SVector< double, N > AlgebraicVectorN
TSCPBuilderNoMaterial builder
Geom::Phi< T > phi() const
void computeNeutralJacobians() const
Sin< T >::type sin(const T &t)
AlgebraicVector5 theConstantTerm
AlgebraicVector3 predictedStateMomentumParameters() const override
GlobalVector inInverseGeV(const GlobalPoint &gp) const
Field value ad specified global point, in 1/Gev.
AlgebraicMatrix53 theMomentumJacobian
RefCountedLinearizedTrackState stateWithNewLinearizationPoint(const GlobalPoint &newLP) const override
const AlgebraicVector5 & constantTerm() const override
ReferenceCountingPointer< LinearizedTrackState< 5 > > RefCountedLinearizedTrackState
GlobalPoint position() const
TrajectoryStateClosestToPoint thePredState
GlobalPoint globalPosition() const
void computeJacobians() const
AlgebraicVector5 theExpandedParams
const TrajectoryStateOnSurface theTSOS
const MagneticField * field() const
Cos< T >::type cos(const T &t)
Tan< T >::type tan(const T &t)
GlobalVector momentum() const
Abs< T >::type abs(const T &t)
ROOT::Math::SVector< double, 5 > AlgebraicVector5
ReferenceCountingPointer< RefittedTrackState< N > > RefCountedRefittedTrackState
const PerigeeTrajectoryParameters & perigeeParameters() const
PerigeeLinearizedTrackState(const GlobalPoint &linP, const reco::TransientTrack &track, const TrajectoryStateOnSurface &tsos)
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
const AlgebraicMatrix53 & positionJacobian() const override
AlgebraicMatrix53 thePositionJacobian
const AlgebraicMatrix53 & momentumJacobian() const override
const FreeTrajectoryState & theState() const
void computeChargedJacobians() const
reco::TransientTrack theTrack
reco::TransientTrack track() const override
bool operator==(const LinearizedTrackState< 5 > &other) const override
AlgebraicVector5 refittedParamFromEquation(const RefCountedRefittedTrackState &theRefittedState) const override
ROOT::Math::SVector< double, 3 > AlgebraicVector3
RefCountedRefittedTrackState createRefittedTrackState(const GlobalPoint &vertexPosition, const AlgebraicVector3 &vectorParameters, const AlgebraicSymMatrix66 &covarianceMatrix) const override
Geom::Theta< T > theta() const