ATLAS Offline Software
Loading...
Searching...
No Matches
TileCalibDrawerFlt.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TILECALIBBLOBOBJS_TILECALIBDRAWERFLT_H
6#define TILECALIBBLOBOBJS_TILECALIBDRAWERFLT_H
7
19
22#include <stdint.h>
23#include <vector>
24#include "CoralBase/Blob.h"
25
27{
28 public:
29
32
34 virtual uint16_t getType() const {return TileCalibType::FLT;}
35
37 static const TileCalibDrawerFlt* getInstance(const coral::Blob& blob);
38
48 static TileCalibDrawerFlt* getInstance(coral::Blob& blob,
49 const DefType& def,
50 uint16_t nChans,
51 uint16_t objVers,
52 const std::string& author="",
53 const std::string& comment="",
54 uint64_t timeStamp=0);
55
64 float getCalib(unsigned int channel, unsigned int adc, float energy, bool invert=false) const;
65
76 bool getYDY(unsigned int channel, unsigned int adc, float x, float& y, float& dy) const;
77
82 float getY( unsigned int channel, unsigned int adc, float x) const;
83
87 float getDY(unsigned int channel, unsigned int adc, float x) const;
88
89
90 protected:
92 TileCalibDrawerFlt(const coral::Blob& blob);
94 TileCalibDrawerFlt(coral::Blob& blob);
95};
96
97
98#endif
#define y
#define x
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.