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
ForwardDetectors
ALFA
ALFA_EventCnv
ALFA_EventAthenaPool
src
ALFA_CLinkEventCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ALFA_EventTPCnv/ALFA_CLinkEventCnv_p1.h
"
6
#include "
ALFA_CLinkEventCnv.h
"
7
8
ALFA_CLinkEvent_PERS
*
ALFA_CLinkEventCnv::createPersistent
(
ALFA_CLinkEvent
* transCont)
9
{
10
MsgStream LogStream(
Athena::getMessageSvc
(),
"ALFA_CLinkEventCnv_p1"
);
11
//LogStream<<MSG::INFO<<"MARK01-ALFA_CLinkEventCnv::createPersistent (AthenaPOOL)"<<endmsg;
12
13
ALFA_CLinkEventCnv_p1
TPConverter;
14
ALFA_CLinkEvent_PERS
*persObj = TPConverter.
createPersistent
( transCont, LogStream );
15
16
//LogStream<<MSG::INFO<<"MARK02-ALFA_CLinkEventCnv::createPersistent (AthenaPOOL)"<<endmsg;
17
return
persObj;
18
}
19
20
ALFA_CLinkEvent
*
ALFA_CLinkEventCnv::createTransient
()
21
{
22
MsgStream LogStream(
Athena::getMessageSvc
(),
"ALFA_CLinkEventCnv_p1"
);
23
//LogStream<<MSG::INFO<<"MARK01-ALFA_CLinkEventCnv::createTransient (AthenaPOOL)"<<endmsg;
24
25
ALFA_CLinkEventCnv_p1
TPConverter_p1;
26
27
ALFA_CLinkEvent
*trans_cont(
nullptr
);
// probably inicialization
28
static
const
pool::Guid
p1_guid (
"D8FCB0A1-3B3E-4536-B590-1A48347B6E1A"
);
29
30
if
( this->
compareClassGuid
(p1_guid)){
31
std::unique_ptr< ALFA_CLinkEvent_p1 > col_vect( this->poolReadObject< ALFA_CLinkEvent_p1 >() );
32
trans_cont = TPConverter_p1.
createTransient
( col_vect.get(), LogStream );
33
}
34
else
{
35
throw
std::runtime_error(
"Unsupported persistent version of Data container"
);
36
}
37
38
//LogStream<<MSG::INFO<<"MARK02-ALFA_CLinkEventCnv::createTransient (AthenaPOOL)"<<endmsg;
39
40
return
trans_cont;
41
}
ALFA_CLinkEventCnv_p1
Definition:
ALFA_CLinkEventCnv_p1.h:16
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition:
getMessageSvc.cxx:20
ALFA_CLinkEventCnv::createPersistent
ALFA_CLinkEvent_PERS * createPersistent(ALFA_CLinkEvent *transCont)
Definition:
ALFA_CLinkEventCnv.cxx:8
pool::Guid
::Guid Guid
Definition:
T_AthenaPoolCustCnv.h:19
ALFA_CLinkEvent_p1
Definition:
ALFA_CLinkEvent_p1.h:12
ALFA_CLinkEventCnv.h
ALFA_CLinkEvent
Definition:
ALFA_CLinkEvent.h:61
T_AthenaPoolCustCnv< ALFA_CLinkEvent, ALFA_CLinkEvent_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
ALFA_CLinkEventCnv::createTransient
ALFA_CLinkEvent * createTransient()
Definition:
ALFA_CLinkEventCnv.cxx:20
ALFA_CLinkEventCnv_p1.h
Generated on Tue Apr 22 2025 21:06:58 for ATLAS Offline Software by
1.8.18