Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
atlas
athena
Merge requests
!71010
Fix a few bugs in SecVertexTruthMatchAlg
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix a few bugs in SecVertexTruthMatchAlg
jburzyns/athena:jburzyns-fix-SecVtxTruthMatchTool-bugs
into
main
Overview
4
Commits
1
Pipelines
1
Changes
1
Merged
Jackson Carl Burzynski
requested to merge
jburzyns/athena:jburzyns-fix-SecVtxTruthMatchTool-bugs
into
main
11 months ago
Overview
4
Commits
1
Pipelines
1
Changes
1
Expand
Just a few minor bug fixes
Tagging
@nribaric
Edited
11 months ago
by
Jackson Carl Burzynski
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
073db763
1 commit,
11 months ago
1 file
+
14
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
PhysicsAnalysis/Algorithms/TrackingAnalysisAlgorithms/Root/SecVertexTruthMatchAlg.cxx
+
14
−
12
Options
@@ -31,7 +31,7 @@ namespace CP {
std
::
vector
<
std
::
string
>
recoTypes
{
"All"
,
"Matched"
,
"Merged"
,
"Fake"
,
"Split"
,
"Other"
};
std
::
vector
<
std
::
string
>
truthTypes
{
"Inclusive"
,
"Reconstructable"
,
"Accepted"
,
"Seeded"
,
"Reconstructed"
,
"ReconstructedSplit"
};
ANA_CHECK
(
book
(
TH1F
(
"RecoVertex/matchType"
,
"Vertex Match Type"
,
8
,
-
0.5
,
7
.5
)));
ANA_CHECK
(
book
(
TH1F
(
"RecoVertex/matchType"
,
"Vertex Match Type"
,
65
,
-
0.5
,
64
.5
)));
for
(
const
auto
&
recoType
:
recoTypes
)
{
ANA_CHECK
(
book
(
TH1F
((
"RecoVertex/"
+
recoType
+
"_x"
).
c_str
(),
"Reco vertex x [mm]"
,
1000
,
-
500
,
500
)));
@@ -75,7 +75,7 @@ namespace CP {
ANA_CHECK
(
book
(
TH1F
((
"RecoVertex/"
+
recoType
+
"_Trk_charge"
).
c_str
(),
"Reco track charge "
,
3
,
-
1.5
,
1.5
)));
// truth matching -- don't book for non-matched vertices
if
(
recoType
!=
"
Inclusive
"
and
recoType
!=
"Fake"
)
{
if
(
recoType
!=
"
All
"
and
recoType
!=
"Fake"
)
{
ANA_CHECK
(
book
(
TH1F
((
"RecoVertex/"
+
recoType
+
"_positionRes_R"
).
c_str
(),
"Position resolution for vertices matched to truth decays"
,
400
,
-
20
,
20
)));
ANA_CHECK
(
book
(
TH1F
((
"RecoVertex/"
+
recoType
+
"_positionRes_Z"
).
c_str
(),
"Position resolution for vertices matched to truth decays"
,
400
,
-
20
,
20
)));
ANA_CHECK
(
book
(
TH1F
((
"RecoVertex/"
+
recoType
+
"_matchScore_weight"
).
c_str
(),
"Vertex Match Score (weight)"
,
101
,
0
,
1.01
)));
@@ -343,19 +343,21 @@ namespace CP {
truthmatchinfo
=
matchInfoDecor
(
*
secVtx
);
// This includes all matched vertices, including splits
if
(
not
truthmatchinfo
.
empty
()){
float
matchScore_weight
=
std
::
get
<
1
>
(
truthmatchinfo
.
at
(
0
));
float
matchScore_pt
=
std
::
get
<
2
>
(
truthmatchinfo
.
at
(
0
));
if
(
matchType
!=
"All"
and
matchType
!=
"Fake"
)
{
if
(
not
truthmatchinfo
.
empty
()){
float
matchScore_weight
=
std
::
get
<
1
>
(
truthmatchinfo
.
at
(
0
));
float
matchScore_pt
=
std
::
get
<
2
>
(
truthmatchinfo
.
at
(
0
));
ATH_MSG_DEBUG
(
"Match Score and probability: "
<<
matchScore_weight
<<
" "
<<
matchScore_pt
/
0.01
);
ATH_MSG_DEBUG
(
"Match Score and probability: "
<<
matchScore_weight
<<
" "
<<
matchScore_pt
/
0.01
);
const
ElementLink
<
xAOD
::
TruthVertexContainer
>&
truthVertexLink
=
std
::
get
<
0
>
(
truthmatchinfo
.
at
(
0
));
const
xAOD
::
TruthVertex
&
truthVtx
=
**
truthVertexLink
;
const
ElementLink
<
xAOD
::
TruthVertexContainer
>&
truthVertexLink
=
std
::
get
<
0
>
(
truthmatchinfo
.
at
(
0
));
const
xAOD
::
TruthVertex
&
truthVtx
=
**
truthVertexLink
;
hist
(
"RecoVertex/"
+
matchType
+
"_positionRes_R"
)
->
Fill
(
Lxy
-
truthVtx
.
perp
());
hist
(
"RecoVertex/"
+
matchType
+
"_positionRes_Z"
)
->
Fill
(
secVtx
->
z
()
-
truthVtx
.
z
());
hist
(
"RecoVertex/"
+
matchType
+
"_matchScore_weight"
)
->
Fill
(
matchScore_weight
);
hist
(
"RecoVertex/"
+
matchType
+
"_matchScore_pt"
)
->
Fill
(
matchScore_pt
);
hist
(
"RecoVertex/"
+
matchType
+
"_positionRes_R"
)
->
Fill
(
Lxy
-
truthVtx
.
perp
());
hist
(
"RecoVertex/"
+
matchType
+
"_positionRes_Z"
)
->
Fill
(
secVtx
->
z
()
-
truthVtx
.
z
());
hist
(
"RecoVertex/"
+
matchType
+
"_matchScore_weight"
)
->
Fill
(
matchScore_weight
);
hist
(
"RecoVertex/"
+
matchType
+
"_matchScore_pt"
)
->
Fill
(
matchScore_pt
);
}
}
}
Loading