ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonEFTrackCnv_p6.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
8
9
10void TrigMuonEFTrackCnv_p6::persToTrans(const TrigMuonEFTrack_p6* persObj, TrigMuonEFTrack* transObj, MsgStream &log) {
11
12 // std::cout << "TrigMuonEFTrackCnv_p6::persToTrans called " << std::endl;
13
14 transObj->setCharge (persObj->m_allTheFloats[0]);
15 transObj->setD0 (persObj->m_allTheFloats[1]);
16 transObj->setZ0 (persObj->m_allTheFloats[2]);
17 transObj->setChi2 (persObj->m_allTheFloats[3]);
18 transObj->setChi2prob (persObj->m_allTheFloats[4]);
19 transObj->setPosX (persObj->m_allTheFloats[5]);
20 transObj->setPosY (persObj->m_allTheFloats[6]);
21 transObj->setPosZ (persObj->m_allTheFloats[7]);
22
23
24 transObj->setNRpcHitsPhi (persObj->m_allTheInts[0]);
25 transObj->setNTgcHitsPhi (persObj->m_allTheInts[1]);
26 transObj->setNCscHitsPhi (persObj->m_allTheInts[2]);
27 transObj->setNRpcHitsEta (persObj->m_allTheInts[3]);
28 transObj->setNTgcHitsEta (persObj->m_allTheInts[4]);
29 transObj->setNCscHitsEta (persObj->m_allTheInts[5]);
30 transObj->setNMdtHits (persObj->m_allTheInts[6]);
31
32 fillTransFromPStore( &m_P4IPtCotThPhiMCnv, persObj->m_P4IPtCotThPhiM, transObj, log );
33}
34
35
36void TrigMuonEFTrackCnv_p6::transToPers(const TrigMuonEFTrack* transObj, TrigMuonEFTrack_p6* persObj, MsgStream &log) {
37 // std::cout << "TrigMuonEFTrackCnv_p6::transToPers called " << std::endl;
38
39 persObj->m_allTheFloats[0] = transObj->charge();
40 persObj->m_allTheFloats[1] = transObj->d0();
41 persObj->m_allTheFloats[2] = transObj->z0();
42 persObj->m_allTheFloats[3] = transObj->chi2();
43 persObj->m_allTheFloats[4] = transObj->chi2prob();
44 persObj->m_allTheFloats[5] = transObj->posX();
45 persObj->m_allTheFloats[6] = transObj->posY();
46 persObj->m_allTheFloats[7] = transObj->posZ();
47
48 persObj->m_allTheInts[0] = transObj->NRpcHitsPhi();
49 persObj->m_allTheInts[1] = transObj->NTgcHitsPhi();
50 persObj->m_allTheInts[2] = transObj->NCscHitsPhi();
51 persObj->m_allTheInts[3] = transObj->NRpcHitsEta();
52 persObj->m_allTheInts[4] = transObj->NTgcHitsEta();
53 persObj->m_allTheInts[5] = transObj->NCscHitsEta();
54 persObj->m_allTheInts[6] = transObj->NMdtHits();
55
56 // std::cout << "TrigMuonEFTrackCnv_p6::transToPers before P4Cnv " << std::endl;
57 persObj->m_P4IPtCotThPhiM = baseToPersistent( &m_P4IPtCotThPhiMCnv, transObj, log );
58 // std::cout << "TrigMuonEFTrackCnv_p6::transToPers after P4Cnv " << std::endl;
59}
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition TPConverter.h:97
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
P4IPtCotThPhiMCnv_p1 * m_P4IPtCotThPhiMCnv
virtual void persToTrans(const TrigMuonEFTrack_p6 *persObj, TrigMuonEFTrack *transObj, MsgStream &log)
virtual void transToPers(const TrigMuonEFTrack *transObj, TrigMuonEFTrack_p6 *persObj, MsgStream &log)
unsigned short int m_allTheInts[7]
unsigned short int NCscHitsEta() const
unsigned short int NMdtHits() const
unsigned short int NRpcHitsEta() const
double chi2() const
void setCharge(double theCharge)
void setNRpcHitsPhi(unsigned short int nRpcHitsPhi)
void setNRpcHitsEta(unsigned short int nRpcHitsEta)
unsigned short int NTgcHitsPhi() const
unsigned short int NCscHitsPhi() const
double posZ() const
double posY() const
void setPosZ(double posz)
void setNTgcHitsPhi(unsigned short int nTgcHitsPhi)
void setNMdtHits(unsigned short int nMdtHits)
double posX() const
unsigned short int NRpcHitsPhi() const
void setChi2prob(double chi2prob)
double d0() const
void setD0(double d0)
double z0() const
double chi2prob() const
void setNCscHitsPhi(unsigned short int nCscHitsPhi)
void setNCscHitsEta(unsigned short int nCscHitsEta)
double charge() const
void setPosY(double posy)
void setZ0(double z0)
unsigned short int NTgcHitsEta() const
void setPosX(double posx)
void setNTgcHitsEta(unsigned short int nTgcHitsEta)
void setChi2(double chi2)