37 throw VertexException(
"PerigeeLinearizedTrackState: don't know how to compare myself to non-perigee track state");
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)));
virtual AlgebraicVector3 predictedStateMomentumParameters() const
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const AlgebraicVector3 &momentum, const GlobalPoint &referencePoint, const TrackCharge &charge, const AlgebraicSymMatrix66 &theCovarianceMatrix, const MagneticField *field)
const AlgebraicMatrix53 & momentumJacobian() const
virtual RefCountedLinearizedTrackState stateWithNewLinearizationPoint(const GlobalPoint &newLP) const
ROOT::Math::SVector< double, N > AlgebraicVectorN
TSCPBuilderNoMaterial builder
const FreeTrajectoryState & theState() const
virtual reco::TransientTrack track() const
virtual void checkParameters(AlgebraicVector5 ¶meters) 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
void computeChargedJacobians() const
const MagneticField * field() const
bool operator==(LinearizedTrackState< 5 > &other) const
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
const TrajectoryStateOnSurface theTSOS
Cos< T >::type cos(const T &t)
const AlgebraicMatrix53 & positionJacobian() const
ROOT::Math::SVector< double, 3 > AlgebraicVector3
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
ReferenceCountingPointer< RefittedTrackState< N > > RefCountedRefittedTrackState
TrackCharge charge() const
GlobalVector momentum() const
GlobalPoint position() const
AlgebraicMatrix53 thePositionJacobian
ROOT::Math::SVector< double, 5 > AlgebraicVector5
virtual AlgebraicVector5 refittedParamFromEquation(const RefCountedRefittedTrackState &theRefittedState) const
double S(const TLorentzVector &, const TLorentzVector &)
reco::TransientTrack theTrack
virtual RefCountedRefittedTrackState createRefittedTrackState(const GlobalPoint &vertexPosition, const AlgebraicVector3 &vectorParameters, const AlgebraicSymMatrix66 &covarianceMatrix) const
virtual std::vector< ReferenceCountingPointer< LinearizedTrackState< 5 > > > components() const
const AlgebraicVector5 & constantTerm() const