ATLAS Offline Software
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 }
MuonFeature::dq_var2
double dq_var2(void) const
Definition: MuonFeature.h:70
MuonFeature::dq_var1
double dq_var1(void) const
Definition: MuonFeature.h:69
MuonFeature::sp3_slope
float sp3_slope(void) const
Definition: MuonFeature.h:64
MuonFeature::radius
float radius(void) const
Definition: MuonFeature.h:49
MuonFeature::dir_phi
float dir_phi(void) const
Definition: MuonFeature.h:52
MuonFeature::sp1_r
float sp1_r(void) const
Definition: MuonFeature.h:56
MuonFeature::eta
float eta(void) const
Definition: MuonFeature.h:50
MuonFeatureCnv_p3.h
MuonFeature::ec_alpha
float ec_alpha(void) const
Definition: MuonFeature.h:67
MuonFeature
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current MuonFeature
Definition: TrigMuonEventTPCnv.cxx:174
MuonFeatureCnv_p3::transToPers
virtual void transToPers(const MuonFeature *transObj, MuonFeature_p3 *persObj, MsgStream &log)
Definition: MuonFeatureCnv_p3.cxx:44
MuonFeature::phi
float phi(void) const
Definition: MuonFeature.h:51
MuonFeature.h
MuonFeature::set_algoId
void set_algoId(AlgoId algoId)
Definition: MuonFeature.h:72
MuonFeature::set_roiId
void set_roiId(int roiId)
Definition: MuonFeature.h:73
MuonFeature::br_radius
float br_radius(void) const
Definition: MuonFeature.h:65
MuonFeatureCnv_p3::persToTrans
virtual void persToTrans(const MuonFeature_p3 *persObj, MuonFeature *transObj, MsgStream &log)
Definition: MuonFeatureCnv_p3.cxx:9
MuonFeature::dir_zeta
float dir_zeta(void) const
Definition: MuonFeature.h:54
MuonFeature::saddress
int saddress(void) const
Definition: MuonFeature.h:47
MuonFeature::roiId
int roiId(void) const
Definition: MuonFeature.h:46
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MuonFeature_p3
Definition: MuonFeature_p3.h:26
MuonFeature::br_sagitta
float br_sagitta(void) const
Definition: MuonFeature.h:66
MuonFeature_p3.h
MuonFeature::sp3_z
float sp3_z(void) const
Definition: MuonFeature.h:63
MuonFeature::algoId
AlgoId algoId(void) const
Definition: MuonFeature.h:45
MuonFeature::sp3_r
float sp3_r(void) const
Definition: MuonFeature.h:62
MuonFeature
Definition: MuonFeature.h:21
MuonFeature::sp1_z
float sp1_z(void) const
Definition: MuonFeature.h:57
MuonFeature::sp2_z
float sp2_z(void) const
Definition: MuonFeature.h:60
MuonFeature::sp1_slope
float sp1_slope(void) const
Definition: MuonFeature.h:58
MuonFeature_p3::m_allTheFloats
float m_allTheFloats[23]
Definition: MuonFeature_p3.h:75
MuonFeature::sp2_slope
float sp2_slope(void) const
Definition: MuonFeature.h:61
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuonFeature_p3::m_allTheInts
int m_allTheInts[2]
Definition: MuonFeature_p3.h:51
MuonFeature::ec_beta
float ec_beta(void) const
Definition: MuonFeature.h:68
MuonFeature::pt
float pt(void) const
Definition: MuonFeature.h:48
MuonFeature_p3::m_algoId
MuonFeature::AlgoId m_algoId
Definition: MuonFeature_p3.h:48
MuonFeature::beta
float beta(void) const
Definition: MuonFeature.h:55
MuonFeature::sp2_r
float sp2_r(void) const
Definition: MuonFeature.h:59
MuonFeature::zeta
float zeta(void) const
Definition: MuonFeature.h:53