9#include "CoralBase/Blob.h"
21 return StatusCode::SUCCESS;
29 <<
". In theory this should not be called, but may happen"
30 <<
" if multiple concurrent events are being processed out of order.");
31 return StatusCode::SUCCESS;
35 if (!readHandle_ASDpos.
isValid()) {
37 return StatusCode::FAILURE;
42 auto outputCdo = std::make_unique<TgcDigitASDposData>();
43 constexpr std::string_view delimiter{
";"};
44 for(
const auto &[channel, attribute] : **readHandle_ASDpos) {
45 const coral::Blob& blob = attribute[
"bASDPos"].data<coral::Blob>();
46 const std::string blobline{
static_cast<const char*
>(blob.startingAddress())};
48 auto it = std::begin(tokens);
54 uint16_t chamberId = (station << 8) + (
eta << 5) +
phi;
62 outputCdo->stripAsdPos.emplace(chamberId, std::move(strip_pos));
70 outputCdo->wireAsdPos.emplace(chamberId, std::move(wire_pos));
75 ATH_MSG_DEBUG(
"recorded new " << writeHandle.
key() <<
" with range " << writeHandle.
getRange() <<
" into Conditions Store");
77 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
SG::WriteCondHandleKey< TgcDigitASDposData > m_writeKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_ASDpos
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
const std::string & key() const
void addDependency(const EventIDRange &range)
const EventIDRange & getRange() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
const DataObjID & fullKey() const
std::vector< std::string > tokenize(const std::string &the_str, std::string_view delimiters)
Splits the string into smaller substrings.
double atof(std::string_view str)
Converts a string into a double / float.
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.