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
LArCalorimeter
LArCnv
LArAthenaPool
src
LArLATOMEHeaderContainerCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArLATOMEHeaderContainerCnv.h
"
6
#include "
LArTPCnv/LArLATOMEHeaderContainer_p1.h
"
7
#include "
LArTPCnv/LArLATOMEHeaderContainerCnv_p1.h
"
8
#include <memory>
9
10
LArLATOMEHeaderContainerCnv::LArLATOMEHeaderContainerCnv
(ISvcLocator* svcLoc) :
11
LArLATOMEHeaderContainerCnvBase
(svcLoc,
"LArLATOMEHeaderContainerCnv"
),
12
m_p1_guid(
"7FE06234-8574-4514-86C7-1FD09E97D713"
)
13
{}
14
15
StatusCode
LArLATOMEHeaderContainerCnv::initialize
() {
16
17
return
LArLATOMEHeaderContainerCnvBase::initialize
();
18
}
19
20
21
LArLATOMEHeaderContainerPERS
*
LArLATOMEHeaderContainerCnv::createPersistent
(
LArLATOMEHeaderContainer
* trans) {
22
ATH_MSG_DEBUG
(
"Writing LArDigitContainer_p2"
);
23
LArLATOMEHeaderContainerPERS
* pers=
new
LArLATOMEHeaderContainerPERS
();
24
LArLATOMEHeaderContainerCnv_p1
converter;
25
converter.
transToPers
(trans, pers,
msg
());
26
return
pers;
27
}
28
29
30
31
LArLATOMEHeaderContainer
*
LArLATOMEHeaderContainerCnv::createTransient
() {
32
if
(
compareClassGuid
(
m_p1_guid
)) {
33
ATH_MSG_DEBUG
(
"Reading LArLATOMEHeaderContainer_p1. GUID="
<<
m_classID
.
toString
());
34
LArLATOMEHeaderContainer
* trans=
new
LArLATOMEHeaderContainer
();
35
std::unique_ptr<LArLATOMEHeaderContainer_p1> pers(poolReadObject<LArLATOMEHeaderContainer_p1>());
36
LArLATOMEHeaderContainerCnv_p1
converter;
37
converter.
persToTrans
(pers.get(), trans,
msg
());
38
return
trans;
39
}
40
ATH_MSG_ERROR
(
"Unsupported persistent version of LArLATOMEHeaderContainer. GUID="
<<
m_classID
.
toString
());
41
throw
std::runtime_error(
"Unsupported persistent version of Data Collection"
);
42
// not reached
43
}
T_AthenaPoolCustCnv::m_classID
Guid m_classID
Definition:
T_AthenaPoolCustCnv.h:96
LArLATOMEHeaderContainerCnv::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition:
LArLATOMEHeaderContainerCnv.cxx:15
LArLATOMEHeaderContainerCnv::createPersistent
virtual LArLATOMEHeaderContainerPERS * createPersistent(LArLATOMEHeaderContainer *) override
Definition:
LArLATOMEHeaderContainerCnv.cxx:21
LArLATOMEHeaderContainer_p1.h
Guid::toString
const std::string toString() const
Automatic conversion to string representation.
Definition:
Guid.cxx:58
LArLATOMEHeaderContainer
Container class for LArLATOMEHeader.
Definition:
LArLATOMEHeaderContainer.h:19
LArLATOMEHeaderContainerCnv.h
LArLATOMEHeaderContainerCnv_p1.h
LArLATOMEHeaderContainer_p1
Definition:
LArLATOMEHeaderContainer_p1.h:12
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition:
AthMsgStreamMacros.h:33
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition:
T_AthenaPoolCustomCnv.h:132
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
LArLATOMEHeaderContainerCnv_p1::persToTrans
virtual void persToTrans(const LArLATOMEHeaderContainer_p1 *pers, LArLATOMEHeaderContainer *trans, MsgStream &log) const override
Definition:
LArLATOMEHeaderContainerCnv_p1.cxx:11
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition:
AthMessaging.h:164
LArLATOMEHeaderContainerCnv::m_p1_guid
pool::Guid m_p1_guid
Definition:
LArLATOMEHeaderContainerCnv.h:26
LArLATOMEHeaderContainerPERS
LArLATOMEHeaderContainer_p1 LArLATOMEHeaderContainerPERS
Definition:
LArLATOMEHeaderContainerCnv.h:13
LArLATOMEHeaderContainerCnv_p1::transToPers
virtual void transToPers(const LArLATOMEHeaderContainer *trans, LArLATOMEHeaderContainer_p1 *pers, MsgStream &log) const override
Definition:
LArLATOMEHeaderContainerCnv_p1.cxx:32
LArLATOMEHeaderContainerCnv_p1
Definition:
LArLATOMEHeaderContainerCnv_p1.h:15
LArLATOMEHeaderContainerCnv::createTransient
virtual LArLATOMEHeaderContainer * createTransient() override final
Definition:
LArLATOMEHeaderContainerCnv.cxx:31
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
T_AthenaPoolCustCnv::initialize
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
LArLATOMEHeaderContainer
Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old LArLATOMEHeaderContainer
Definition:
LArTPCnv.cxx:106
LArLATOMEHeaderContainerCnv::LArLATOMEHeaderContainerCnv
LArLATOMEHeaderContainerCnv(ISvcLocator *)
Definition:
LArLATOMEHeaderContainerCnv.cxx:10
Generated on Thu Apr 24 2025 21:13:57 for ATLAS Offline Software by
1.8.18