Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Control
DataModelTest
DataModelTestDataWrite
src
AllocTestReadWithoutAlloc.cxx
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration.
3
*/
12
#include "
AllocTestReadWithoutAlloc.h
"
13
#include "
DataModelTestDataWrite/AllocTestAuxContainer.h
"
14
#include <sstream>
15
16
17
namespace
DMTest
{
18
19
23
StatusCode
AllocTestReadWithoutAlloc::initialize
()
24
{
25
ATH_CHECK
(
m_containerKey
.initialize() );
26
return
StatusCode::SUCCESS;
27
}
28
29
33
StatusCode
AllocTestReadWithoutAlloc::execute
(
const
EventContext& ctx)
const
34
{
35
static
const
SG::AuxElement::Accessor<int>
atInt3 (
"atInt3"
);
36
static
const
SG::AuxElement::Accessor<int>
atInt4 (
"atInt4"
);
37
38
// Write to a sstream first, to avpod having the output broken up by
39
// schema evolution messges.
40
std::ostringstream
ss
;
41
42
SG::ReadHandle<AllocTestContainer>
cont (
m_containerKey
, ctx);
43
ss
<<
m_containerKey
.key() <<
" "
;
44
for
(
const
AllocTest
* at : *cont) {
45
ss
<< at->atInt1() <<
" "
<< at->atInt2() <<
" "
46
<< atInt3(*at) <<
" "
<< atInt4(*at) <<
" "
;
47
}
48
std::cout <<
ss
.str() <<
"\n"
;
49
return
StatusCode::SUCCESS;
50
}
51
52
53
}
// namespace DMTest
DMTest::AllocTest_v1
Testing an xAOD object with a non-standard memory allocator.
Definition:
DataModelTestDataRead/DataModelTestDataRead/versions/AllocTest_v1.h:32
PowhegControl_ttHplus_NLO.ss
ss
Definition:
PowhegControl_ttHplus_NLO.py:83
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition:
Control/AthContainers/AthContainers/Accessor.h:68
SG::ReadHandle
Definition:
StoreGate/StoreGate/ReadHandle.h:67
DMTest::AllocTestReadWithoutAlloc::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition:
AllocTestReadWithoutAlloc.cxx:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
AllocTestReadWithoutAlloc.h
Test reading AllocTest with a non-default allocator.
AllocTestAuxContainer.h
Testing an xAOD object with a non-standard memory allocator.
DMTest::AllocTestReadWithoutAlloc::m_containerKey
SG::ReadHandleKey< AllocTestContainer > m_containerKey
Definition:
AllocTestReadWithoutAlloc.h:53
DMTest::AllocTestReadWithoutAlloc::initialize
virtual StatusCode initialize() override
Gaudi initialize method.
Definition:
AllocTestReadWithoutAlloc.cxx:23
DMTest
Definition:
B.h:23
Generated on Sun Apr 27 2025 21:07:08 for ATLAS Offline Software by
1.8.18