ATLAS Offline Software
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 
22 #include <stdint.h>
23 #include <vector>
24 #include "CoralBase/Blob.h"
25 
27 {
28  public:
29 
31  virtual ~TileCalibDrawerFlt(){}
32 
34  virtual uint16_t getType() const {return TileCalibType::FLT;}
35 
37  static const TileCalibDrawerFlt* getInstance(const coral::Blob& blob);
38 
49  const DefType& def,
50  uint16_t nChans,
51  uint16_t objVers,
52  const std::string& author="",
53  const std::string& comment="",
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:
95 };
96 
97 
98 #endif
TileCalibDrawerFlt
Generic class for storing a number of floats (Flt) for each channel or ADC.
Definition: TileCalibDrawerFlt.h:27
TileCalibDrawerFlt::getY
float getY(unsigned int channel, unsigned int adc, float x) const
Returns y for a given x for function blob of type 200.
Definition: TileCalibDrawerFlt.cxx:217
TileCalibType::FLT
@ FLT
Enum for TileCalibDrawerFlt class.
Definition: TileCalibType.h:30
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
TileCalibDrawerFlt::TileCalibDrawerFlt
TileCalibDrawerFlt(const coral::Blob &blob)
Ctor (const).
Definition: TileCalibDrawerFlt.cxx:40
TileCalibDrawerFlt::getDY
float getDY(unsigned int channel, unsigned int adc, float x) const
Returns y for a given x for function blob of type 200.
Definition: TileCalibDrawerFlt.cxx:275
TileCalibDrawerFlt::~TileCalibDrawerFlt
virtual ~TileCalibDrawerFlt()
Dtor.
Definition: TileCalibDrawerFlt.h:31
TileCalibType.h
TileCalibDrawerDat.h
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
TileCalibDrawerFlt::getCalib
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.
Definition: TileCalibDrawerFlt.cxx:65
TileCalibDrawerDat
Generic template class for storing a number of "T"s for each channel or ADC.
Definition: TileCalibDrawerDat.h:31
TileCalibDrawerFlt::getYDY
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.
Definition: TileCalibDrawerFlt.cxx:149
x
#define x
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
TileCalibDrawerFlt::getInstance
static const TileCalibDrawerFlt * getInstance(const coral::Blob &blob)
Returns a pointer to a const TileCalibDrawerFlt.
Definition: TileCalibDrawerFlt.cxx:13
TileCalibDrawerFlt::getType
virtual uint16_t getType() const
Returns TileCalibType::FLT.
Definition: TileCalibDrawerFlt.h:34
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
CaloCondBlobAlgs_fillNoiseFromASCII.comment
string comment
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:27
xAOD::timeStamp
setEventNumber timeStamp
Definition: EventInfo_v1.cxx:128
makeTRTBarrelCans.dy
tuple dy
Definition: makeTRTBarrelCans.py:21
y
#define y
TileCalibDrawerDat< float >::DefType
std::vector< std::vector< float > > DefType
Object to hold default data used for initialization.
Definition: TileCalibDrawerDat.h:37
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
CaloCondBlobAlgs_fillNoiseFromASCII.blob
blob
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:96