Skip to content

Commit 0046df0

Browse files
authored
Merge pull request cms-sw#43350 from leonardogiannini/material-order
[mkFit] Apply material effects after error propagation
2 parents ae1100e + 0dcc92c commit 0046df0

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

RecoTracker/MkFitCore/src/PropagationMPlex.cc

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,12 @@ namespace mkfit {
548548
}
549549
#endif
550550

551+
// MultHelixProp can be optimized for CCS coordinates, see GenMPlexOps.pl
552+
MPlexLL temp;
553+
MultHelixProp(errorProp, outErr, temp);
554+
MultHelixPropTransp(errorProp, temp, outErr);
555+
// can replace with: MultHelixPropFull(errorProp, outErr, temp); MultHelixPropTranspFull(errorProp, temp, outErr);
556+
551557
if (pflags.apply_material) {
552558
MPlexQF hitsRl;
553559
MPlexQF hitsXi;
@@ -581,13 +587,6 @@ namespace mkfit {
581587

582588
squashPhiMPlex(outPar, N_proc); // ensure phi is between |pi|
583589

584-
// MultHelixProp can be optimized for CCS coordinates, see GenMPlexOps.pl
585-
MPlexLL temp;
586-
MultHelixProp(errorProp, outErr, temp);
587-
MultHelixPropTransp(errorProp, temp, outErr);
588-
// MultHelixPropFull(errorProp, outErr, temp);
589-
// MultHelixPropTranspFull(errorProp, temp, outErr);
590-
591590
// Matriplex version of:
592591
// result.errors = ROOT::Math::Similarity(errorProp, outErr);
593592

@@ -679,6 +678,12 @@ namespace mkfit {
679678
}
680679
#endif
681680

681+
// Matriplex version of: result.errors = ROOT::Math::Similarity(errorProp, outErr);
682+
MPlexLL temp;
683+
MultHelixPropEndcap(errorProp, outErr, temp);
684+
MultHelixPropTranspEndcap(errorProp, temp, outErr);
685+
// can replace with: MultHelixPropFull(errorProp, outErr, temp); MultHelixPropTranspFull(errorProp, temp, outErr);
686+
682687
if (pflags.apply_material) {
683688
MPlexQF hitsRl;
684689
MPlexQF hitsXi;
@@ -736,14 +741,6 @@ namespace mkfit {
736741

737742
squashPhiMPlex(outPar, N_proc); // ensure phi is between |pi|
738743

739-
// Matriplex version of:
740-
// result.errors = ROOT::Math::Similarity(errorProp, outErr);
741-
MPlexLL temp;
742-
MultHelixPropEndcap(errorProp, outErr, temp);
743-
MultHelixPropTranspEndcap(errorProp, temp, outErr);
744-
// MultHelixPropFull(errorProp, outErr, temp);
745-
// MultHelixPropTranspFull(errorProp, temp, outErr);
746-
747744
// PROP-FAIL-ENABLE To keep physics changes minimal, we always restore the
748745
// state to input when propagation fails -- as was the default before.
749746
// if (pflags.copy_input_state_on_fail) {

0 commit comments

Comments
 (0)