Skip to content

Commit 48a8598

Browse files
code checks/format
1 parent e6b9877 commit 48a8598

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

RecoTracker/MkFitCore/src/MkFinder.cc

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,8 @@ namespace mkfit {
984984
for (bidx_t pi = pb1; pi != pb2; pi = L.phiMaskApply(pi + 1)) {
985985
// Limit to central Q-bin
986986
if (qi == qb && L.isBinDead(pi, qi) == true) {
987-
dprint("dead module for track in layer=" << L.layer_id() << " qb=" << qi << " pi=" << pi
988-
<< " q=" << B.m_q_center[itrack] << " phi=" << B.m_phi_center[itrack]);
987+
dprint("dead module for track in layer=" << L.layer_id() << " qb=" << qi << " pi=" << pi << " q="
988+
<< B.m_q_center[itrack] << " phi=" << B.m_phi_center[itrack]);
989989
m_XWsrResult[itrack].m_in_gap = true;
990990
}
991991

@@ -2456,9 +2456,9 @@ namespace mkfit {
24562456
MPlexQF tmp_chi2;
24572457
MPlexQI done_flag(0);
24582458

2459-
MPlexHV plNrm; // input detector plane [pl - plane]
2460-
MPlexHV plDir; // ""
2461-
MPlexHV plPnt; // ""
2459+
MPlexHV plNrm; // input detector plane [pl - plane]
2460+
MPlexHV plDir; // ""
2461+
MPlexHV plPnt; // ""
24622462

24632463
#if defined(DEBUG_PROP_UPDATE)
24642464
const int DSLOT = 0;
@@ -2469,7 +2469,6 @@ namespace mkfit {
24692469

24702470
int done_count = 0;
24712471
while (done_count != N_proc) {
2472-
24732472
#if defined(DEBUG_BACKWARD_FIT)
24742473
const Hit *last_hit_ptr[NN];
24752474
#endif
@@ -2568,13 +2567,13 @@ namespace mkfit {
25682567

25692568
// Fixup for failed propagation.
25702569
// for (int i = 0; i < NN; ++i) {
2571-
// PROP-FAIL-ENABLE The following to be enabled when propagation failure
2572-
// detection is properly implemented in propagate-to-R/Z.
2573-
// 1. The following code was only expecting barrel state to be restored.
2574-
// auto barrel_pf(m_prop_config->backward_fit_pflags);
2575-
// barrel_pf.copy_input_state_on_fail = true;
2576-
// 2. There is also check on chi2, commented out to keep physics changes minimal.
2577-
/*
2570+
// PROP-FAIL-ENABLE The following to be enabled when propagation failure
2571+
// detection is properly implemented in propagate-to-R/Z.
2572+
// 1. The following code was only expecting barrel state to be restored.
2573+
// auto barrel_pf(m_prop_config->backward_fit_pflags);
2574+
// barrel_pf.copy_input_state_on_fail = true;
2575+
// 2. There is also check on chi2, commented out to keep physics changes minimal.
2576+
/*
25782577
if (m_FailFlag[i] && LI.is_barrel()) {
25792578
// Barrel pflags are set to include PF_copy_input_state_on_fail.
25802579
// Endcap errors are immaterial here (relevant for fwd search), with prop error codes

RecoTracker/MkFitCore/src/PropagationMPlexPlane.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ namespace {
372372
float p0[3] = {cosP / ipt, sinP / ipt, cosT / ip};
373373
float B = (p0[0] * eta0 + p0[1] * eta1 + p0[2] * eta2) * ip;
374374
float rho = kinv * ip;
375-
float C = - (eta0 * p0[1] - eta1 * p0[0]) * rho * 0.5f * ip;
375+
float C = -(eta0 * p0[1] - eta1 * p0[0]) * rho * 0.5f * ip;
376376
float sqb2m4ac = std::sqrt(B * B - 4.f * A * C);
377377
float s1 = (-B + sqb2m4ac) * 0.5f / C;
378378
float s2 = (-B - sqb2m4ac) * 0.5f / C;

0 commit comments

Comments
 (0)