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