ATLAS Offline Software
ExampleTrackCnv_p1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EXAMPLETRACKCNV_P1_H
6 #define EXAMPLETRACKCNV_P1_H
7 
21 
22 class ExampleTrackCnv_p1 : public T_AthenaPoolTPCnvBase<ExampleTrack, ExampleTrack_p1> {
23 
24 public:
26 
30  virtual void persToTrans(const ExampleTrack_p1* persObj, ExampleTrack* transObj, MsgStream& msg) {
31  transObj->setDetector (persObj->m_detector);
32  elCnv.persToTrans(&persObj->m_elementlink1, transObj->getElementLink1(), msg);
33  elCnv.persToTrans(&persObj->m_elementlink2, transObj->getElementLink2(), msg);
35  navCnv.persToTrans(persObj->m_navigable, *transObj->getNavigable(), msg);
37  transObj->setPT (persObj->m_pt);
38  transObj->setEta (persObj->m_eta);
39  transObj->setPhi (persObj->m_phi);
40  }
41 
45  virtual void transToPers(const ExampleTrack* transObj, ExampleTrack_p1* persObj, MsgStream& msg) {
46  persObj->m_detector = transObj->getDetector();
47  elCnv.transToPers(transObj->getElementLink1(), &persObj->m_elementlink1, msg);
48  elCnv.transToPers(transObj->getElementLink2(), &persObj->m_elementlink2, msg);
50  navCnv.transToPers(*transObj->getNavigable(), persObj->m_navigable, msg);
52  persObj->m_pt = transObj->getPT();
53  persObj->m_eta = transObj->getEta();
54  persObj->m_phi = transObj->getPhi();
55  }
56 
57 private:
62 };
63 
64 #endif
ExampleTrack_p1::m_elementlink1
ElementLinkInt_p3 m_elementlink1
Definition: ExampleTrack_p1.h:39
ElementLinkCnv_p3
Definition: ElementLinkCnv_p3.h:27
ElementLinkCnv_p3.h
This file contains the class definition for the ElementLinkCnv_p3 class.
ElementLinkCnv_p3::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
ExampleTrack::getNavigable
Navigable< ExampleHitContainer > * getNavigable()
Definition: ExampleTrack.h:78
NavigableCnv_p2::transToPers
void transToPers(const Navigable_t &trans, PersNavigable_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
ExampleTrackCnv_p1::wNavCnv
NavigableCnv_p2< Navigable< ExampleHitContainer, double > > wNavCnv
Definition: ExampleTrackCnv_p1.h:61
ExampleTrackCnv_p1::elvCnv
ElementLinkVectorCnv_p1< ElementLinkVector< ExampleHitContainer > > elvCnv
Definition: ExampleTrackCnv_p1.h:59
ElementLinkVectorCnv_p1
Definition: ElementLinkVectorCnv_p1.h:28
NavigableCnv_p2
Definition: NavigableCnv_p2.h:30
TPConverterBase
Definition: TPConverter.h:738
ExampleTrack
This class provides a dummy track data object for AthenaPool.
Definition: ExampleTrack.h:24
ElementLinkVectorCnv_p1.h
This file contains the class definition for the ElementLinkVectorCnv_p1 class. NOTE: it should be inc...
ElementLinkVectorCnv_p1::persToTrans
void persToTrans(const PersLinkVect_t &pers, LinkVect_t &trans, MsgStream &log) const
ExampleTrack_p1::m_elementlinkvector
ElementLinkIntVector_p1 m_elementlinkvector
Definition: ExampleTrack_p1.h:40
ExampleTrack::getWeightedNavigable
Navigable< ExampleHitContainer, double > * getWeightedNavigable()
Definition: ExampleTrack.h:83
ExampleTrackCnv_p1::elCnv
ElementLinkCnv_p3< ElementLink< ExampleHitContainer > > elCnv
Definition: ExampleTrackCnv_p1.h:58
ExampleTrack::getElementLink2
ElementLink< ExampleHitContainer > * getElementLink2()
Definition: ExampleTrack.h:67
ElementLinkCnv_p3::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
ExampleTrack::getPhi
double getPhi() const
Definition: ExampleTrack.h:40
ExampleTrack::getPT
double getPT() const
Definition: ExampleTrack.h:34
ExampleTrack_p1::m_weightednavigable
Navigable_p2< uint32_t, double > m_weightednavigable
Definition: ExampleTrack_p1.h:42
ExampleTrack::getElementLink1
ElementLink< ExampleHitContainer > * getElementLink1()
Definition: ExampleTrack.h:62
T_AthenaPoolTPConverter.h
ExampleTrack::setPhi
void setPhi(double phi)
Set the phi value.
Definition: ExampleTrack.h:55
ExampleTrack::setEta
void setEta(double eta)
Set the eta value.
Definition: ExampleTrack.h:51
ExampleTrack_p1::m_navigable
Navigable_p2< uint32_t > m_navigable
Definition: ExampleTrack_p1.h:41
ExampleTrack::setDetector
void setDetector(const std::string &detector)
Set the detector string.
Definition: ExampleTrack.h:59
ExampleTrackCnv_p1::ExampleTrackCnv_p1
ExampleTrackCnv_p1()
Definition: ExampleTrackCnv_p1.h:25
ExampleTrack_p1.h
This file contains the class definition for the ExampleTrack_p1 class.
ExampleTrack_p1::m_detector
std::string m_detector
Definition: ExampleTrack_p1.h:37
ExampleTrack::getEta
double getEta() const
Definition: ExampleTrack.h:37
ExampleTrack_p1::m_elementlink2
ElementLinkInt_p3 m_elementlink2
Definition: ExampleTrack_p1.h:39
ExampleTrack::setPT
void setPT(double pt)
Set the transverse momentum value.
Definition: ExampleTrack.h:47
ExampleTrackCnv_p1
Definition: ExampleTrackCnv_p1.h:22
ExampleTrackCnv_p1::transToPers
virtual void transToPers(const ExampleTrack *transObj, ExampleTrack_p1 *persObj, MsgStream &msg)
Method creating the persistent representation ExampleTrack_p1 from its transient representation Examp...
Definition: ExampleTrackCnv_p1.h:45
ElementLinkVectorCnv_p1::transToPers
void transToPers(const LinkVect_t &trans, PersLinkVect_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
ExampleTrack::getElementLinkVector
ElementLinkVector< ExampleHitContainer > * getElementLinkVector()
Definition: ExampleTrack.h:73
ExampleTrack.h
This file contains the class definition for the ExampleTrack class.
ExampleTrackCnv_p1::persToTrans
virtual void persToTrans(const ExampleTrack_p1 *persObj, ExampleTrack *transObj, MsgStream &msg)
Method creating the transient representation of ExampleTrack from its persistent representation Examp...
Definition: ExampleTrackCnv_p1.h:30
ExampleTrackCnv_p1::navCnv
NavigableCnv_p2< Navigable< ExampleHitContainer > > navCnv
Definition: ExampleTrackCnv_p1.h:60
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
ExampleTrack::getDetector
const std::string & getDetector() const
Definition: ExampleTrack.h:43
ExampleTrack_p1
This class provides a dummy hit data object for AthenaPool.
Definition: ExampleTrack_p1.h:26
NavigableCnv_p2::persToTrans
void persToTrans(const PersNavigable_t &pers, Navigable_t &trans, MsgStream &log) const
NavigableCnv_p2.h
This file contains the class definition for the NavigableCnv_p2 class. NOTE: it should be included fi...