ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
AthenaPoolExample
AthenaPoolExampleConverter
src
ExampleHitCnv_p1.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef EXAMPLEHITCNV_P1_H
6
#define EXAMPLEHITCNV_P1_H
7
14
15
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
16
#include "
AthenaPoolExampleData/ExampleHit.h
"
17
#include "
AthenaPoolExampleConverter/ExampleHit_p1.h
"
18
19
20
class
ExampleHitCnv_p1
:
public
T_AthenaPoolTPCnvBase
<ExampleHit, ExampleHit_p1> {
21
22
public
:
23
ExampleHitCnv_p1
() =
default
;
24
28
virtual
void
persToTrans
(
const
ExampleHit_p1
* persObj,
ExampleHit
* transObj, MsgStream&
/* msg*/
)
override
final
{
29
transObj->setX (persObj->m_vec.x());
30
transObj->setY (persObj->m_vec.y());
31
transObj->setZ (persObj->m_vec.z());
32
transObj->setDetector (persObj->m_detector);
33
}
34
38
virtual
void
transToPers
(
const
ExampleHit
* transObj,
ExampleHit_p1
* persObj, MsgStream&
/* msg*/
)
override
final
{
39
persObj->m_vec.setX (transObj->getX());
40
persObj->m_vec.setY (transObj->getY());
41
persObj->m_vec.setZ (transObj->getZ());
42
persObj->m_detector = transObj->getDetector();
43
}
44
};
45
46
#endif
ExampleHit.h
This file contains the class definition for the ExampleHit class.
ExampleHit_p1.h
This file contains the class definition for the ExampleHit_p1 class.
T_AthenaPoolTPConverter.h
T_AthenaPoolTPCnvBase
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Definition
T_AthenaPoolTPConverter.h:41
ExampleHitCnv_p1::ExampleHitCnv_p1
ExampleHitCnv_p1()=default
ExampleHitCnv_p1::transToPers
virtual void transToPers(const ExampleHit *transObj, ExampleHit_p1 *persObj, MsgStream &) override final
Method creating the persistent representation ExampleHit_p1 from its transient representation Example...
Definition
ExampleHitCnv_p1.h:38
ExampleHitCnv_p1::persToTrans
virtual void persToTrans(const ExampleHit_p1 *persObj, ExampleHit *transObj, MsgStream &) override final
Method creating the transient representation of ExampleHit from its persistent representation Example...
Definition
ExampleHitCnv_p1.h:28
ExampleHit_p1
This class provides a dummy hit data object for AthenaPool.
Definition
ExampleHit_p1.h:20
ExampleHit
This class provides a dummy hit data object for AthenaPool.
Definition
ExampleHit.h:24
Generated on
for ATLAS Offline Software by
1.17.0