22 std::pair<bool,reco::TrackBase::ParameterVector>
41 sParameters[2] = p.phi();
42 sParameters[3] = (-v.x()*
sin(p.phi())+v.y()*
cos(p.phi()));
43 sParameters[4] = v.z()*p.perp()/p.mag() - (v.x()*p.x()+v.y()*p.y())/p.perp() * p.z()/p.mag();
45 return std::make_pair(
true,sParameters);
47 return std::make_pair(
false,sParameters);
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
constexpr double halfPi()
Sin< T >::type sin(const T &t)
Global3DPoint GlobalPoint
math::Vector< dimension >::type ParameterVector
parameter vector
TrackCharge charge() const
T z() const
Cartesian z coordinate.
Cos< T >::type cos(const T &t)
GlobalVector momentum() const
FTS const & trackStateAtPCA() const
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalVector
vector in glovbal coordinate system
GlobalPoint position() const
std::pair< bool, reco::TrackBase::ParameterVector > trackingParametersAtClosestApproachToBeamSpot(const Basic3DVector< double > &vertex, const Basic3DVector< double > &momAtVtx, float charge, const MagneticField &magField, const BeamSpot &bs)
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
Global3DVector GlobalVector