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
Commits
32d4fcb3
Commit
32d4fcb3
authored
11 months ago
by
Luke McElhinney
Browse files
Options
Downloads
Patches
Plain Diff
Remove redundant cast
parent
ca736df6
No related branches found
No related tags found
2 merge requests
!70762
2024-04-22: merge of 24.0 into main
,
!63422
Add tool for fitting GN2 vertices
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Reconstruction/VKalVrt/GNNVertexFitter/Root/GNNVertexFitterTool.cxx
+13
-16
13 additions, 16 deletions
...tion/VKalVrt/GNNVertexFitter/Root/GNNVertexFitterTool.cxx
with
13 additions
and
16 deletions
Reconstruction/VKalVrt/GNNVertexFitter/Root/GNNVertexFitterTool.cxx
+
13
−
16
View file @
32d4fcb3
...
...
@@ -17,7 +17,7 @@ GNNVertexFitterTool::GNNVertexFitterTool(const std::string &type, const std::str
m_multiWithPrimary
(
true
),
m_minLxy
(
1
),
m_maxLxy
(
300
),
m_minSig3D
(
2
0
),
m_minSig3D
(
2
),
m_maxChi2
(
20
),
m_minNTrack
(
2
),
m_HFTrackRatio
(
true
),
...
...
@@ -54,8 +54,8 @@ StatusCode GNNVertexFitterTool::initialize() {
m_jetWriteDecorKeyVertexLink
=
m_jetCollection
+
"."
+
m_gnnModel
+
"VerticesLink"
;
ATH_CHECK
(
m_jetWriteDecorKeyVertexLink
.
initialize
());
m_jetWriteDecorKeyVertexNumber
=
m_jetCollection
+
"."
+
m_gnnModel
+
"VerticesNumber"
;
ATH_CHECK
(
m_jetWriteDecorKeyVertexNumber
.
initialize
());
//
m_jetWriteDecorKeyVertexNumber = m_jetCollection + "."+m_gnnModel+"VerticesNumber";
//
ATH_CHECK(m_jetWriteDecorKeyVertexNumber.initialize());
// Retrieve tools
ATH_CHECK
(
m_vertexFitterTool
.
retrieve
());
...
...
@@ -152,7 +152,7 @@ StatusCode GNNVertexFitterTool::fitAllVertices(const xAOD::JetContainer *inJetCo
vertexHFMap
HeavyFlavourTracksMap
;
// Map with does a vertex contain at least 1 heavy flavour track
trackCountMap
AllTracksMap
;
// All the vertices and the corresponding track links
trackCountMap
HeavyFlavourVertexMap
;
// All H
E
avy Flavour Tracks associated with a vertex
trackCountMap
HeavyFlavourVertexMap
;
// All H
e
avy Flavour Tracks associated with a vertex
trackCountMap
FittingMap
;
// Map filled with vertices to be fitted
FittingMap
.
clear
();
...
...
@@ -292,9 +292,10 @@ StatusCode GNNVertexFitterTool::fitAllVertices(const xAOD::JetContainer *inJetCo
double
distToPV
=
vrtVrtDist
(
primVrt
,
newvrt
.
vertex
,
newvrt
.
vertexCov
,
signif3D
);
ATH_MSG_INFO
(
"
PERP "
<<
distToPV
<<
" L3d "
<<
Lxyz
);
ATH_MSG_INFO
(
newvrt
.
vertex
.
perp
()
<<
"
PERP "
<<
distToPV
<<
" L3d "
<<
Lxyz
);
ATH_MSG_INFO
(
"SIG "
<<
signif3D
);
//ATH_MSG_INFO("SIG " << signif3D);
// apply quality cuts
if
(
ntrk
<
m_minNTrack
)
continue
;
...
...
@@ -302,7 +303,7 @@ StatusCode GNNVertexFitterTool::fitAllVertices(const xAOD::JetContainer *inJetCo
continue
;
if
(
newvrt
.
vertex
.
perp
()
<
m_minLxy
)
continue
;
if
(
signif3D
<
m_minSig3D
&&
newvrt
.
vertex
.
perp
()
>
24.0
)
if
(
Lxyz
<
m_minSig3D
&&
newvrt
.
vertex
.
perp
()
>
24.0
)
continue
;
// if (newvrt.vertex.perp() > m_Rbeampipe && Signif3D < m_minSig3D)
...
...
@@ -312,21 +313,17 @@ StatusCode GNNVertexFitterTool::fitAllVertices(const xAOD::JetContainer *inJetCo
// if (newvrt.vertex.perp() < m_minPerp)
// Make New Container
xAOD
::
Vertex
*
GNNvertex
=
new
xAOD
::
Vertex
;
//xAOD::Vertex *GNNvertex = new xAOD::Vertex;
outVertexContainer
->
emplace_back
(
GNNvertex
);
//
outVertexContainer->emplace_back(GNNvertex);
//auto* GNNvertex = outVertexContainer->emplace_back(new xAOD::Vertex);
// Register Container
auto
*
GNNvertex
=
outVertexContainer
->
emplace_back
(
new
xAOD
::
Vertex
);
// Registering tracks comprising the vertex to xAOD::Vertex
// loop over the tracks comprising the vertex
for
(
const
auto
*
trk
:
xAODwrk
->
listSelTracks
)
{
// Acquire link the track to the vertex
ElementLink
<
xAOD
::
TrackParticleContainer
>
link_trk
(
*
(
dynamic_cast
<
const
xAOD
::
TrackParticleContainer
*>
(
trk
->
container
())),
static_cast
<
long
unsigned
int
>
(
trk
->
index
()));
// Register the link to the vertex
trk
->
index
());
GNNvertex
->
addTrackAtVertex
(
link_trk
,
1.
);
}
...
...
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