|
ATLAS Offline Software
|
Go to the documentation of this file.
35 return StatusCode::SUCCESS;
44 if (writeHandle.isValid()) {
45 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
46 <<
". In theory this should not be called, but may happen"
47 <<
" if multiple concurrent events are being processed out of order.");
48 return StatusCode::SUCCESS;
54 if (readCdo==
nullptr) {
56 return StatusCode::FAILURE;
59 writeHandle.addDependency(readHandle);
60 ATH_MSG_INFO(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
61 ATH_MSG_INFO(
"Range of input is " << readHandle.getRange());
64 std::unique_ptr<SCT_GainCalibData> writeCdo{std::make_unique<SCT_GainCalibData>()};
67 const float errVal{std::numeric_limits<float>::quiet_NaN()};
71 (*writeCdo)[
m][
p][
c]=errVal;
79 for (; itLoop!=itLoop_end; ++itLoop) {
93 if (writeHandle.record(std::move(writeCdo)).isFailure()) {
94 ATH_MSG_FATAL(
"Could not record SCT_GainCalibData " << writeHandle.key()
95 <<
" with EventRange " << writeHandle.getRange()
96 <<
" into Conditions Store");
97 return StatusCode::FAILURE;
99 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
101 return StatusCode::SUCCESS;
106 return StatusCode::SUCCESS;
114 fillArrayFromString(dbData, datavec);
def retrieve(aClass, aKey=None)
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
const std::array< std::string, SCT_ConditionsData::N_NPTGAIN > nPtGainDbParameterNames
This class is a collection of AttributeLists where each one is associated with a channel number....
const SCT_ID * m_id_sct
Handle to SCT ID helper.
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.
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
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.
static void insertNptGainFolderData(SCT_ModuleGainCalibData &theseCalibData, const coral::AttributeList &folderData)
virtual StatusCode execute(const EventContext &ctx) const override final
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
virtual StatusCode finalize() override final
virtual StatusCode initialize() override final
SG::WriteCondHandleKey< SCT_GainCalibData > m_writeKey
StatusCode initialize(bool used=true)
ChanAttrListMap::const_iterator const_iterator
SCT_ReadCalibChipGainCondAlg(const std::string &name, ISvcLocator *pSvcLocator)