ATLAS Offline Software
Control
DataModelTest
DataModelTestDataCommon
src
PAuxContainer_v1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
12
#include "
DataModelTestDataCommon/versions/PAuxContainer_v1.h
"
13
#include "
AthContainersInterfaces/AuxDataOption.h
"
14
#include <stdexcept>
15
16
17
#define CHECK_OPTION(ret) \
18
do { \
19
if (!ret) { \
20
ATH_MSG_ERROR("setOption failed"); \
21
return StatusCode::FAILURE; \
22
} \
23
} while(0)
24
25
26
namespace
DMTest
{
27
28
29
PAuxContainer_v1::PAuxContainer_v1
()
30
:
xAOD
::AuxContainerBase()
31
{
32
if
(!pInt.setOption (
SG::AuxDataOption
(
"nbits"
, 17)) ||
33
!pFloat.setOption (
SG::AuxDataOption
(
"nbits"
, 17)) ||
34
!pFloat.setOption (
SG::AuxDataOption
(
"signed"
, 0)) ||
35
!pFloat.setOption (
SG::AuxDataOption
(
"nmantissa"
, 17)) ||
36
!pFloat.setOption (
SG::AuxDataOption
(
"scale"
, 10)) ||
37
38
!pvInt.setOption (
SG::AuxDataOption
(
"nbits"
, 13)) ||
39
!pvFloat.setOption (
SG::AuxDataOption
(
"nbits"
, 13)) ||
40
!pvFloat.setOption (
SG::AuxDataOption
(
"nmantissa"
, 12)) )
41
{
42
throw
std::runtime_error (
"Can't set packing options in PAuxContainer_v1"
);
43
}
44
}
45
46
47
}
// namespace DMTest
DMTest::PAuxContainer_v1::PAuxContainer_v1
PAuxContainer_v1()
Definition:
PAuxContainer_v1.cxx:29
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition:
ICaloAffectedTool.h:24
PAuxContainer_v1.h
Class used for testing xAOD data reading/writing with packed containers.
AuxDataOption.h
Hold information about an option setting request.
SG::AuxDataOption
Hold information about an option setting request.
Definition:
AuxDataOption.h:37
DMTest
Definition:
B.h:23
Generated on Thu Nov 7 2024 21:23:21 for ATLAS Offline Software by
1.8.18