36 if (otherP ==
nullptr) {
37 throw VertexException(
"PerigeeLinearizedTrackState: don't know how to compare myself to non-perigee track state");
47 if (otherP ==
nullptr) {
48 throw VertexException(
"PerigeeLinearizedTrackState: don't know how to compare myself to non-perigee track state");
74 std::vector< PerigeeLinearizedTrackState::RefCountedLinearizedTrackState >
77 std::vector<RefCountedLinearizedTrackState>
result; result.reserve(1);
79 const_cast<PerigeeLinearizedTrackState*>(
this)));
87 auto p = theRefittedState->position();
97 if (param(2) >
M_PI) param(2)-= 2*
M_PI;
98 if (param(2) < -
M_PI) param(2)+= 2*
M_PI;
120 double transverseCurvatureAtEP = field / ptAtEP*signTC;
125 double X = x_v - paramPt.
x() -
sin(phiAtEP) / transverseCurvatureAtEP;
126 double Y = y_v - paramPt.
y() +
cos(phiAtEP) / transverseCurvatureAtEP;
127 double SS = X*X + Y*
Y;
137 double signX = (X>0.0? +1.0:-1.0);
138 phiFEP = -signTC * signX*acos(signTC*Y/S);
140 phiFEP = asin(-signTC*X/S);
142 phiFEP =
M_PI - phiFEP;
169 (X*
cos(phiAtEP) + Y*
sin(phiAtEP))/
170 (SS*transverseCurvatureAtEP*transverseCurvatureAtEP);
173 (SS*transverseCurvatureAtEP);
176 (signTC * (Y*
cos(phiAtEP) - X*
sin(phiAtEP)) / S - 1)/
177 (transverseCurvatureAtEP*transverseCurvatureAtEP);
180 (S*transverseCurvatureAtEP);
183 tan(thetaAtEP)/(transverseCurvatureAtEP*transverseCurvatureAtEP)+
187 (1 + 1/(
tan(thetaAtEP)*
tan(thetaAtEP)))/transverseCurvatureAtEP;
190 tan(thetaAtEP)/transverseCurvatureAtEP;
196 AlgebraicVector3 momentumAtExpansionPoint( transverseCurvatureAtEP,thetaAtEP,phiAtEP);
220 double X = x_v - paramPt.
x();
221 double Y = y_v - paramPt.
y();
230 (X*
cos(phiAtEP) + Y*
sin(phiAtEP)) /
tan(thetaAtEP);
254 (1 + 1/(
tan(thetaAtEP)*
tan(thetaAtEP)));
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const AlgebraicVector3 &momentum, const GlobalPoint &referencePoint, const TrackCharge &charge, const AlgebraicSymMatrix66 &theCovarianceMatrix, const MagneticField *field)
RefCountedRefittedTrackState createRefittedTrackState(const GlobalPoint &vertexPosition, const AlgebraicVector3 &vectorParameters, const AlgebraicSymMatrix66 &covarianceMatrix) const override
AlgebraicVector5 refittedParamFromEquation(const RefCountedRefittedTrackState &theRefittedState) const override
ROOT::Math::SVector< double, N > AlgebraicVectorN
TSCPBuilderNoMaterial builder
const FreeTrajectoryState & theState() const
Sin< T >::type sin(const T &t)
AlgebraicVector5 theConstantTerm
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
Geom::Phi< T > phi() const
AlgebraicMatrix53 theMomentumJacobian
RefCountedLinearizedTrackState stateWithNewLinearizationPoint(const GlobalPoint &newLP) const override
void computeChargedJacobians() const
const MagneticField * field() const
AlgebraicVector3 predictedStateMomentumParameters() 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
bool operator==(LinearizedTrackState< 5 > &other) const override
void computeJacobians() const
AlgebraicVector5 theExpandedParams
const PerigeeTrajectoryParameters & perigeeParameters() const
const TrajectoryStateOnSurface theTSOS
Cos< T >::type cos(const T &t)
ROOT::Math::SVector< double, 3 > AlgebraicVector3
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
ReferenceCountingPointer< RefittedTrackState< N > > RefCountedRefittedTrackState
std::vector< ReferenceCountingPointer< LinearizedTrackState< 5 > > > components() const override
GlobalVector momentum() const
PerigeeLinearizedTrackState(const GlobalPoint &linP, const reco::TransientTrack &track, const TrajectoryStateOnSurface &tsos)
reco::TransientTrack track() const override
GlobalPoint position() const
const AlgebraicMatrix53 & momentumJacobian() const override
AlgebraicMatrix53 thePositionJacobian
const AlgebraicVector5 & constantTerm() const override
ROOT::Math::SVector< double, 5 > AlgebraicVector5
const AlgebraicMatrix53 & positionJacobian() const override
TrackCharge charge() const override
double S(const TLorentzVector &, const TLorentzVector &)
reco::TransientTrack theTrack
void checkParameters(AlgebraicVector5 ¶meters) const override