5#ifndef TILECALIBBLOBOBJS_TILECALIBDRAWERFLT_H
6#define TILECALIBBLOBOBJS_TILECALIBDRAWERFLT_H
24#include "CoralBase/Blob.h"
52 const std::string& author=
"",
53 const std::string& comment=
"",
54 uint64_t timeStamp=0);
64 float getCalib(
unsigned int channel,
unsigned int adc,
float energy,
bool invert=
false)
const;
76 bool getYDY(
unsigned int channel,
unsigned int adc,
float x,
float&
y,
float& dy)
const;
82 float getY(
unsigned int channel,
unsigned int adc,
float x)
const;
87 float getDY(
unsigned int channel,
unsigned int adc,
float x)
const;
TileCalibDrawerDat(const coral::Blob &blob)
std::vector< std::vector< float > > DefType
Generic class for storing a number of floats (Flt) for each channel or ADC.
static const TileCalibDrawerFlt * getInstance(const coral::Blob &blob)
Returns a pointer to a const TileCalibDrawerFlt.
virtual uint16_t getType() const
Returns TileCalibType::FLT.
float getDY(unsigned int channel, unsigned int adc, float x) const
Returns y for a given x for function blob of type 200.
virtual ~TileCalibDrawerFlt()
Dtor.
float getY(unsigned int channel, unsigned int adc, float x) const
Returns y for a given x for function blob of type 200.
bool getYDY(unsigned int channel, unsigned int adc, float x, float &y, float &dy) const
Returns y and derivative dy for a given x for function blob of type 200.
TileCalibDrawerFlt(const coral::Blob &blob)
Ctor (const).
float getCalib(unsigned int channel, unsigned int adc, float energy, bool invert=false) const
Returns the calibrated energy for a given channel/ADC and input energy.
@ FLT
Enum for TileCalibDrawerFlt class.