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
Commits
4cb9d4bc
Commit
4cb9d4bc
authored
10 months ago
by
Maarten Van Veghel
Committed by
Christopher Rob Jones
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add 2024 ProbNN type enum
parent
1e5941e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!4552
Add 2024 ProbNN type enum
,
!4546
Synchronize master branch with 2024-patches
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Event/RecEvent/include/Event/GlobalChargedPID.h
+13
-0
13 additions, 0 deletions
Event/RecEvent/include/Event/GlobalChargedPID.h
with
13 additions
and
0 deletions
Event/RecEvent/include/Event/GlobalChargedPID.h
+
13
−
0
View file @
4cb9d4bc
...
...
@@ -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
...
...
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