ATLAS Offline Software
Loading...
Searching...
No Matches
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*/
10
11
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
26namespace DMTest {
27
28
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
Hold information about an option setting request.
Class used for testing xAOD data reading/writing with packed containers.
Hold information about an option setting request.
AuxContainerBase(bool allowDynamicVars=true)
Default constructor.
Definition B.h:23
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.