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
w
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
MuonSpectrometer
MuonPhaseII
MuonCnv
xAODMuonViewAlgs
src
MdtMeasViewAlg.cxx
Go to the documentation of this file.
1
2
/*
3
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4
*/
5
6
#include "
MdtMeasViewAlg.h
"
7
8
#include <
StoreGate/WriteHandle.h
>
9
#include <
AthContainers/ConstDataVector.h
>
10
11
namespace
MuonR4
{
12
StatusCode
MdtMeasViewAlg::initialize
() {
13
ATH_CHECK
(
m_readKey1D
.initialize());
14
ATH_CHECK
(
m_readKey2D
.initialize());
15
ATH_CHECK
(
m_writeKey
.initialize());
16
return
StatusCode::SUCCESS;
17
}
18
StatusCode
MdtMeasViewAlg::execute
(
const
EventContext& ctx)
const
{
19
const
xAOD::MdtDriftCircleContainer
* driftCircles{
nullptr
};
20
const
xAOD::MdtTwinDriftCircleContainer
* twinCircles{
nullptr
};
21
22
ATH_CHECK
(
SG::get
(driftCircles,
m_readKey1D
, ctx));
23
ATH_CHECK
(
SG::get
(twinCircles,
m_readKey2D
, ctx));
24
25
ConstDataVector<xAOD::MdtDriftCircleContainer>
outContainer{
SG::VIEW_ELEMENTS
};
26
outContainer.insert(outContainer.end(), driftCircles->begin(), driftCircles->end());
27
outContainer.insert(outContainer.end(), twinCircles->begin(), twinCircles->end());
28
29
SG::WriteHandle
writeHandle{
m_writeKey
, ctx};
30
ATH_CHECK
(writeHandle.record(std::make_unique<xAOD::MdtDriftCircleContainer>(*outContainer.asDataVector())));
31
return
StatusCode::SUCCESS;
32
}
33
}
SG::VIEW_ELEMENTS
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Definition:
OwnershipPolicy.h:18
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
MuonR4::MdtMeasViewAlg::m_readKey1D
SG::ReadHandleKey< xAOD::MdtDriftCircleContainer > m_readKey1D
Definition:
MdtMeasViewAlg.h:30
MuonR4::MdtMeasViewAlg::m_readKey2D
SG::ReadHandleKey< xAOD::MdtTwinDriftCircleContainer > m_readKey2D
Definition:
MdtMeasViewAlg.h:33
MuonR4::MdtMeasViewAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition:
MdtMeasViewAlg.cxx:18
WriteHandle.h
Handle class for recording to StoreGate.
SG::get
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
Definition:
ReadCondHandle.h:287
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
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:794
MuonR4::MdtMeasViewAlg::initialize
StatusCode initialize() override
Definition:
MdtMeasViewAlg.cxx:12
MuonR4
This header ties the generic definitions in this package.
Definition:
HoughEventData.h:16
SG::WriteHandle
Definition:
StoreGate/StoreGate/WriteHandle.h:73
MuonR4::MdtMeasViewAlg::m_writeKey
SG::WriteHandleKey< xAOD::MdtDriftCircleContainer > m_writeKey
Definition:
MdtMeasViewAlg.h:36
ConstDataVector
DataVector adapter that acts like it holds const pointers.
Definition:
ConstDataVector.h:76
MdtMeasViewAlg.h
Generated on Mon May 12 2025 21:13:43 for ATLAS Offline Software by
1.8.18