File indexing completed on 2024-04-06 12:29:13
0001 #include "RecoVertex/KinematicFitPrimitives/interface/KinematicState.h"
0002 #include "RecoVertex/KinematicFitPrimitives/interface/Matrices.h"
0003
0004 KinematicState::KinematicState(const KinematicParameters& parameters,
0005 const KinematicParametersError& error,
0006 const TrackCharge& charge,
0007 const MagneticField* field)
0008 : fts(GlobalTrajectoryParameters(parameters.position(), parameters.momentum(), charge, field),
0009 CartesianTrajectoryError(error.matrix().Sub<AlgebraicSymMatrix66>(0, 0))),
0010 param(parameters),
0011 err(error),
0012 vl(true) {}
0013
0014 bool KinematicState::operator==(const KinematicState& other) const {
0015 return (kinematicParameters().vector() == other.kinematicParameters().vector()) &&
0016 (kinematicParametersError().matrix() == other.kinematicParametersError().matrix());
0017 }
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032