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
PhysicsAnalysis
D3PDTools
EventLoopTest
Root
UnitTestAlg3.cxx
Go to the documentation of this file.
1
//
2
// Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
//
4
5
// Local include(s).
6
#include "
EventLoopTest/UnitTestAlg3.h
"
7
8
namespace
EL
{
9
10
UnitTestAlg3::UnitTestAlg3
(
const
std::string&
name
, ISvcLocator* svcLoc )
11
:
AnaAlgorithm
(
name
, svcLoc ) {
12
13
// Declare the algorithm's properties.
14
declareProperty
(
"LeakBytes"
,
m_leakBytes
= 0,
15
"Number of bytes to leak per event"
);
16
}
17
18
::StatusCode
UnitTestAlg3::execute
() {
19
20
// Allocate the requested amount of memory.
21
if
(
m_leakBytes
> 0 ) {
22
// This needs to be `volatile` and zeroed out to ensure the memory
23
// really gets allocated by the operating system. Without `volatile`
24
// the compiler is essentially allowed to optimize away the write,
25
// and the operating system isn't required to allocate it if it isn't
26
// written to.
27
volatile
char
* lostPointer =
new
volatile
char
[
m_leakBytes
];
28
for
(
int
i
= 0;
i
<
m_leakBytes
; ++
i
) {
29
*lostPointer = 0;
30
++lostPointer;
31
}
32
}
33
34
// Return gracefully.
35
return ::StatusCode::SUCCESS;
36
}
37
38
}
// namespace EL
EL::UnitTestAlg3::UnitTestAlg3
UnitTestAlg3(const std::string &name, ISvcLocator *svcLoc)
Standard algorithm constructor.
Definition:
UnitTestAlg3.cxx:10
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition:
AthCommonDataStore.h:145
EL::UnitTestAlg3::m_leakBytes
int m_leakBytes
The number of bytes to leak per event.
Definition:
UnitTestAlg3.h:39
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition:
AnaAlgorithm.h:73
lumiFormat.i
int i
Definition:
lumiFormat.py:85
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL::UnitTestAlg3::execute
virtual ::StatusCode execute() override
Function executing the algorithm.
Definition:
UnitTestAlg3.cxx:18
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition:
AlgorithmWorkerData.h:24
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
UnitTestAlg3.h
Generated on Sun Apr 20 2025 21:23:03 for ATLAS Offline Software by
1.8.18