ATLAS Offline Software
Loading...
Searching...
No Matches
MuonFeatureCnv_p3.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
10 MuonFeature* transObj,
11 MsgStream &log)
12{
13 log << MSG::DEBUG << "MuonFeatureCnv_p3::persToTrans called " << endmsg;
14
15 *transObj = MuonFeature (persObj->m_allTheInts[1], // saddress
16 persObj->m_allTheFloats[0], // pt
17 persObj->m_allTheFloats[1], // radius
18 persObj->m_allTheFloats[2], // eta
19 persObj->m_allTheFloats[3], // phi
20 persObj->m_allTheFloats[4], // dir_phi
21 persObj->m_allTheFloats[5], // zeta
22 persObj->m_allTheFloats[6], // dir_zeta
23 persObj->m_allTheFloats[7], // beta
24 persObj->m_allTheFloats[8], // sp1_r
25 persObj->m_allTheFloats[9], // sp1_z
26 persObj->m_allTheFloats[10], // sp1_slope
27 persObj->m_allTheFloats[11], // sp2_r
28 persObj->m_allTheFloats[12], // sp2_z
29 persObj->m_allTheFloats[13], // sp2_slope
30 persObj->m_allTheFloats[14], // sp3_r
31 persObj->m_allTheFloats[15], // sp3_z
32 persObj->m_allTheFloats[16], // sp3_slope
33 persObj->m_allTheFloats[17], // br_radius
34 persObj->m_allTheFloats[18], // br_sagitta
35 persObj->m_allTheFloats[19], // ec_alpha
36 persObj->m_allTheFloats[20], // ec_beta
37 persObj->m_allTheFloats[21], // dq_var1
38 persObj->m_allTheFloats[22]); // dq_var2
39 transObj->set_roiId (persObj->m_allTheInts[0]);
40 transObj->set_algoId (persObj->m_algoId);
41}
42
43
45 MuonFeature_p3* persObj,
46 MsgStream &log)
47{
48 log << MSG::DEBUG << "MuonFeatureCnv_p3::transToPers called " << endmsg;
49
50 persObj->m_algoId = transObj->algoId() ;
51 persObj->m_allTheInts[0] = transObj->roiId() ;
52 persObj->m_allTheInts[1] = transObj->saddress() ;
53 persObj->m_allTheFloats[0] = transObj->pt() ;
54 persObj->m_allTheFloats[1] = transObj->radius() ;
55 persObj->m_allTheFloats[2] = transObj->eta() ;
56 persObj->m_allTheFloats[3] = transObj->phi() ;
57 persObj->m_allTheFloats[4] = transObj->dir_phi() ;
58 persObj->m_allTheFloats[5] = transObj->zeta() ;
59 persObj->m_allTheFloats[6] = transObj->dir_zeta() ;
60 persObj->m_allTheFloats[7] = transObj->beta() ;
61 persObj->m_allTheFloats[8] = transObj->sp1_r() ;
62 persObj->m_allTheFloats[9] = transObj->sp1_z() ;
63 persObj->m_allTheFloats[10] = transObj->sp1_slope() ;
64 persObj->m_allTheFloats[11] = transObj->sp2_r() ;
65 persObj->m_allTheFloats[12] = transObj->sp2_z() ;
66 persObj->m_allTheFloats[13] = transObj->sp2_slope() ;
67 persObj->m_allTheFloats[14] = transObj->sp3_r() ;
68 persObj->m_allTheFloats[15] = transObj->sp3_z() ;
69 persObj->m_allTheFloats[16] = transObj->sp3_slope() ;
70 persObj->m_allTheFloats[17] = transObj->br_radius() ;
71 persObj->m_allTheFloats[18] = transObj->br_sagitta();
72 persObj->m_allTheFloats[19] = transObj->ec_alpha() ;
73 persObj->m_allTheFloats[20] = transObj->ec_beta() ;
74 persObj->m_allTheFloats[21] = transObj->dq_var1() ;
75 persObj->m_allTheFloats[22] = transObj->dq_var2() ;
76}
#define endmsg
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current MuonFeature
virtual void transToPers(const MuonFeature *transObj, MuonFeature_p3 *persObj, MsgStream &log)
virtual void persToTrans(const MuonFeature_p3 *persObj, MuonFeature *transObj, MsgStream &log)
float m_allTheFloats[23]
MuonFeature::AlgoId m_algoId
float zeta(void) const
Definition MuonFeature.h:53
void set_algoId(AlgoId algoId)
Definition MuonFeature.h:72
float br_radius(void) const
Definition MuonFeature.h:65
float sp2_z(void) const
Definition MuonFeature.h:60
float ec_alpha(void) const
Definition MuonFeature.h:67
float br_sagitta(void) const
Definition MuonFeature.h:66
float sp1_r(void) const
Definition MuonFeature.h:56
float sp2_r(void) const
Definition MuonFeature.h:59
int saddress(void) const
Definition MuonFeature.h:47
double dq_var1(void) const
Definition MuonFeature.h:69
float pt(void) const
Definition MuonFeature.h:48
AlgoId algoId(void) const
Definition MuonFeature.h:45
int roiId(void) const
Definition MuonFeature.h:46
float beta(void) const
Definition MuonFeature.h:55
float phi(void) const
Definition MuonFeature.h:51
double dq_var2(void) const
Definition MuonFeature.h:70
float sp1_z(void) const
Definition MuonFeature.h:57
float dir_zeta(void) const
Definition MuonFeature.h:54
float ec_beta(void) const
Definition MuonFeature.h:68
float sp1_slope(void) const
Definition MuonFeature.h:58
float radius(void) const
Definition MuonFeature.h:49
float sp2_slope(void) const
Definition MuonFeature.h:61
float sp3_slope(void) const
Definition MuonFeature.h:64
float dir_phi(void) const
Definition MuonFeature.h:52
float sp3_z(void) const
Definition MuonFeature.h:63
void set_roiId(int roiId)
Definition MuonFeature.h:73
float eta(void) const
Definition MuonFeature.h:50
float sp3_r(void) const
Definition MuonFeature.h:62