58 (
config.materialEffects >= brokenLinesCoarse) ? 1 : refTsos.localParameters().mixedFormatVector().kSize,
60 (
config.materialEffects >= brokenLinesCoarse)
62 : ((
config.materialEffects == breakPoints)
65 (
config.materialEffects >= brokenLinesCoarse)
67 : ((
config.materialEffects == breakPoints)
71 materialEffects_(
config.materialEffects),
74 includeAPEs_(
config.includeAPEs),
75 allowZeroMaterial_(
config.allowZeroMaterial) {
79 if (
config.hitsAreReverse) {
81 fwdRecHits.reserve(
recHits.size());
82 for (TransientTrackingRecHit::ConstRecHitContainer::const_reverse_iterator
it =
recHits.rbegin();
85 fwdRecHits.push_back(*
it);
100 (
config.materialEffects >= brokenLinesCoarse)
102 : ((
config.materialEffects == breakPoints) ? 2 *
nHits - 2 : 0),
103 (
config.materialEffects >= brokenLinesCoarse)
105 : ((
config.materialEffects == breakPoints) ? 2 *
nHits - 2 : 0)),
107 materialEffects_(
config.materialEffects),
110 includeAPEs_(
config.includeAPEs),
111 allowZeroMaterial_(
config.allowZeroMaterial) {}
124 if (!aMaterialEffectsUpdator.get())
128 std::vector<AlgebraicMatrix> allJacobians;
134 std::vector<AlgebraicSymMatrix> allCurvatureChanges;
139 std::vector<AlgebraicMatrix> allProjections;
141 std::vector<AlgebraicSymMatrix> allDeltaParameterCovs;
145 std::vector<AlgebraicMatrix> allLocalToCurv;
147 std::vector<double> allSteps;
149 std::vector<AlgebraicMatrix> allCurvlinJacobians;
154 unsigned int iRow = 0;
164 if (!tsctbl.isValid()) {
165 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::construct" 166 <<
"TrajectoryStateClostestToBeamLine invalid. Skip track.";
175 std::pair<TrajectoryStateOnSurface, double> tsosWithPath =
propagator.propagateWithPath(pcaFts, refTsos.
surface());
177 if (!tsosWithPath.first.isValid())
191 allRecHits.push_back(bsRecHit);
195 TransientTrackingRecHit::ConstRecHitContainer::const_iterator itRecHit;
196 for (itRecHit =
recHits.begin(); itRecHit !=
recHits.end(); ++itRecHit) {
198 allRecHits.push_back(hitPtr);
201 for (itRecHit = allRecHits.begin(); itRecHit != allRecHits.end(); ++itRecHit) {
209 allJacobians.push_back(fullJacobian);
212 const AlgebraicMatrix localToCurvilinear = asHepMatrix<5>(startTrafo.jacobian());
217 allLocalToCurv.push_back(localToCurvilinear);
218 allSteps.push_back(0.);
219 allCurvlinJacobians.push_back(firstCurvlinJacobian);
224 double nextStep = 0.;
227 if (!this->
propagate(previousHitPtr->det()->surface(),
238 allJacobians.push_back(nextJacobian);
239 fullJacobian = nextJacobian * previousChangeInCurvature * fullJacobian;
243 const AlgebraicMatrix localToCurvilinear = asHepMatrix<5>(startTrafo.jacobian());
244 allLocalToCurv.push_back(localToCurvilinear);
245 if (nextStep == 0.) {
246 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::construct" 247 <<
"step 0. from id " << previousHitPtr->geographicalId() <<
" to " 248 << hitPtr->det()->geographicalId() <<
".";
251 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::construct" 256 allSteps.push_back(nextStep);
257 allCurvlinJacobians.push_back(nextCurvlinJacobian);
266 if (!updatedTsos.isValid())
269 if (
theTsosVec.back().localParameters().charge()) {
271 theTsosVec.back().localParameters().signedInverseMomentum();
275 allDeltaParameterCovs.push_back(asHepMatrix<5>(updatedTsos.localError().matrix()));
276 allCurvatureChanges.push_back(previousChangeInCurvature);
282 previousHitPtr = hitPtr;
304 msOK = this->
addMaterialEffectsCov(allJacobians, allProjections, allCurvatureChanges, allDeltaParameterCovs);
308 allJacobians, allProjections, allCurvatureChanges, allDeltaParameterCovs, allLocalToCurv);
312 allProjections, allDeltaParameterCovs, allLocalToCurv, allSteps, refTsos.
globalParameters());
318 allDeltaParameterCovs,
327 allCurvlinJacobians, allProjections, allCurvatureChanges, allDeltaParameterCovs, allLocalToCurv);
351 switch (materialEffects) {
377 const Plane &newSurface,
393 const std::pair<TrajectoryStateOnSurface, double> tsosWithPath =
397 if (!tsosWithPath.first.isValid())
400 nextStep = tsosWithPath.second;
404 tsosWithPath.first.globalPosition(),
405 tsosWithPath.first.globalMomentum(),
406 tsosWithPath.second);
407 const AlgebraicMatrix curvilinearJacobian = asHepMatrix<5, 5>(aJacobian.jacobian());
411 const AlgebraicMatrix localToCurvilinear = asHepMatrix<5>(startTrafo.jacobian());
415 const AlgebraicMatrix curvilinearToLocal = asHepMatrix<5>(endTrafo.jacobian());
419 newCurvlinJacobian = curvilinearJacobian;
420 newJacobian = curvilinearToLocal * curvilinearJacobian * localToCurvilinear;
421 newTsos = tsosWithPath.first;
439 const auto &newHitPtr = hitPtr;
443 const LocalPoint localMeasurement = newHitPtr->localPosition();
444 const LocalError localMeasurementCov = newHitPtr->localPositionError();
456 if (localAPE.valid()) {
472 for (
int j = 0;
j < projectedJacobian.num_row(); ++
j) {
485 for (
int i = 0;
i < localPosition.num_row(); ++
i) {
493 const std::vector<AlgebraicMatrix> &allProjections,
494 const std::vector<AlgebraicSymMatrix> &allCurvatureChanges,
495 const std::vector<AlgebraicSymMatrix> &allDeltaParameterCovs) {
513 for (
unsigned int k = 1;
k < allJacobians.size(); ++
k) {
515 paramMaterialEffectsCov = paramMaterialEffectsCov.similarity(allJacobians[
k]);
518 deltaMaterialEffectsCov = paramMaterialEffectsCov.similarity(allProjections[
k]);
525 paramMaterialEffectsCov += allDeltaParameterCovs[
k];
527 tempParameterCov = paramMaterialEffectsCov;
530 for (
unsigned int l =
k + 1;
l < allJacobians.size(); ++
l) {
531 tempParameterCov = allJacobians[
l] * allCurvatureChanges[
l] * tempParameterCov;
532 tempMeasurementCov = allProjections[
l] * tempParameterCov * allProjections[
k].T();
549 paramMaterialEffectsCov = paramMaterialEffectsCov.similarity(allCurvatureChanges[
k]);
559 const std::vector<AlgebraicMatrix> &allProjections,
560 const std::vector<AlgebraicSymMatrix> &allCurvatureChanges,
561 const std::vector<AlgebraicSymMatrix> &allDeltaParameterCovs,
562 const std::vector<AlgebraicMatrix> &allLocalToCurv) {
565 int offsetMeas =
nMeasPerHit * allJacobians.size();
570 MSprojection[0][1] = 1;
571 MSprojection[1][2] = 1;
576 for (
unsigned int k = 1;
k < allJacobians.size(); ++
k) {
579 tempJacobian = allJacobians[
k] * allCurvatureChanges[
k];
580 tempMSCov = allDeltaParameterCovs[
k - 1].similarity(allLocalToCurv[
k - 1]);
581 tempMSCovProj = tempMSCov.similarity(MSprojection);
587 tempMSJacProj = (allProjections[
k] * (tempJacobian * allLocalToCurv[
k - 1].inverse(ierr))) * MSprojection.T();
589 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsBp" 590 <<
"Inversion 1 for break points failed: " << ierr;
598 for (
unsigned int l =
k + 1;
l < allJacobians.size(); ++
l) {
601 tempJacobian = allJacobians[
l] * allCurvatureChanges[
l] * tempJacobian;
602 tempMSJacProj = (allProjections[
l] * (tempJacobian * allLocalToCurv[
k - 1].inverse(ierr))) * MSprojection.T();
604 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsBp" 605 <<
"Inversion 2 for break points failed: " << ierr;
621 const std::vector<AlgebraicMatrix> &allProjections,
622 const std::vector<AlgebraicSymMatrix> &allCurvatureChanges,
623 const std::vector<AlgebraicSymMatrix> &allDeltaParameterCovs,
624 const std::vector<AlgebraicMatrix> &allLocalToCurv,
635 int offsetMeas =
nMeasPerHit * allCurvlinJacobians.size();
639 double cosLambda =
sqrt((
p.x() *
p.x() +
p.y() *
p.y()) / (
p.x() *
p.x() +
p.y() *
p.y() +
p.z() *
p.z()));
643 QbypToCurv[0][0] = 1.;
645 AngleToCurv[1][1] = 1.;
646 AngleToCurv[2][0] = 1. / cosLambda;
648 CurvToAngle[1][1] = 1.;
649 CurvToAngle[0][2] = cosLambda;
651 OffsetToCurv[3][0] = 1.;
652 OffsetToCurv[4][1] = 1.;
654 CurvToOffset[0][3] = 1.;
655 CurvToOffset[1][4] = 1.;
659 TrajToQbyp[0][0] = 1.;
661 TrajToOff1[0][1] = 1.;
662 TrajToOff1[1][2] = 1.;
664 TrajToOff2[0][3] = 1.;
665 TrajToOff2[1][4] = 1.;
668 AlgebraicMatrix JacCurvToOffsetL, JacOffsetToOffsetL, JacAngleToOffsetL, JacQbypToOffsetL, JacOffsetToAngleL;
669 AlgebraicMatrix JacCurvToOffsetN, JacOffsetToOffsetN, JacAngleToOffsetN, JacQbypToOffsetN, JacOffsetToAngleN;
673 JacCurvToOffsetN = CurvToOffset * allCurvlinJacobians[1];
674 JacOffsetToOffsetN = JacCurvToOffsetN * OffsetToCurv;
676 JacCurvToOffsetN * AngleToCurv;
677 JacQbypToOffsetN = JacCurvToOffsetN * QbypToCurv;
678 JacOffsetToAngleN = JacAngleToOffsetN.inverse(ierr);
680 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsBrl" 681 <<
"Inversion 1 for fine broken lines failed: " << ierr;
684 JacOffsetToAngleC = -(JacOffsetToAngleN * JacOffsetToOffsetN);
685 JacQbypToAngleC = -(JacOffsetToAngleN * JacQbypToOffsetN);
688 JacQbypToAngleC * TrajToQbyp + JacOffsetToAngleC * TrajToOff1 + JacOffsetToAngleN * TrajToOff2;
693 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsBrl" 694 <<
"Inversion 2 for fine broken lines failed: " << ierr;
705 for (
unsigned int k = 0;
k < allCurvlinJacobians.size(); ++
k) {
707 JacOffsetToMeas = (allProjections[
k] * allLocalToCurv[
k].inverse(ierr)) * OffsetToCurv;
709 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsBrl" 710 <<
"Inversion 3 for fine broken lines failed: " << ierr;
720 for (
unsigned int k = 1;
k < allCurvlinJacobians.size() - 1; ++
k) {
727 tempMSCov = allDeltaParameterCovs[
k].similarity(allLocalToCurv[
k]);
728 tempMSCovProj = tempMSCov.similarity(CurvToAngle);
734 tempJacL = allCurvlinJacobians[
k] * tempJacobian;
735 JacCurvToOffsetL = CurvToOffset * tempJacL.inverse(ierr);
738 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsBrl" 739 <<
"Inversion 4 for fine broken lines failed: " << ierr;
743 JacCurvToOffsetL * OffsetToCurv;
745 JacCurvToOffsetL * AngleToCurv;
747 JacCurvToOffsetL * QbypToCurv;
748 JacOffsetToAngleL = -JacAngleToOffsetL.inverse(ierr);
750 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsBrl" 751 <<
"Inversion 5 for fine broken lines failed: " << ierr;
754 tempJacobian = tempJacobian * allCurvatureChanges[
k];
755 tempJacN = allCurvlinJacobians[
n] * tempJacobian;
756 JacCurvToOffsetN = CurvToOffset * tempJacN;
758 JacCurvToOffsetN * OffsetToCurv;
760 JacCurvToOffsetN * AngleToCurv;
762 JacCurvToOffsetN * QbypToCurv;
763 JacOffsetToAngleN = JacAngleToOffsetN.inverse(ierr);
765 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsBrl" 766 <<
"Inversion 6 for fine broken lines failed: " << ierr;
769 JacOffsetToAngleC = -(JacOffsetToAngleL * JacOffsetToOffsetL + JacOffsetToAngleN * JacOffsetToOffsetN);
770 JacQbypToAngleC = -(JacOffsetToAngleL * JacQbypToOffsetL + JacOffsetToAngleN * JacQbypToOffsetN);
799 const std::vector<AlgebraicSymMatrix> &allDeltaParameterCovs,
800 const std::vector<AlgebraicMatrix> &allLocalToCurv,
801 const std::vector<double> &allSteps,
803 const double minStep) {
814 double cosLambda =
sqrt((
p.x() *
p.x() +
p.y() *
p.y()) / (
p.x() *
p.x() +
p.y() *
p.y() +
p.z() *
p.z()));
818 double delta(1.0 / allSteps[1]);
829 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsBrl" 830 <<
"Inversion 1 for coarse broken lines failed: " << ierr;
835 CurvToAngle[1][1] = 1.;
836 CurvToAngle[0][2] = cosLambda;
838 OffsetToCurv[3][0] = 1.;
839 OffsetToCurv[4][1] = 1.;
846 std::vector<unsigned int>
first(allSteps.size());
847 std::vector<unsigned int>
last(allSteps.size());
848 std::vector<unsigned int> plane(allSteps.size());
849 std::vector<double> sPlane(allSteps.size());
850 unsigned int nPlane = 0;
853 for (
unsigned int k = 1;
k < allSteps.size(); ++
k) {
855 if (fabs(allSteps[
k]) > minStep) {
861 sPlane[nPlane] += sTot;
868 for (
unsigned int k = 0;
k <= nPlane; ++
k) {
874 for (
unsigned int k = 0;
k < allSteps.size(); ++
k) {
877 JacOffsetToMeas = (allProjections[
k] * allLocalToCurv[
k].inverse(ierr)) * OffsetToCurv;
879 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsBrl" 880 <<
"Inversion 2 for coarse broken lines failed: " << ierr;
884 unsigned int iPlane = plane[
k];
892 if (fabs(sTot) < fabs(sPlane[iPlane])) {
893 jPlane = (iPlane > 0) ? iPlane - 1 : 1;
895 jPlane = (iPlane < nPlane) ? iPlane + 1 : nPlane - 1;
898 double sDiff = sPlane[iPlane] - sPlane[jPlane];
899 double iFrac = (sTot - sPlane[jPlane]) / sDiff;
900 double jFrac = 1.0 - iFrac;
915 for (
unsigned int i = 1;
i < nPlane; ++
i) {
923 tempMSCov = allDeltaParameterCovs[
k].similarity(allLocalToCurv[
k]);
924 tempMSCovProj = tempMSCov.similarity(CurvToAngle);
930 double stepK = sPlane[
i] - sPlane[
l];
931 double stepN = sPlane[
n] - sPlane[
i];
932 double deltaK(1.0 / stepK);
933 double deltaN(1.0 / stepN);
953 const std::vector<AlgebraicMatrix> &allProjections,
954 const std::vector<AlgebraicSymMatrix> &allCurvatureChanges,
955 const std::vector<AlgebraicSymMatrix> &allDeltaParameterCovs) {
966 const double minPrec = 0.3;
969 OffsetToLocal[3][0] = 1.;
970 OffsetToLocal[4][1] = 1.;
972 SlopeToLocal[1][0] = 1.;
973 SlopeToLocal[2][1] = 1.;
978 auto identity = Matrix5d::Identity();
980 auto scatterer = Eigen::Vector2d::Zero();
985 unsigned int numHits = allJacobians.size();
986 std::vector<GblPoint> GblPointList;
987 GblPointList.reserve(numHits);
988 for (
unsigned int k = 0;
k < numHits; ++
k) {
990 clhep2eigen(allJacobians[
k] * allCurvatureChanges[
k], jacPointToPoint);
993 GblPoint aGblPoint(jacPointToPoint);
996 clhep2eigen(allProjections[
k] * OffsetToLocal, proLocalToMeas);
1008 for (
unsigned int row = 0; row < 2; ++row) {
1009 measPrecDiag(row) = (0. < covariance(row, row) ? 1.0 / covariance(row, row) : 0.);
1011 aGblPoint.addMeasurement(proLocalToMeas, measurement, measPrecDiag, minPrec);
1014 aGblPoint.addMeasurement(proLocalToMeas, measurement, covariance.inverse(), minPrec);
1018 clhep2eigen(allDeltaParameterCovs[
k].similarityT(SlopeToLocal), scatPrecision);
1019 if (!(scatPrecision.colPivHouseholderQr().isInvertible())) {
1021 throw cms::Exception(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsLocalGbl" 1022 <<
"\nEncountered singular scatter covariance-matrix without allowing " 1023 <<
"for zero material.";
1027 aGblPoint.addScatterer(scatterer,
Eigen::Matrix2d(scatPrecision.inverse()));
1030 GblPointList.push_back(aGblPoint);
1041 const std::vector<AlgebraicMatrix> &allProjections,
1042 const std::vector<AlgebraicSymMatrix> &allCurvatureChanges,
1043 const std::vector<AlgebraicSymMatrix> &allDeltaParameterCovs,
1044 const std::vector<AlgebraicMatrix> &allLocalToCurv) {
1055 const double minPrec = 0.3;
1059 OffsetToCurv[3][0] = 1.;
1060 OffsetToCurv[4][1] = 1.;
1066 Matrix5d jacPointToPoint, firstLocalToCurv;
1068 auto scatterer = Eigen::Vector2d::Zero();
1071 unsigned int numHits = allCurvlinJacobians.size();
1072 std::vector<GblPoint> GblPointList;
1073 GblPointList.reserve(numHits);
1074 for (
unsigned int k = 0;
k < numHits; ++
k) {
1076 JacOffsetToMeas = (allProjections[
k] * allLocalToCurv[
k].inverse(ierr)) * OffsetToCurv;
1078 edm::LogError(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsGbl" 1079 <<
"Inversion 1 for general broken lines failed: " << ierr;
1084 clhep2eigen(allCurvlinJacobians[
k] * allCurvatureChanges[
k], jacPointToPoint);
1087 GblPoint aGblPoint(jacPointToPoint);
1102 for (
unsigned int row = 0; row < 2; ++row) {
1103 measPrecDiag(row) = (0. < covariance(row, row) ? 1.0 / covariance(row, row) : 0.);
1105 aGblPoint.addMeasurement(proLocalToMeas, measurement, measPrecDiag, minPrec);
1108 aGblPoint.addMeasurement(proLocalToMeas, measurement, covariance.inverse(), minPrec);
1112 tempMSCov = allDeltaParameterCovs[
k].similarity(allLocalToCurv[
k]);
1113 for (
unsigned int row = 0; row < 2; ++row) {
1114 scatPrecDiag(row) = 1.0 / tempMSCov[row + 1][row + 1];
1118 bool singularCovariance{
false};
1119 for (
int row = 0; row < scatPrecDiag.rows(); ++row) {
1121 singularCovariance =
true;
1126 throw cms::Exception(
"Alignment") <<
"@SUB=ReferenceTrajectory::addMaterialEffectsCurvlinGbl" 1127 <<
"\nEncountered singular scatter covariance-matrix without allowing " 1128 <<
"for zero material.";
1135 GblPointList.push_back(aGblPoint);
1139 theGblInput.push_back(std::make_pair(GblPointList, firstLocalToCurv));
1145 template <
typename Derived>
1147 static_assert(Derived::ColsAtCompileTime == 1,
"clhep2eigen: 'out' must be of vector type");
1148 for (
int row = 0; row <
in.num_row(); ++row) {
1153 template <
typename Derived>
1155 for (
int row = 0; row <
in.num_row(); ++row) {
1162 template <
typename Derived>
1164 for (
int row = 0; row <
in.num_row(); ++row) {
1177 switch (hitPtr->dimension()) {
1179 return getHitProjectionMatrixT<1>(hitPtr);
1181 return getHitProjectionMatrixT<2>(hitPtr);
1183 return getHitProjectionMatrixT<3>(hitPtr);
1185 return getHitProjectionMatrixT<4>(hitPtr);
1187 return getHitProjectionMatrixT<5>(hitPtr);
1189 throw cms::Exception(
"ReferenceTrajectory::getHitProjectionMatrix")
1190 <<
"Unexpected hit dimension: " << hitPtr->dimension() <<
"\n";
1199 template <
unsigned int N>
1214 holder.
setup<
N>(&
r, &
V, &
pf, &rMeas, &VMeas, dummyPars, dummyErr);
1215 hitPtr->getKfComponents(holder);
void setup(typename AlgebraicROOTObject< D >::Vector *params, typename AlgebraicROOTObject< D, D >::SymMatrix *errors, ProjectMatrix< double, 5, D > *projFunc, typename AlgebraicROOTObject< D >::Vector *measuredParams, typename AlgebraicROOTObject< D, D >::SymMatrix *measuredErrors, const AlgebraicVector5 &tsosLocalParameters, const AlgebraicSymMatrix55 &tsosLocalErrors)
AlgebraicMatrix theInnerTrajectoryToCurvilinear
MaterialEffectsUpdator * createUpdator(MaterialEffects materialEffects, double mass) const
Vector3DBase< typename PreciseFloatType< T, U >::Type, FrameTag > cross(const Vector3DBase< U, FrameTag > &v) const
Eigen::Matrix< double, 5, 5 > Matrix5d
virtual bool addMaterialEffectsBrl(const std::vector< AlgebraicMatrix > &allJacobians, const std::vector< AlgebraicMatrix > &allProjections, const std::vector< AlgebraicSymMatrix > &allCurvChanges, const std::vector< AlgebraicSymMatrix > &allDeltaParaCovs, const std::vector< AlgebraicMatrix > &allLocalToCurv, const GlobalTrajectoryParameters >p)
const LocalTrajectoryError & localError() const
ROOT::Math::SMatrix< double, D1, D1, ROOT::Math::MatRepSym< double, D1 > > SymMatrix
AlgebraicROOTObject< D, 5 >::Matrix projection()
const bool allowZeroMaterial_
AlgebraicMatrix theInnerLocalToTrajectory
float signedInverseMomentum() const
Signed inverse momentum q/p (zero for neutrals).
GlobalPoint position() const
AlgebraicMatrix getHitProjectionMatrixT(const TransientTrackingRecHit::ConstRecHitPointer &recHit) const
virtual void fillMeasurementAndError(const TransientTrackingRecHit::ConstRecHitPointer &hitPtr, unsigned int iRow, const TrajectoryStateOnSurface &updatedTsos)
AlgebraicMatrix theDerivatives
unsigned int theNumberOfVirtualPars
Geom::Phi< T > phi() const
const GlobalTrajectoryParameters & globalParameters() const
unsigned int theNumberOfVirtualMeas
virtual bool addMaterialEffectsLocalGbl(const std::vector< AlgebraicMatrix > &allJacobians, const std::vector< AlgebraicMatrix > &allProjections, const std::vector< AlgebraicSymMatrix > &allCurvatureChanges, const std::vector< AlgebraicSymMatrix > &allDeltaParameterCovs)
const LocalTrajectoryParameters & localParameters() const
Log< level::Error, false > LogError
void clhep2eigen(const AlgebraicVector &in, Eigen::MatrixBase< Derived > &out)
const SurfaceType & surface() const
AlgebraicVector theParameters
AlgebraicVector theMeasurements
virtual bool addMaterialEffectsBp(const std::vector< AlgebraicMatrix > &allJacobians, const std::vector< AlgebraicMatrix > &allProjections, const std::vector< AlgebraicSymMatrix > &allCurvChanges, const std::vector< AlgebraicSymMatrix > &allDeltaParaCovs, const std::vector< AlgebraicMatrix > &allLocalToCurv)
static PlanePointer build(Args &&... args)
GlobalVector momentum() const
virtual bool construct(const TrajectoryStateOnSurface &referenceTsos, const TransientTrackingRecHit::ConstRecHitContainer &recHits, const MagneticField *magField, const reco::BeamSpot &beamSpot)
const PropagationDirection propDir_
AlgebraicSymMatrix theTrajectoryPositionCov
std::vector< std::pair< std::vector< gbl::GblPoint >, Eigen::MatrixXd > > theGblInput
virtual bool addMaterialEffectsCurvlinGbl(const std::vector< AlgebraicMatrix > &allJacobians, const std::vector< AlgebraicMatrix > &allProjections, const std::vector< AlgebraicSymMatrix > &allCurvChanges, const std::vector< AlgebraicSymMatrix > &allDeltaParaCovs, const std::vector< AlgebraicMatrix > &allLocalToCurv)
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t V
CLHEP::HepMatrix AlgebraicMatrix
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
GlobalVector momentum() const
Abs< T >::type abs(const T &t)
ROOT::Math::SVector< double, 5 > AlgebraicVector5
AlgebraicMatrix getHitProjectionMatrix(const TransientTrackingRecHit::ConstRecHitPointer &recHit) const
ReferenceTrajectory(const TrajectoryStateOnSurface &referenceTsos, const TransientTrackingRecHit::ConstRecHitContainer &recHits, const MagneticField *magField, const reco::BeamSpot &beamSpot, const ReferenceTrajectoryBase::Config &config)
unsigned int theNumberOfHits
AlgebraicVector theTrajectoryPositions
virtual void fillDerivatives(const AlgebraicMatrix &projection, const AlgebraicMatrix &fullJacobian, unsigned int iRow)
const MaterialEffects materialEffects_
virtual std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &, const Surface &) const final
GlobalVector magneticFieldInInverseGeV(const GlobalPoint &x) const
TransientTrackingRecHit::ConstRecHitContainer theRecHits
std::vector< ConstRecHitPointer > ConstRecHitContainer
AlgebraicSymMatrix theMeasurementsCov
CLHEP::HepVector AlgebraicVector
AlgebraicVector5 mixedFormatVector() const
const Plane & surface() const
The nominal surface of the GeomDet.
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
static constexpr unsigned int nMeasPerHit
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
LocalError const & localAlignmentError() const
Return local alligment error.
ROOT::Math::SVector< double, D1 > Vector
SurfaceSide surfaceSide(const PropagationDirection dir) const
const AlgebraicSymMatrix55 & matrix() const
CLHEP::HepSymMatrix AlgebraicSymMatrix
std::vector< TrajectoryStateOnSurface > theTsosVec
FreeTrajectoryState const * freeState(bool withErrors=true) const
virtual bool propagate(const Plane &previousSurface, const TrajectoryStateOnSurface &previousTsos, const Plane &newSurface, TrajectoryStateOnSurface &newTsos, AlgebraicMatrix &newJacobian, AlgebraicMatrix &newCurvlinJacobian, double &nextStep, const MagneticField *magField) const
virtual bool addMaterialEffectsCov(const std::vector< AlgebraicMatrix > &allJacobians, const std::vector< AlgebraicMatrix > &allProjections, const std::vector< AlgebraicSymMatrix > &allCurvChanges, const std::vector< AlgebraicSymMatrix > &allDeltaParaCovs)
virtual void fillTrajectoryPositions(const AlgebraicMatrix &projection, const AlgebraicVector &mixedLocalParams, unsigned int iRow)
const AlgebraicVector & parameters() const
const TransientTrackingRecHit::ConstRecHitContainer & recHits() const
int nominalValue() const
The nominal field value for this map in kGauss.
unsigned int theNumberOfPars
MultipleScatteringUpdator
TupleMultiplicity< TrackerTraits > const *__restrict__ uint32_t nHits
bool useRecHit(const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const