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;
108 double X = x_v - paramPt.
x() -
sin(phiAtEP) / transverseCurvatureAtEP;
109 double Y = y_v - paramPt.
y() +
cos(phiAtEP) / transverseCurvatureAtEP;
110 double SS = X * X + Y *
Y;
120 double signX = (X > 0.0 ? +1.0 : -1.0);
121 phiFEP = -signTC * signX * acos(signTC * Y / S);
123 phiFEP = asin(-signTC * X / S);
124 if ((signTC * Y) < 0.0)
125 phiFEP =
M_PI - phiFEP;
153 -(X *
cos(phiAtEP) + Y *
sin(phiAtEP)) / (SS * transverseCurvatureAtEP * transverseCurvatureAtEP);
158 (signTC * (Y *
cos(phiAtEP) - X *
sin(phiAtEP)) / S - 1) / (transverseCurvatureAtEP * transverseCurvatureAtEP);
163 (phiAtEP -
theExpandedParams[2]) /
tan(thetaAtEP) / (transverseCurvatureAtEP * transverseCurvatureAtEP) +
175 AlgebraicVector3 momentumAtExpansionPoint(transverseCurvatureAtEP, thetaAtEP, phiAtEP);
192 double X = x_v - paramPt.
x();
193 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
const FreeTrajectoryState & theState() const
Sin< T >::type sin(const T &t)
AlgebraicVector5 theConstantTerm
Geom::Phi< T > phi() const
AlgebraicVector3 predictedStateMomentumParameters() const override
AlgebraicMatrix53 theMomentumJacobian
RefCountedLinearizedTrackState stateWithNewLinearizationPoint(const GlobalPoint &newLP) const override
void computeChargedJacobians() const
const MagneticField * field() const
const AlgebraicVector5 & constantTerm() const override
ReferenceCountingPointer< LinearizedTrackState< 5 > > RefCountedLinearizedTrackState
Geom::Theta< T > theta() const
void computeNeutralJacobians() const
GlobalVector inInverseGeV(const GlobalPoint &gp) const
Field value ad specified global point, in 1/Gev.
TrajectoryStateClosestToPoint thePredState
void computeJacobians() const
AlgebraicVector5 theExpandedParams
const PerigeeTrajectoryParameters & perigeeParameters() const
bool operator==(LinearizedTrackState< 5 > &other) const override
const TrajectoryStateOnSurface theTSOS
Cos< T >::type cos(const T &t)
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
ROOT::Math::SVector< double, 5 > AlgebraicVector5
ReferenceCountingPointer< RefittedTrackState< N > > RefCountedRefittedTrackState
GlobalVector momentum() 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
GlobalPoint position() const
AlgebraicMatrix53 thePositionJacobian
const AlgebraicMatrix53 & momentumJacobian() const override
double S(const TLorentzVector &, const TLorentzVector &)
reco::TransientTrack theTrack
reco::TransientTrack track() 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