|
ATLAS Offline Software
|
Go to the documentation of this file.
36 return StatusCode::SUCCESS;
45 if (writeHandle.isValid()) {
46 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
47 <<
". In theory this should not be called, but may happen"
48 <<
" if multiple concurrent events are being processed out of order.");
49 return StatusCode::SUCCESS;
55 if (readCdo==
nullptr) {
57 return StatusCode::FAILURE;
60 writeHandle.addDependency(readHandle);
61 ATH_MSG_INFO(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
62 ATH_MSG_INFO(
"Range of input is " << readHandle.getRange());
65 std::unique_ptr<SCT_NoiseCalibData> writeCdo{std::make_unique<SCT_NoiseCalibData>()};
68 const float errVal{std::numeric_limits<float>::quiet_NaN()};
72 (*writeCdo)[
m][
p][
c]=errVal;
80 for (; itLoop!=itLoop_end; ++itLoop) {
94 if (writeHandle.record(std::move(writeCdo)).isFailure()) {
95 ATH_MSG_FATAL(
"Could not record SCT_NoiseCalibData " << writeHandle.key()
96 <<
" with EventRange " << writeHandle.getRange()
97 <<
" into Conditions Store");
98 return StatusCode::FAILURE;
100 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
102 return StatusCode::SUCCESS;
107 return StatusCode::SUCCESS;
115 fillArrayFromString(dbData, datavec);
def retrieve(aClass, aKey=None)
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
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...
virtual StatusCode finalize() override final
const std::array< std::string, SCT_ConditionsData::N_NOISEOCC > noiseOccDbParameterNames
virtual StatusCode initialize() override final
This class is a collection of AttributeLists where each one is associated with a channel number....
header file containing the number of elements and enumerated type of parameters which may be retrieve...
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &ctx) const override final
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.
SCT_ReadCalibChipNoiseCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
const SCT_ID * m_id_sct
Handle to SCT ID helper.
SG::WriteCondHandleKey< SCT_NoiseCalibData > m_writeKey
static void insertNoiseOccFolderData(SCT_ModuleNoiseCalibData &theseCalibData, const coral::AttributeList &folderData)
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
StatusCode initialize(bool used=true)
ChanAttrListMap::const_iterator const_iterator