Skip to content
Snippets Groups Projects
Commit 4cb9d4bc authored by Maarten Van Veghel's avatar Maarten Van Veghel Committed by Christopher Rob Jones
Browse files

Add 2024 ProbNN type enum

parent 1e5941e5
No related branches found
No related tags found
2 merge requests!4552Add 2024 ProbNN type enum,!4546Synchronize master branch with 2024-patches
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment