15 unsigned int computeSize(
const std::vector<std::vector<unsigned short> > &vec2d) {
16 unsigned int total_size =
sizeof(vec2d);
17 for (
const std::vector<unsigned short> &
vec : vec2d) {
18 total_size +=
sizeof(
vec) +
vec.size()*
sizeof(
unsigned short);
35 return StatusCode::SUCCESS;
41 if (writeHandle.isValid()) {
42 return StatusCode::SUCCESS;
48 auto detector_element_status=
m_condSummaryTool->getDetectorElementStatus(ctx, &writeHandle);
49 const EventIDRange&
range = writeHandle.getRange();
50 if (!
range.start().isValid() || !
range.stop().isValid()) {
55 unsigned int expected;
58 }
while (total_size > expected && !
m_maxSize.compare_exchange_weak(expected, total_size,std::memory_order_release,std::memory_order_relaxed));
60 if (writeHandle.record( std::move(detector_element_status) ).isFailure()) {
63 ATH_MSG_DEBUG(
"SiDetectorElementStatus Recorded " << writeHandle.key() <<
" with Range : " <<
range );
64 return StatusCode::SUCCESS;
70 return StatusCode::SUCCESS;