Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LHCb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
LHCb
Merge requests
!4552
Add 2024 ProbNN type enum
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add 2024 ProbNN type enum
mveghel-probnn
into
2024-patches
Overview
1
Commits
1
Pipelines
4
Changes
1
Merged
Maarten Van Veghel
requested to merge
mveghel-probnn
into
2024-patches
11 months ago
Overview
1
Commits
1
Pipelines
4
Changes
1
Expand
Needed for
Rec!3664 (merged)
0
0
Merge request reports
Compare
2024-patches
version 4
b5395877
11 months ago
version 3
b5395877
11 months ago
version 2
35e41d90
11 months ago
version 1
35e41d90
11 months ago
2024-patches (base)
and
latest version
latest version
b5395877
1 commit,
11 months ago
version 4
b5395877
1 commit,
11 months ago
version 3
b5395877
1 commit,
11 months ago
version 2
35e41d90
1 commit,
11 months ago
version 1
35e41d90
5 commits,
11 months ago
1 file
+
13
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Event/RecEvent/include/Event/GlobalChargedPID.h
+
13
−
0
Options
@@ -32,6 +32,8 @@ namespace LHCb {
using
Selection
=
SharedObjectsContainer
<
GlobalChargedPID
>
;
using
Range
=
Gaudi
::
Range_
<
ConstVector
>
;
enum
ProbNN
{
Electron
,
Muon
,
Pion
,
Kaon
,
Proton
,
Deuteron
,
Ghost
};
// constructors
GlobalChargedPID
(
GlobalChargedPID
const
&
pid
)
:
KeyedObject
<
int
>
()
@@ -128,6 +130,17 @@ namespace LHCb {
return
*
this
;
}
template
<
ProbNN
type
>
GlobalChargedPID
&
setProbNN
(
float
value
)
{
if
constexpr
(
type
==
ProbNN
::
Electron
)
return
setProbNNe
(
value
);
if
constexpr
(
type
==
ProbNN
::
Muon
)
return
setProbNNmu
(
value
);
if
constexpr
(
type
==
ProbNN
::
Pion
)
return
setProbNNpi
(
value
);
if
constexpr
(
type
==
ProbNN
::
Kaon
)
return
setProbNNk
(
value
);
if
constexpr
(
type
==
ProbNN
::
Proton
)
return
setProbNNp
(
value
);
if
constexpr
(
type
==
ProbNN
::
Deuteron
)
return
setProbNNd
(
value
);
if
constexpr
(
type
==
ProbNN
::
Ghost
)
return
setProbNNghost
(
value
);
}
private
:
// Combined (summed) Log Likelihoods
float
m_elDLL
{
DefaultCombDLL
};
///< Electron Log Likelihood
Loading