ATLAS Offline Software
Loading...
Searching...
No Matches
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
18
19
20class ExampleHitCnv_p1 : public T_AthenaPoolTPCnvBase<ExampleHit, ExampleHit_p1> {
21
22public:
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
This file contains the class definition for the ExampleHit class.
This file contains the class definition for the ExampleHit_p1 class.
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
ExampleHitCnv_p1()=default
virtual void transToPers(const ExampleHit *transObj, ExampleHit_p1 *persObj, MsgStream &) override final
Method creating the persistent representation ExampleHit_p1 from its transient representation Example...
virtual void persToTrans(const ExampleHit_p1 *persObj, ExampleHit *transObj, MsgStream &) override final
Method creating the transient representation of ExampleHit from its persistent representation Example...
This class provides a dummy hit data object for AthenaPool.
This class provides a dummy hit data object for AthenaPool.
Definition ExampleHit.h:24