60 float b =
getData(channel,adc,1);
61 if(invert){
x = (
x*
x -
a*
a) / (b*b) ;}
62 else {
x = std::sqrt(
a*
a + b*b*
x );}
67 float b =
getData(channel,adc,1);
68 if(invert){
x = (
x -
a) / (b) ;}
uint16_t getObjType() const
uint16_t getObjVersion() const
CaloCondBlobDat(const coral::Blob &blob)
float getData(const unsigned int channel, const unsigned int adc, const unsigned int idx) const
Class for storing a number of floats (Flt) and functions on those.
virtual uint16_t getType() const
Returns CaloCondType::FLT.
static CaloCondBlobFlt * getInstance(coral::Blob &blob)
Returns a pointer to a non-const CaloCondBlobFlt.
float getCalib(unsigned int channel, unsigned int adc, float x, bool invert=false) const
Returns the calibrated energy for a given channel/gain and input energy.
CaloCondBlobFlt(const coral::Blob &blob)
Ctor.
Thrown if object type in BLOB does not agree with class type.
Thrown if object version in BLOB does not agree with class version.