Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Moore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
LHCb
Moore
Commits
6e6e820c
Commit
6e6e820c
authored
10 months ago
by
Maarten Van Veghel
Committed by
Miroslav Saur
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Adding ProbNNs for Downstream, Upstream and ProbNNghost
parent
1f7088a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!4232
Run5: rebase, restructure run5 code, add back examples
,
!3528
Adding ProbNNs for Downstream, Upstream and ProbNNghost
,
!3504
Synchronize master branch with 2024-patches
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Hlt/RecoConf/python/RecoConf/protoparticles.py
+70
-33
70 additions, 33 deletions
Hlt/RecoConf/python/RecoConf/protoparticles.py
with
70 additions
and
33 deletions
Hlt/RecoConf/python/RecoConf/protoparticles.py
+
70
−
33
View file @
6e6e820c
...
...
@@ -27,12 +27,20 @@ from PyConf.Tools import (
ChargedProtoParticleAddCombineDLLs
,
)
from
PyConf.Tools
import
(
ChargedProtoParticleAddGlobalPID_Electron
,
ChargedProtoParticleAddGlobalPID_Muon
,
ChargedProtoParticleAddGlobalPID_Pion
,
ChargedProtoParticleAddGlobalPID_Kaon
,
ChargedProtoParticleAddGlobalPID_Proton
,
ChargedProtoParticleAddGlobalPID_Ghost
)
from
PyConf.Tools
import
(
ChargedProtoParticleAddGlobalPID_Electron
,
ChargedProtoParticleAddGlobalPID_Muon
,
ChargedProtoParticleAddGlobalPID_Pion
,
ChargedProtoParticleAddGlobalPID_Kaon
,
ChargedProtoParticleAddGlobalPID_Proton
,
ChargedProtoParticleAddGlobalPID_Ghost
,
ChargedProtoParticleAddGlobalPID_Electron_Upstream
,
ChargedProtoParticleAddGlobalPID_Muon_Upstream
,
ChargedProtoParticleAddGlobalPID_Pion_Upstream
,
ChargedProtoParticleAddGlobalPID_Kaon_Upstream
,
ChargedProtoParticleAddGlobalPID_Proton_Upstream
,
ChargedProtoParticleAddGlobalPID_Ghost_Upstream
,
)
import
Functors
as
F
...
...
@@ -53,20 +61,35 @@ def hypo_estimator(calo_pids):
def
getProbNNModel
(
PIDType
,
TrackType
):
# TODO add differentiation for TrackType (probably only for Upstream)
if
PIDType
==
'
Electron
'
:
return
ChargedProtoParticleAddGlobalPID_Electron
elif
PIDType
==
'
Muon
'
:
return
ChargedProtoParticleAddGlobalPID_Muon
elif
PIDType
==
'
Pion
'
:
return
ChargedProtoParticleAddGlobalPID_Pion
elif
PIDType
==
'
Kaon
'
:
return
ChargedProtoParticleAddGlobalPID_Kaon
elif
PIDType
==
'
Proton
'
:
return
ChargedProtoParticleAddGlobalPID_Proton
elif
PIDType
==
'
Ghost
'
:
return
ChargedProtoParticleAddGlobalPID_Ghost
else
:
raise
ValueError
(
f
"
not a configured PID type:
'
{
PIDType
}
'"
)
if
TrackType
in
[
'
Long
'
,
'
Downstream
'
]:
if
PIDType
==
'
Electron
'
:
return
ChargedProtoParticleAddGlobalPID_Electron
elif
PIDType
==
'
Muon
'
:
return
ChargedProtoParticleAddGlobalPID_Muon
elif
PIDType
==
'
Pion
'
:
return
ChargedProtoParticleAddGlobalPID_Pion
elif
PIDType
==
'
Kaon
'
:
return
ChargedProtoParticleAddGlobalPID_Kaon
elif
PIDType
==
'
Proton
'
:
return
ChargedProtoParticleAddGlobalPID_Proton
elif
PIDType
==
'
Ghost
'
:
return
ChargedProtoParticleAddGlobalPID_Ghost
elif
TrackType
==
'
Upstream
'
:
if
PIDType
==
'
Electron
'
:
return
ChargedProtoParticleAddGlobalPID_Electron_Upstream
elif
PIDType
==
'
Muon
'
:
return
ChargedProtoParticleAddGlobalPID_Muon_Upstream
elif
PIDType
==
'
Pion
'
:
return
ChargedProtoParticleAddGlobalPID_Pion_Upstream
elif
PIDType
==
'
Kaon
'
:
return
ChargedProtoParticleAddGlobalPID_Kaon_Upstream
elif
PIDType
==
'
Proton
'
:
return
ChargedProtoParticleAddGlobalPID_Proton_Upstream
elif
PIDType
==
'
Ghost
'
:
return
ChargedProtoParticleAddGlobalPID_Ghost_Upstream
raise
ValueError
(
f
"
not a configured PID type:
'
{
PIDType
}
'
for track type
'
{
TrackType
}
'"
)
return
None
@configurable
...
...
@@ -213,23 +236,37 @@ def make_charged_protoparticles(tracks,
'
Proton
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_proton_long.json
'
,
'
Ghost
'
:
''
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_ghost_long.json
'
},
# use long for downstream as PID features are same, even used RICH1 gas
# only minor difference is for brem base pid, typical brem emission chances are lower for electrons
'
Downstream
'
:
{
'
Electron
'
:
''
,
'
Muon
'
:
''
,
'
Pion
'
:
''
,
'
Kaon
'
:
''
,
'
Proton
'
:
''
,
'
Ghost
'
:
''
'
Electron
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_electron_long.json
'
,
'
Muon
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_muon_long.json
'
,
'
Pion
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_pion_long.json
'
,
'
Kaon
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_kaon_long.json
'
,
'
Proton
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_proton_long.json
'
,
'
Ghost
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_ghost_long.json
'
},
'
Upstream
'
:
{
'
Electron
'
:
''
,
'
Muon
'
:
''
,
'
Pion
'
:
''
,
'
Kaon
'
:
''
,
'
Proton
'
:
''
,
'
Ghost
'
:
''
'
Electron
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_electron_upstream.json
'
,
'
Muon
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_muon_upstream.json
'
,
'
Pion
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_pion_upstream.json
'
,
'
Kaon
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_kaon_upstream.json
'
,
'
Proton
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_proton_upstream.json
'
,
'
Ghost
'
:
'
paramfile://data/ProbNNs/2024/probnn_2024tune1_pp_ghost_upstream.json
'
},
}
for
PIDType
in
[
"
Electron
"
,
"
Muon
"
,
"
Pion
"
,
"
Kaon
"
,
"
Proton
"
,
"
Ghost
"
]:
...
...
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