ATLAS Offline Software
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 
10 void 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 
33 }
34 
35 
36 void 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 }
TrigMuonEFTrack::NRpcHitsEta
unsigned short int NRpcHitsEta() const
Definition: TrigMuonEFTrack.h:159
TrigMuonEFTrack::setPosX
void setPosX(double posx)
Definition: TrigMuonEFTrack.h:103
TrigMuonEFTrack::posX
double posX() const
Definition: TrigMuonEFTrack.h:98
TrigMuonEFTrack::NMdtHits
unsigned short int NMdtHits() const
Definition: TrigMuonEFTrack.h:190
TrigMuonEFTrack::charge
double charge() const
Definition: TrigMuonEFTrack.h:52
TrigMuonEFTrack_p6
Definition: TrigMuonEFTrack_p6.h:21
TrigMuonEFTrack
Definition: TrigMuonEFTrack.h:27
TrigMuonEFTrack::setNRpcHitsPhi
void setNRpcHitsPhi(unsigned short int nRpcHitsPhi)
Definition: TrigMuonEFTrack.h:134
TrigMuonEFTrack::setNMdtHits
void setNMdtHits(unsigned short int nMdtHits)
Definition: TrigMuonEFTrack.h:195
TrigMuonEFTrack::d0
double d0() const
Definition: TrigMuonEFTrack.h:59
TrigMuonEFTrack::setNCscHitsPhi
void setNCscHitsPhi(unsigned short int nCscHitsPhi)
Definition: TrigMuonEFTrack.h:154
TrigMuonEFTrack.h
TrigMuonEFTrackCnv_p6.h
TrigMuonEFTrack::setPosZ
void setPosZ(double posz)
Definition: TrigMuonEFTrack.h:123
TrigMuonEFTrack::setNRpcHitsEta
void setNRpcHitsEta(unsigned short int nRpcHitsEta)
Definition: TrigMuonEFTrack.h:164
ITPConverterFor::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
TrigMuonEFTrack_p6::m_allTheInts
unsigned short int m_allTheInts[7]
Definition: TrigMuonEFTrack_p6.h:58
TrigMuonEFTrack::posY
double posY() const
Definition: TrigMuonEFTrack.h:108
TrigMuonEFTrack::NRpcHitsPhi
unsigned short int NRpcHitsPhi() const
Definition: TrigMuonEFTrack.h:129
TrigMuonEFTrackCnv_p6::transToPers
virtual void transToPers(const TrigMuonEFTrack *transObj, TrigMuonEFTrack_p6 *persObj, MsgStream &log)
Definition: TrigMuonEFTrackCnv_p6.cxx:36
TrigMuonEFTrack::NTgcHitsEta
unsigned short int NTgcHitsEta() const
Definition: TrigMuonEFTrack.h:169
TrigMuonEFTrack::setChi2prob
void setChi2prob(double chi2prob)
Definition: TrigMuonEFTrack.h:94
TrigMuonEFTrack::setChi2
void setChi2(double chi2)
Definition: TrigMuonEFTrack.h:84
TrigMuonEFTrack::setD0
void setD0(double d0)
Definition: TrigMuonEFTrack.h:64
TrigMuonEFTrack::NTgcHitsPhi
unsigned short int NTgcHitsPhi() const
Definition: TrigMuonEFTrack.h:139
ITPConverterFor::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
TrigMuonEFTrack::NCscHitsEta
unsigned short int NCscHitsEta() const
Definition: TrigMuonEFTrack.h:179
TrigMuonEFTrack::posZ
double posZ() const
Definition: TrigMuonEFTrack.h:118
TrigMuonEFTrack::chi2
double chi2() const
Definition: TrigMuonEFTrack.h:79
TrigMuonEFTrack::chi2prob
double chi2prob() const
Definition: TrigMuonEFTrack.h:89
TrigMuonEFTrack::setPosY
void setPosY(double posy)
Definition: TrigMuonEFTrack.h:113
TrigMuonEFTrack::setZ0
void setZ0(double z0)
Definition: TrigMuonEFTrack.h:74
TrigMuonEFTrack::z0
double z0() const
Definition: TrigMuonEFTrack.h:69
TrigMuonEFTrack_p6.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigMuonEFTrackCnv_p6::m_P4IPtCotThPhiMCnv
P4IPtCotThPhiMCnv_p1 * m_P4IPtCotThPhiMCnv
Definition: TrigMuonEFTrackCnv_p6.h:33
TrigMuonEFTrack::setCharge
void setCharge(double theCharge)
Definition: TrigMuonEFTrack.h:54
TrigMuonEFTrack::setNCscHitsEta
void setNCscHitsEta(unsigned short int nCscHitsEta)
Definition: TrigMuonEFTrack.h:184
TrigMuonEFTrack::setNTgcHitsPhi
void setNTgcHitsPhi(unsigned short int nTgcHitsPhi)
Definition: TrigMuonEFTrack.h:144
TrigMuonEFTrack_p6::m_allTheFloats
float m_allTheFloats[8]
Definition: TrigMuonEFTrack_p6.h:48
TrigMuonEFTrack_p6::m_P4IPtCotThPhiM
TPObjRef m_P4IPtCotThPhiM
Definition: TrigMuonEFTrack_p6.h:60
TrigMuonEFTrackCnv_p6::persToTrans
virtual void persToTrans(const TrigMuonEFTrack_p6 *persObj, TrigMuonEFTrack *transObj, MsgStream &log)
Definition: TrigMuonEFTrackCnv_p6.cxx:10
TrigMuonEFTrack::NCscHitsPhi
unsigned short int NCscHitsPhi() const
Definition: TrigMuonEFTrack.h:149
TrigMuonEFTrack::setNTgcHitsEta
void setNTgcHitsEta(unsigned short int nTgcHitsEta)
Definition: TrigMuonEFTrack.h:174