ATLAS Offline Software
Loading...
Searching...
No Matches
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
max
#define max(a, b)
Definition
cfImp.cxx:41
offline_eformat::v40
Definition
v40_FullEventFragment.h:29
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
offline_eformat
Definition
util.h:19
v40_util.h
Generated on
for ATLAS Offline Software by
1.14.0