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
95579576
Commit
95579576
authored
7 months ago
by
Alexandru Bercuci
Browse files
Options
Downloads
Patches
Plain Diff
mark unsuccessful vertex fit with out of scope values
parent
52a6f06a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1939
Reco QA - primary vertex
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reco/KF/CbmKFPrimaryVertexFinder.cxx
+13
-7
13 additions, 7 deletions
reco/KF/CbmKFPrimaryVertexFinder.cxx
with
13 additions
and
7 deletions
reco/KF/CbmKFPrimaryVertexFinder.cxx
+
13
−
7
View file @
95579576
...
...
@@ -65,8 +65,8 @@ void CbmKFPrimaryVertexFinder::Fit(CbmKFVertexInterface& vtx)
C
[
5
]
=
(
t
.
dz
/
2
/
3.5
)
*
(
t
.
dz
/
2
/
3.5
);
}
int
fitIterSuccess
=
0
;
// no. of successful calculations of the vertex position out of requested MaxIter.
//* Iteratively fit vertex - number of iterations fixed at MaxIter
for
(
Int_t
iteration
=
0
;
iteration
<
MaxIter
;
++
iteration
)
{
//* Store vertex from previous iteration
...
...
@@ -194,15 +194,21 @@ void CbmKFPrimaryVertexFinder::Fit(CbmKFVertexInterface& vtx)
C
[
3
]
-=
K
[
2
][
0
]
*
CHt
[
0
][
0
]
+
K
[
2
][
1
]
*
CHt
[
0
][
1
];
C
[
4
]
-=
K
[
2
][
0
]
*
CHt
[
1
][
0
]
+
K
[
2
][
1
]
*
CHt
[
1
][
1
];
C
[
5
]
-=
K
[
2
][
0
]
*
CHt
[
2
][
0
]
+
K
[
2
][
1
]
*
CHt
[
2
][
1
];
}
//* itr
}
//* itr
if
(
vtx
.
GetRefNTracks
())
fitIterSuccess
++
;
// mark success of this iteration for vertex calculation
}
//* finished iterations
//* Copy state vector to output (covariance matrix was used directly )
vtx
.
GetRefX
()
=
r
[
0
];
vtx
.
GetRefY
()
=
r
[
1
];
vtx
.
GetRefZ
()
=
r
[
2
];
if
(
fitIterSuccess
)
{
// store successful PV calculation. May include also a reference to MaxIter (AB 17.10.2024)
vtx
.
GetRefX
()
=
r
[
0
];
vtx
.
GetRefY
()
=
r
[
1
];
vtx
.
GetRefZ
()
=
r
[
2
];
}
else
{
vtx
.
GetRefX
()
=
-
999
;
vtx
.
GetRefY
()
=
-
999
;
vtx
.
GetRefZ
()
=
-
999
;
}
}
int
CbmKFPrimaryVertexFinder
::
GetUsedTracks
(
std
::
vector
<
uint32_t
>&
idx
)
const
...
...
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