|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "Identifier/Identifier.h"
40 return StatusCode::SUCCESS;
47 return StatusCode::SUCCESS;
63 if (condDataNoise==
nullptr) {
64 ATH_MSG_ERROR(
"In isGood, SCT_NoiseCalibData cannot be retrieved");
75 ATH_MSG_ERROR(
"This NoiseOccupancy noise data does not exist");
83 const int side{
static_cast<int>(elementHashId%2)};
88 for (; chip!=endChip; ++chip) {
89 float chipNoise{moduleNoiseData[chip]};
95 const float meanNoiseValue{
sum/nChips};
104 if (not condDataHandle.isValid() ) {
116 unsigned int element_i=0;
120 ATH_MSG_ERROR(
"This NoiseOccupancy noise data does not exist");
125 for (
unsigned int side_i=0; side_i<2; ++side_i) {
128 unsigned int nChips{0};
131 for (; chip!=endChip; ++chip) {
132 float chipNoise{moduleNoiseData[chip]};
133 if (chipNoise!=0.0) {
138 const float meanNoiseValue{ nChips>0 ?
sum/nChips : 0.f};
148 const EventContext& ctx{Gaudi::Hive::currentContext()};
150 return isGood(elementHashId, ctx);
159 return isGood(elementIdHash, ctx);
162 ATH_MSG_WARNING(
"summary(): " <<
h <<
"good/bad is not applicable for Calibration data");
169 const EventContext& ctx{Gaudi::Hive::currentContext()};
171 return isGood(elementId, ctx,
h);
179 std::vector<float> waferData;
183 if (condDataGain==
nullptr) {
184 ATH_MSG_ERROR(
"In getNPtGainData, SCT_GainCalibData cannot be retrieved");
198 ATH_MSG_ERROR(
"This N-point gain data: " << datatype <<
" does not exist");
204 SCT_ModuleCalibParameter::const_iterator
it{moduleGains.begin() + startOffset};
205 SCT_ModuleCalibParameter::const_iterator
end{moduleGains.begin() + endOffset};
207 if (*
it != *
it)
return waferData;
210 waferData.assign(
it,
end);
212 }
catch (
const std::out_of_range&
e) {
219 const EventContext& ctx{Gaudi::Hive::currentContext()};
228 std::vector<float> waferData;
232 if (condDataNoise==
nullptr) {
233 ATH_MSG_ERROR(
"In getNPtNoiseData, SCT_NoiseCalibData cannot be retrieved");
248 ATH_MSG_ERROR(
"This Noise Occupancy data: " << datatype <<
" does not exist");
254 SCT_ModuleCalibParameter::const_iterator
it{moduleNoise.begin() + startOffset};
255 SCT_ModuleCalibParameter::const_iterator
end{moduleNoise.begin() + endOffset};
257 if (*
it != *
it)
return waferData;
258 waferData.assign(
it,
end);
260 }
catch (
const std::out_of_range&
e) {
267 const EventContext& ctx{Gaudi::Hive::currentContext()};
288 return condData.retrieve();
294 return condData.retrieve();
def retrieve(aClass, aKey=None)
std::array< SCT_ModuleCalibParameter, SCT_ConditionsData::N_NOISEOCC > SCT_ModuleNoiseCalibData
Typedef for data object used in SCT_ReadCalibChipNoiseCondAlg and SCT_ReadCalibChipDataTool.
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
std::array< SCT_ModuleNoiseCalibData, SCT_ConditionsData::NUMBER_OF_MODULES > SCT_NoiseCalibData
Class for data object used in SCT_ReadCalibChipNoiseCondAlg and SCT_ReadCalibChipDataTool.
const std::vector< bool > & getElementStatus() const
const std::string & key() const
Return the StoreGate ID for the referenced object.
std::array< float, SCT_ConditionsData::CHIPS_PER_MODULE > SCT_ModuleCalibParameter
typedef for SCT_ReadCalibChipGainCondAlg, SCT_ReadCalibChipNoiseCondAlg, SCT_ReadCalibChipDataTool.
::StatusCode StatusCode
StatusCode definition for legacy code.
header file for data object for a calibration parameter per chip of a module
std::array< SCT_ModuleCalibParameter, SCT_ConditionsData::N_NPTGAIN > SCT_ModuleGainCalibData
Typedef for data object used in SCT_ReadCalibChipGainCondAlg and SCT_ReadCalibChipDataTool.
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
const std::array< std::string, SCT_ConditionsData::N_NOISEOCC > noiseOccParameterNames
size_type wafer_hash_max(void) const
StatusCode initialize(bool used=true)
const std::array< std::string, SCT_ConditionsData::N_NPTGAIN > nPtGainParameterNames
#define ATH_MSG_WARNING(x)
std::array< SCT_ModuleGainCalibData, SCT_ConditionsData::NUMBER_OF_MODULES > SCT_GainCalibData
Typedef for data object used in SCT_ReadCalibChipGainCondAlg and SCT_ReadCalibChipDataTool.
void addDependency(const EventIDRange &range)