11 #include <framework/datastore/RelationsObject.h>
12 #include <framework/gearbox/Const.h>
13 #include <framework/logging/Logger.h>
63 auto result =
m_data.insert(std::make_pair(hypothesis, pdf));
64 if (not result.second) {
65 B2WARNING(
"PDF exists already for this track");
75 return m_data.at(hypothesis);
Defines interface for accessing relations of objects in StoreArray.
Class to store analytical PDF relation from Tracks filled top/modules/TOPPDFDebugger/src/TOPPDFDebugg...
std::array< channelPDF_t, 512 > modulePDF_t
the PDF of the module is a list of 512 channel PDFs
const modulePDF_t & getHypothesisPDF(const int hypothesis) const
returns the pdf for the given hypothesis (PDG code)
std::vector< Gaussian > channelPDF_t
the PDF in a given channel is a list of Gaussians
void setLocalPositionMomentum(const TVector3 &pos, const TVector3 &mom, int moduleID)
sets the position and momentum of the exthit in local coordinates
TVector3 m_localHitMomentum
momentum of the exthit in local coordinates
TVector3 m_localHitPosition
position of the exthit in local coordinates
std::map< int, modulePDF_t > m_data
collection of samples of the pdf
int m_moduleID
slot ID of the exthit
ClassDef(TOPPDFCollection, 3)
ClassDef.
int getModuleID() const
returns slot ID of the associated exthit
const TVector3 & getAssociatedLocalHit() const
returns the local coordinates of the exthit associated with this PDF
bool addHypothesisPDF(const modulePDF_t &pdf, const int hypothesis)
adds the pdf for the given hypothesis (PDG code)
const TVector3 & getAssociatedLocalMomentum() const
returns the momentum of the associated exthit in local coordinates
TOPPDFCollection()
default constructor
Abstract base class for different kinds of events.
parameters to describe a Gaussian
Gaussian(float m, float w, float a)
useful constructor
float area
area (number of photons)