ATLAS Offline Software
TileCondToolEmscale.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILECONDITIONS_TILECONDTOOLEMSCALE_H
6 #define TILECONDITIONS_TILECONDTOOLEMSCALE_H
7 
46 // Tile includes
49 
50 // Athena includes
53 
54 
55 #include <vector>
56 #include <array>
57 
59  public:
60 
61  static const InterfaceID& interfaceID();
62  TileCondToolEmscale(const std::string& type, const std::string& name, const IInterface* parent);
63  virtual ~TileCondToolEmscale();
64 
65  virtual StatusCode initialize() override;
66  virtual StatusCode finalize() override;
67 
81  float channelCalib(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float amplitude
82  , TileRawChannelUnit::UNIT rawDataUnitIn, TileRawChannelUnit::UNIT rawDataUnitOut) const;
83 
92  float doCalibEms(unsigned int drawerIdx, unsigned int channel, float amplitude) const;
93 
102  float doCalibCes(unsigned int drawerIdx, unsigned int channel, float amplitude, bool applyLasCorr = true) const;
103 
112  float doCalibLas(unsigned int drawerIdx, unsigned int channel, float amplitude) const;
113 
123  float doCalibCis(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float amplitude) const;
124 
137  float channelCalibOnl(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float amplitude
138  , TileRawChannelUnit::UNIT onlUnit) const;
139 
148  float doCalibEmsOnl(unsigned int drawerIdx, unsigned int channel, float amplitude) const;
149 
158  float doCalibCesOnl(unsigned int drawerIdx, unsigned int channel, float amplitude, bool applyLasCorr = true) const;
159 
168  float doCalibLasOnl(unsigned int drawerIdx, unsigned int channel, float amplitude) const;
169 
179  float doCalibCisOnl(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float amplitude) const;
180 
195  float undoOnlCalib(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float amplitude
196  , TileRawChannelUnit::UNIT onlUnit) const;
197 
208  float getCesRefLas(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const;
209 
216  float getCesRefHv(unsigned int drawerIdx, unsigned int channel) const;
217 
224  float getCesRefTemp(unsigned int drawerIdx, unsigned int channel) const;
225 
231  float getLasFiber(unsigned int drawerIdx, unsigned int channel) const;
232 
242  float getLasPartition(unsigned int drawerIdx) const;
243 
250  float getLasRefHv(unsigned int drawerIdx, unsigned int channel) const;
251 
256 
257  protected:
258 
260  "TileEMScale", "TileEMScale", "Input Tile EMS calibration constants"};
261 
262 
263 };
264 
265 #endif
TileCondToolEmscale::initialize
virtual StatusCode initialize() override
Definition: TileCondToolEmscale.cxx:39
TileCondToolEmscale::doCalibEms
float doCalibEms(unsigned int drawerIdx, unsigned int channel, float amplitude) const
Calibration to EM scale: Equalized pC -> MeV.
Definition: TileCondToolEmscale.cxx:79
TileCondToolEmscale::m_emScaleKey
SG::ReadCondHandleKey< TileEMScale > m_emScaleKey
Definition: TileCondToolEmscale.h:259
TileEMScale.h
TileCondToolEmscale::getLasRefHv
float getLasRefHv(unsigned int drawerIdx, unsigned int channel) const
Returns the reference PMT HV from appropriate laser calibration.
Definition: TileCondToolEmscale.cxx:206
TileCondToolEmscale::getOnlCacheUnit
TileRawChannelUnit::UNIT getOnlCacheUnit() const
Returns the unit of cached online calibration constants.
Definition: TileCondToolEmscale.cxx:216
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
TileCondToolEmscale::getCesRefTemp
float getCesRefTemp(unsigned int drawerIdx, unsigned int channel) const
Returns the drawer temperature as measured during last cesium equalization.
Definition: TileCondToolEmscale.cxx:179
TileCondToolEmscale::doCalibLasOnl
float doCalibLasOnl(unsigned int drawerIdx, unsigned int channel, float amplitude) const
Online application of laser (PMT linearity) correction.
Definition: TileCondToolEmscale.cxx:143
TileCondToolEmscale::undoOnlCalib
float undoOnlCalib(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float amplitude, TileRawChannelUnit::UNIT onlUnit) const
Undoes the calibration applied in ROD signal reconstruction.
Definition: TileCondToolEmscale.cxx:58
TileCondToolEmscale::TileCondToolEmscale
TileCondToolEmscale(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TileCondToolEmscale.cxx:24
TileCondToolEmscale::doCalibLas
float doCalibLas(unsigned int drawerIdx, unsigned int channel, float amplitude) const
Application of laser (PMT linearity) correction.
Definition: TileCondToolEmscale.cxx:97
TileCondToolEmscale::doCalibCisOnl
float doCalibCisOnl(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float amplitude) const
Online Application of CIS calibration: ADC counts -> pC.
Definition: TileCondToolEmscale.cxx:152
TileCondToolEmscale::channelCalib
float channelCalib(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float amplitude, TileRawChannelUnit::UNIT rawDataUnitIn, TileRawChannelUnit::UNIT rawDataUnitOut) const
Calibrates a Tile channel.
Definition: TileCondToolEmscale.cxx:68
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileCondToolEmscale::~TileCondToolEmscale
virtual ~TileCondToolEmscale()
Definition: TileCondToolEmscale.cxx:34
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TileCondToolEmscale::getCesRefHv
float getCesRefHv(unsigned int drawerIdx, unsigned int channel) const
Returns the reference PMT HV set in last cesium calibration.
Definition: TileCondToolEmscale.cxx:170
TileRawChannelUnit::UNIT
UNIT
Definition: TileRawChannelUnit.h:16
ReadCondHandleKey.h
TileCondToolEmscale::doCalibEmsOnl
float doCalibEmsOnl(unsigned int drawerIdx, unsigned int channel, float amplitude) const
Online calibration to EM scale: Equalized pC -> MeV.
Definition: TileCondToolEmscale.cxx:125
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TileCondToolEmscale::getCesRefLas
float getCesRefLas(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
Returns the PMT gain reference as measured by the laser system.
Definition: TileCondToolEmscale.cxx:161
TileCondToolEmscale
Calibration of TileCal channels and access to calibration factors.
Definition: TileCondToolEmscale.h:58
TileRawChannelUnit.h
SG::ReadCondHandleKey< TileEMScale >
TileCondToolEmscale::finalize
virtual StatusCode finalize() override
Definition: TileCondToolEmscale.cxx:48
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
TileCondToolEmscale::doCalibCis
float doCalibCis(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float amplitude) const
Application of CIS calibration: ADC counts -> pC.
Definition: TileCondToolEmscale.cxx:106
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileCondToolEmscale::doCalibCes
float doCalibCes(unsigned int drawerIdx, unsigned int channel, float amplitude, bool applyLasCorr=true) const
Application of cesium calibration constant.
Definition: TileCondToolEmscale.cxx:88
TileCondToolEmscale::getLasPartition
float getLasPartition(unsigned int drawerIdx) const
Returns laser partition relative variation.
Definition: TileCondToolEmscale.cxx:197
TileCondToolEmscale::doCalibCesOnl
float doCalibCesOnl(unsigned int drawerIdx, unsigned int channel, float amplitude, bool applyLasCorr=true) const
Online application of cesium calibration constant.
Definition: TileCondToolEmscale.cxx:134
AthAlgTool
Definition: AthAlgTool.h:26
TileCondToolEmscale::channelCalibOnl
float channelCalibOnl(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float amplitude, TileRawChannelUnit::UNIT onlUnit) const
Calibrates an online Tile channel from OnlineADCcounts to an arbitrary Online unit,...
Definition: TileCondToolEmscale.cxx:115
TileCondToolEmscale::interfaceID
static const InterfaceID & interfaceID()
Definition: TileCondToolEmscale.cxx:18
TileCondToolEmscale::getLasFiber
float getLasFiber(unsigned int drawerIdx, unsigned int channel) const
Returns laser fiber relative variation.
Definition: TileCondToolEmscale.cxx:188