10#include <top/dataobjects/TOPAssociatedPDF.h>
26 float prob = sum * gRandom->Rndm();
28 for (
size_t i = 0; i <
m_weights.size(); i++) {
30 if (prob < cumul)
return &
m_peaks[i];
std::vector< float > m_weights
corresponding weights
float m_deltaRayWeight
delta-ray weight
std::vector< PDFPeak > m_peaks
collection of associated PDF peaks
float m_BGWeight
background weight
const PDFPeak * getSinglePeak() const
Returns a PDF peak selected randomly according to weights.
Abstract base class for different kinds of events.