9#include <top/dataobjects/TOPTemplateFitResult.h>
23 short amplitude,
short chisquare)
34 double amplitude,
double chisquare)
35 : m_risingEdge(risingEdge), m_risingEdgeTime(risingEdgeTime), m_backgroundOffset(backgroundOffset), m_amplitude(amplitude),
36 m_chisquare(chisquare)
49 double risingEdgeD = (risingEdgeS & 0xff00) >> 8;
51 for (
int i = 0; i < 8; i++) {
52 int b = (risingEdgeS & mask);
53 if (b != 0) risingEdgeD += 1. / (pow(2, i + 1));
double m_chisquare
chi square value of template fit
double m_amplitude
amplitude from fit
double m_backgroundOffset
background offset from fit
double m_risingEdgeTime
template fit rising edge in ns
double m_risingEdge
template fit rising edge position
unsigned m_risingEdgeRaw
template fit rising edge position received from FEE
double risingEdgeShortToRisingEdgeDouble(unsigned short risingEdgeS) const
Convert rising edge saved in short to double.
TOPTemplateFitResult()
Default constructor.
void setRisingEdgeAndConvert(unsigned short risingEdge)
Sets rising edge from Zynq and converts to double This does not convert from sample to time space.
Abstract base class for different kinds of events.