18 std::pair<bool, reco::TrackBase::ParameterVector> params =
25 chi2 = ROOT::Math::Dot(diffParameters * recoTrackCovMatrix, diffParameters);
28 LogDebug(
"TrackAssociator") <<
"====NEW RECO TRACK WITH PT=" 29 <<
sin(rParameters[1]) *
float(charge) / rParameters[0] <<
"====\n" 30 <<
"qoverp sim: " << sParameters[0] <<
"\n" 31 <<
"lambda sim: " << sParameters[1] <<
"\n" 32 <<
"phi sim: " << sParameters[2] <<
"\n" 33 <<
"dxy sim: " << sParameters[3] <<
"\n" 34 <<
"dsz sim: " << sParameters[4] <<
"\n" 36 <<
"qoverp rec: " << rParameters[0] <<
"\n" 37 <<
"lambda rec: " << rParameters[1] <<
"\n" 38 <<
"phi rec: " << rParameters[2] <<
"\n" 39 <<
"dxy rec: " << rParameters[3] <<
"\n" 40 <<
"dsz rec: " << rParameters[4] <<
"\n" 42 <<
"chi2: " << chi2 <<
"\n";
56 const auto tpMom = trackingParticle.
momentum();
60 return trackAssociationChi2(rParameters, recoTrackCovMatrix, momAtVtx, vert, charge, magfield, bs);
constexpr double deltaPhi(double phi1, double phi2)
Vector momentum() const
spatial momentum vector
Sin< T >::type sin(const T &t)
math::Vector< dimension >::type ParameterVector
parameter vector
float charge() const
Electric charge. Note this is taken from the first SimTrack only.
CovarianceMatrix covariance() const
return track covariance matrix
std::pair< bool, reco::TrackBase::ParameterVector > trackingParametersAtClosestApproachToBeamSpot(const Basic3DVector< double > &vertex, const Basic3DVector< double > &momAtVtx, float charge, const MagneticField &magField, const BeamSpot &bs)
Point vertex() const
Parent vertex position.
ParameterVector parameters() const
Track parameters with one-to-one correspondence to the covariance matrix.
Monte Carlo truth information used for tracking validation.
double trackAssociationChi2(const reco::TrackBase::ParameterVector &rParameters, const reco::TrackBase::CovarianceMatrix &recoTrackCovMatrix, const Basic3DVector< double > &momAtVtx, const Basic3DVector< double > &vert, int charge, const MagneticField &magfield, const reco::BeamSpot &bs)
basic method where chi2 is computed
math::Error< dimension >::type CovarianceMatrix
5 parameter covariance matrix