Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
1289fcdd
Commit
1289fcdd
authored
2 years ago
by
Sergey Gorbunov
Browse files
Options
Downloads
Patches
Plain Diff
L1: bugfix in filtration
parent
382140f0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!924
L1: bugfix in filtration
Pipeline
#18424
passed
2 years ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reco/L1/L1Algo/L1Filtration.h
+4
-4
4 additions, 4 deletions
reco/L1/L1Algo/L1Filtration.h
with
4 additions
and
4 deletions
reco/L1/L1Algo/L1Filtration.h
+
4
−
4
View file @
1289fcdd
...
...
@@ -42,7 +42,7 @@ inline void FilterTime(L1TrackPar& T, fvec t, fvec dt, fvec timeInfo = 1., fvec
fvec
wi
=
w
/
(
dt2
+
1
.
0000001
f
*
HCH
);
fvec
zeta
=
T
.
t
-
t
;
fvec
zetawi
=
zeta
/
((
maskDoFilter
&
dt2
)
+
HCH
);
fvec
zetawi
=
w
*
zeta
/
((
maskDoFilter
&
dt2
)
+
HCH
);
//T.chi2 += maskDoFilter & (zeta * zetawi);
T
.
chi2
+=
zeta
*
zeta
*
wi
;
...
...
@@ -106,14 +106,14 @@ inline void L1Filter(L1TrackPar& T, const L1UMeasurementInfo& info, fvec u, fvec
// it helps to keep the initial track errors reasonably small
// the calculations in the covariance matrix are not affected
//
const fvec maskDoFilter = (HCH < info.sigma2 * 16.f);
const
fvec
maskDoFilter
=
_f32vec4_true
;
const
fvec
maskDoFilter
=
(
HCH
<
info
.
sigma2
*
16
.
f
);
//
const fvec maskDoFilter = _f32vec4_true;
// correction to HCH is needed for the case when sigma2 is so small
// with respect to HCH that it disappears due to the roundoff error
//
fvec
wi
=
w
/
(
info
.
sigma2
+
1
.
0000001
f
*
HCH
);
fvec
zetawi
=
zeta
/
((
maskDoFilter
&
info
.
sigma2
)
+
HCH
);
fvec
zetawi
=
w
*
zeta
/
((
maskDoFilter
&
info
.
sigma2
)
+
HCH
);
// T.chi2 += maskDoFilter & (zeta * zetawi);
T
.
chi2
+=
zeta
*
zeta
*
wi
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment