Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
21 declareInterface<ITileCondToolTMDB>(
this);
22 declareInterface<TileCondToolTMDB>(
this);
42 return StatusCode::SUCCESS;
51 return StatusCode::SUCCESS;
60 return calibThreshold->getCalibDrawer(drawerIdx)->getData(
threshold, 0, 0);
70 return calibDelay->getCalibDrawer(drawerIdx)->getData(
channel, 0, 0);
79 a = calibData->getCalibDrawer(drawerIdx)->getData(
channel, 0, 0);
80 b = calibData->getCalibDrawer(drawerIdx)->getData(
channel, 0, 1);
90 unsigned int nWeights = calibTMF->getCalibDrawer(drawerIdx)->getObjSizeUint32();
92 if (
weights.size() < nWeights ) {
93 ATH_MSG_ERROR(
"Not enough space in output array to put all weights from DB (nothing to be done!): "
94 <<
weights.size() <<
" < " << nWeights);
98 for (
unsigned int iWeight = 0; iWeight < nWeights; ++iWeight) {
99 weights[iWeight] = calibTMF->getCalibDrawer(drawerIdx)->getData(
channel, 0, iWeight);
113 return amplitude * calibData->getCalibDrawer(drawerIdx)->getData(
channel, 0, 0)
114 + calibData->getCalibDrawer(drawerIdx)->getData(
channel, 0, 1);
125 if (samples.size() != calibTMF->getCalibDrawer(drawerIdx)->getObjSizeUint32()) {
126 ATH_MSG_ERROR(
"Number of samples and weights in DB are not compatible (nothing to be done!): "
127 << samples.size() <<
" =! " << calibTMF->getCalibDrawer(drawerIdx)->getObjSizeUint32());
131 float amplitude(0.0
F);
132 unsigned int iWeight(0);
133 for (
float sample : samples) {
134 amplitude +=
sample * calibTMF->getCalibDrawer(drawerIdx)->getData(
channel, 0, iWeight);
std::array< float, 7 > Weights
::StatusCode StatusCode
StatusCode definition for legacy code.
Helpers for checking error return status codes and reporting errors.