11 #include <framework/datastore/RelationsObject.h>
12 #include <framework/gearbox/Const.h>
13 #include <framework/logging/Logger.h>
53 auto result =
m_logls.insert(std::make_pair(hypothesis, plkhs));
54 if (not result.second) {
55 B2WARNING(
"Likelihoods already exist for this track");
67 auto result =
m_sfots.insert(std::make_pair(hypothesis, sfots));
68 if (not result.second) {
69 B2WARNING(
"Signal photons already exist for this track");
Defines interface for accessing relations of objects in StoreArray.
Class to store pixel-by-pixel likelihoods for a track relation from Tracks filled in top/modules/TOPP...
const PixelArray_t & getPixelSigPhot_p() const
Returns the pixel signal photons for the proton hypothesis.
std::array< float, 512 > PixelArray_t
Array of length 512 to hold per-pixel information.
const PixelArray_t & getPixelLogL_mu() const
Returns the pixel likelihoods for the muon hypothesis.
std::map< int, PixelArray_t > m_logls
pixel likelihoods for different hypotheses
void setModuleID(int moduleID)
Sets module ID of the associated exthit.
const PixelArray_t & getPixelLogL_e() const
Returns the pixel likelihoods for the electron hypothesis.
std::map< int, PixelArray_t > m_sfots
pixel sigphot counts for different hypotheses
int m_moduleID
slot ID of the exthit
const PixelArray_t & getPixelSigPhot_pi() const
Returns the pixel signal photons for the pion hypothesis.
const PixelArray_t & getPixelSigPhot_e() const
Returns the pixel signal photons for the electron hypothesis.
int getModuleID() const
Returns module ID of the associated exthit.
const PixelArray_t & getPixelLogL_pi() const
Returns the pixel likelihoods for the pion hypothesis.
const PixelArray_t & getPixelLogL_K() const
Returns the pixel likelihoods for the kaon hypothesis.
const PixelArray_t & getPixelSigPhot_mu() const
Returns the pixel signal photons for the muon hypothesis.
const PixelArray_t & getHypothesisSignalPhotons(const int hypothesis) const
Returns the pixel signal photons for the given hypothesis (PDG code)
const PixelArray_t & getPixelSigPhot_K() const
Returns the pixel signal photons for the kaon hypothesis.
bool addHypothesisSignalPhotons(const PixelArray_t &sfots, const int hypothesis)
Adds the signal photon array for the given hypothesis (PDG code)
bool addHypothesisLikelihoods(const PixelArray_t &plkhs, const int hypothesis)
Adds the likelihood array for the given hypothesis (PDG code)
ClassDef(TOPPixelLikelihood, 3)
ClassDef.
TOPPixelLikelihood()
Default constructor.
const PixelArray_t & getHypothesisLikelihoods(const int hypothesis) const
Returns the pixel likelihoods for the given hypothesis (PDG code)
const PixelArray_t & getPixelLogL_p() const
Returns the pixel likelihoods for the proton hypothesis.
Abstract base class for different kinds of events.