|
ATLAS Offline Software
|
Go to the documentation of this file.
124 const float*
iX = std::upper_bound(xBeg,xEnd,
energy);
128 if(
iX==xBeg ||
iX==xEnd){
136 float y0 = *(xEnd+
offset-1);
150 float&
y,
float&
dy)
const
179 const float*
iX = std::upper_bound(xBeg,xEnd,
x);
184 const float delta = 1.0e-3;
188 if (
x < (*(xBeg) - delta))
return false;
193 if (
x > (*(xEnd-1) + delta))
return false;
201 float y0 = *(xEnd+
offset-1);
202 float slope = (
y1-y0)/(
x1-x0);
207 float xs1 =
x + 0.5 *
dx;
208 float xs0 =
x - 0.5 *
dx;
247 const float*
iX = std::upper_bound(xBeg,xEnd,
x);
265 float y0 = *(xEnd+
offset-1);
266 float slope = (
y1-y0)/(
x1-x0);
277 float y(-9999.),
dy(-9999.);
Generic class for storing a number of floats (Flt) for each channel or ADC.
float getY(unsigned int channel, unsigned int adc, float x) const
Returns y for a given x for function blob of type 200.
long getBlobSize() const
Returns the BLOB size in units of bytes.
uint16_t getNGains() const
Returns the number of gains stored for each channel.
static const unsigned int m_hdrSize32
The header size in units of uint32_t.
TileCalibDrawerFlt(const coral::Blob &blob)
Ctor (const).
float getDY(unsigned int channel, unsigned int adc, float x) const
Returns y for a given x for function blob of type 200.
Thrown if coral::Blob does not conform with expected structure.
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.
Generic template class for storing a number of "T"s for each channel or ADC.
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.
uint16_t getObjVersion() const
Returns the BLOB object version.
static const TileCalibDrawerFlt * getInstance(const coral::Blob &blob)
Returns a pointer to a const TileCalibDrawerFlt.
uint16_t getNChans() const
Returns the number of channels stored in the BLOB.
virtual uint16_t getType() const
Returns TileCalibType::FLT.
Thrown if object version in BLOB does not agree with class.
std::vector< std::vector< float > > DefType
Object to hold default data used for initialization.
uint16_t getObjType() const
Returns the BLOB object type.
const float * getAddress(unsigned int channel, unsigned int adc) const
Returns a pointer to the first value for the specified channel & ADC.
Thrown if object type in BLOB does not agree with class type.
float getData(unsigned int channel, unsigned int adc, unsigned int idx) const
Returns a single T belonging to a channel/ADC.
static const unsigned int MAX_CHAN
Number of channels in drawer.
uint32_t getObjSizeUint32() const
Returns the size of a data object in units of uint32_t.
Thrown to prevent invalid results, eg.