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
AFP
AFP_EventCnv
AFP_EventAthenaPool
src
AFP_SIDSimHitCollectionCnv.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 "
AFP_EventTPCnv/AFP_SIDSimHitCollectionCnv_p1.h
"
6
#include "
AFP_SIDSimHitCollectionCnv.h
"
7
#include "
AFP_EventTPCnv/AFP_SIDSimHit_p1.h
"
8
9
AFP_SIDSimHitCollection_PERS
*
AFP_SIDSimHitCollectionCnv::createPersistent
(
AFP_SIDSimHitCollection
* transCont)
10
{
11
MsgStream
mlog
(
msgSvc
(),
"AFP_SIDSimHitCollectionConverter"
);
12
13
AFP_SIDSimHitCollectionCnv_p1
TPConverter;
14
AFP_SIDSimHitCollection_PERS
*pPersColl = TPConverter.
createPersistent
( transCont,
mlog
);
15
16
return
pPersColl;
17
}
18
19
AFP_SIDSimHitCollection
*
AFP_SIDSimHitCollectionCnv::createTransient
()
20
{
21
MsgStream
mlog
(
msgSvc
(),
"AFP_SIDSimHitCollectionConverter"
);
22
23
//GUID of persistence collection class (see selection.xml in AFP_EventTPCnv, class item AFP_SIDSimHitCollection_p1
24
static
const
pool::Guid
p1_guid(
"AAA03560-D4CC-40C3-80D6-165448375201"
);
25
26
AFP_SIDSimHitCollectionCnv_p1
TPConverter_p1;
27
AFP_SIDSimHitCollection
*pTransColl=
nullptr
;
28
29
if
(this->
compareClassGuid
(p1_guid)){
30
std::unique_ptr<AFP_SIDSimHitCollection_p1> col_vect(this->poolReadObject<AFP_SIDSimHitCollection_p1>());
31
pTransColl=TPConverter_p1.
createTransient
(col_vect.get(),
mlog
);
32
}
33
else
{
34
throw
std::runtime_error(
"Unsupported persistent version of Data container"
);
35
}
36
37
return
pTransColl;
38
}
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
AtlasHitsVector< AFP_SIDSimHit >
AFP_SIDSimHitCollectionCnv::createPersistent
AFP_SIDSimHitCollection_PERS * createPersistent(AFP_SIDSimHitCollection *transCont)
Definition:
AFP_SIDSimHitCollectionCnv.cxx:9
AFP_SIDSimHitCollectionCnv::createTransient
AFP_SIDSimHitCollection * createTransient()
Definition:
AFP_SIDSimHitCollectionCnv.cxx:19
AFP_SIDSimHitCollectionCnv.h
AFP_SIDSimHitCollection_p1
Definition:
AFP_SIDSimHitCollection_p1.h:15
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
AFP_SIDSimHit_p1.h
pool::Guid
::Guid Guid
Definition:
T_AthenaPoolCustCnv.h:19
python.InDetPriVxFinderConfig.mlog
mlog
Definition:
InDetPriVxFinderConfig.py:149
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition:
StdJOSetup.py:36
T_AtlasHitsVectorCnv
Definition:
TPConverter.h:1234
T_AthenaPoolCustCnv< AFP_SIDSimHitCollection, AFP_SIDSimHitCollection_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
AFP_SIDSimHitCollectionCnv_p1.h
Generated on Thu Apr 24 2025 21:06:54 for ATLAS Offline Software by
1.8.18