ATLAS Offline Software
Event
ByteStreamCnvSvcLegacy
src
offline_eformat
old
v40_util.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include <algorithm>
6
7
#include "
v40_util.h
"
8
#include "eformat/Issue.h"
9
10
namespace
offline_eformat
{
11
namespace
v40 {
12
13
uint32_t
convert_to_40
(
const
uint32_t
*
src
,
uint32_t
*
dest
,
uint32_t
max
,
14
eformat::CheckSum
/*event_checksum*/
,
15
eformat::CheckSum
/*rob_checksum*/
)
16
{
17
18
// just copy it to destination
19
auto
size
=
src
[1];
20
if
(
size
>
max
) {
21
throw
EFORMAT_BLOCK_SIZE_TOO_SMALL(
size
,
max
);
22
}
23
std::copy
(
src
,
src
+
size
,
dest
);
24
return
size
;
25
}
26
27
}}
// namespace offline_eformat::v40
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
WriteCellNoiseToCool.src
src
Definition:
WriteCellNoiseToCool.py:513
max
constexpr double max()
Definition:
ap_fixedTest.cxx:33
offline_eformat
Definition:
util.h:19
perfmonmt-printer.dest
dest
Definition:
perfmonmt-printer.py:189
v40_util.h
python.setupRTTAlg.size
int size
Definition:
setupRTTAlg.py:39
offline_eformat::v40::convert_to_40
uint32_t convert_to_40(const uint32_t *src, uint32_t *dest, uint32_t max, eformat::CheckSum, eformat::CheckSum)
Definition:
v40_util.cxx:13
calibdata.copy
bool copy
Definition:
calibdata.py:27
Generated on Wed Dec 25 2024 21:22:25 for ATLAS Offline Software by
1.8.18