ATLAS Offline Software
IsoMuonFeatureCnv_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 
7 
8 //-----------------------------------------------------------------------------
9 // Persistent to transient
10 //-----------------------------------------------------------------------------
12  IsoMuonFeature *transObj,
13  MsgStream &log )
14 {
15  log << MSG::DEBUG << "IsoMuonFeatureCnv_p3::persToTrans called " << endmsg;
16 
17  transObj->m_sumet01 = persObj->m_allTheFloats[0] ;
18  transObj->m_sumet02 = persObj->m_allTheFloats[1] ;
19  transObj->m_sumet03 = persObj->m_allTheFloats[2] ;
20  transObj->m_sumet04 = persObj->m_allTheFloats[3] ;
21  transObj->m_sumpt01 = persObj->m_allTheFloats[4] ;
22  transObj->m_sumpt02 = persObj->m_allTheFloats[5] ;
23  transObj->m_sumpt03 = persObj->m_allTheFloats[6] ;
24  transObj->m_sumpt04 = persObj->m_allTheFloats[7] ;
25  transObj->m_PtMuID = persObj->m_allTheFloats[8] ;
26  transObj->m_MaxPtID = persObj->m_allTheFloats[9] ;
27  transObj->m_flag = persObj->m_flag ;
28 
29  transObj->m_RoiIdMu = persObj->m_RoiIdMu ;
30  transObj->m_PtMu = persObj->m_allTheFloats[10] ;
31  transObj->m_QMu = persObj->m_allTheFloats[11] ;
32  transObj->m_EtaMu = persObj->m_allTheFloats[12] ;
33  transObj->m_PhiMu = persObj->m_allTheFloats[13] ;
34 
35 }
36 
37 //-----------------------------------------------------------------------------
38 // Transient to persistent
39 //-----------------------------------------------------------------------------
41  IsoMuonFeature_p3 *persObj,
42  MsgStream &log )
43 {
44  log << MSG::DEBUG << "IsoMuonFeatureCnv_p3::transToPers called " << endmsg;
45 
46  persObj->m_allTheFloats[0] = transObj->m_sumet01 ;
47  persObj->m_allTheFloats[1] = transObj->m_sumet02 ;
48  persObj->m_allTheFloats[2] = transObj->m_sumet03 ;
49  persObj->m_allTheFloats[3] = transObj->m_sumet04 ;
50  persObj->m_allTheFloats[4] = transObj->m_sumpt01 ;
51  persObj->m_allTheFloats[5] = transObj->m_sumpt02 ;
52  persObj->m_allTheFloats[6] = transObj->m_sumpt03 ;
53  persObj->m_allTheFloats[7] = transObj->m_sumpt04 ;
54  persObj->m_allTheFloats[8] = transObj->m_PtMuID ;
55  persObj->m_allTheFloats[9] = transObj->m_MaxPtID ;
56 
57  persObj->m_flag = transObj->m_flag ;
58  persObj->m_RoiIdMu = transObj->m_RoiIdMu ;
59 
60  persObj->m_allTheFloats[10] = transObj->m_PtMu ;
61  persObj->m_allTheFloats[11] = transObj->m_QMu ;
62  persObj->m_allTheFloats[12] = transObj->m_EtaMu ;
63  persObj->m_allTheFloats[13] = transObj->m_PhiMu ;
64 
65 }
IsoMuonFeature::m_QMu
float m_QMu
Muon Charge.
Definition: IsoMuonFeature.h:186
IsoMuonFeatureCnv_p3::transToPers
virtual void transToPers(const IsoMuonFeature *transObj, IsoMuonFeature_p3 *persObj, MsgStream &log)
Definition: IsoMuonFeatureCnv_p3.cxx:40
IsoMuonFeature_p3
Definition: IsoMuonFeature_p3.h:18
IsoMuonFeatureCnv_p3::persToTrans
virtual void persToTrans(const IsoMuonFeature_p3 *persObj, IsoMuonFeature *transObj, MsgStream &log)
Definition: IsoMuonFeatureCnv_p3.cxx:11
IsoMuonFeature::m_RoiIdMu
int m_RoiIdMu
ROI ID.
Definition: IsoMuonFeature.h:182
IsoMuonFeature_p3::m_allTheFloats
float m_allTheFloats[14]
Definition: IsoMuonFeature_p3.h:37
IsoMuonFeature_p3::m_flag
int m_flag
Definition: IsoMuonFeature_p3.h:38
IsoMuonFeature::m_sumpt03
float m_sumpt03
Definition: IsoMuonFeature.h:170
IsoMuonFeature::m_sumpt01
float m_sumpt01
Track based isolation.
Definition: IsoMuonFeature.h:168
IsoMuonFeature::m_sumet01
float m_sumet01
Calo based isolation.
Definition: IsoMuonFeature.h:162
IsoMuonFeature::m_flag
int m_flag
Definition: IsoMuonFeature.h:178
IsoMuonFeatureCnv_p3.h
IsoMuonFeature::m_PhiMu
float m_PhiMu
Muon Phi.
Definition: IsoMuonFeature.h:190
IsoMuonFeature::m_EtaMu
float m_EtaMu
Muon Eta.
Definition: IsoMuonFeature.h:188
IsoMuonFeature_p3::m_RoiIdMu
int m_RoiIdMu
Definition: IsoMuonFeature_p3.h:39
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
IsoMuonFeature.h
IsoMuonFeature::m_sumet02
float m_sumet02
Definition: IsoMuonFeature.h:163
IsoMuonFeature::m_sumpt02
float m_sumpt02
Definition: IsoMuonFeature.h:169
IsoMuonFeature::m_MaxPtID
float m_MaxPtID
pt of highest pt track in cone (excluded the one associated to the muon)
Definition: IsoMuonFeature.h:176
IsoMuonFeature
Class with isolation variables for TrigmuIso algorithm.
Definition: IsoMuonFeature.h:41
IsoMuonFeature::m_sumet04
float m_sumet04
Definition: IsoMuonFeature.h:165
IsoMuonFeature::m_PtMu
float m_PtMu
Muon Pt.
Definition: IsoMuonFeature.h:184
IsoMuonFeature::m_sumet03
float m_sumet03
Definition: IsoMuonFeature.h:164
IsoMuonFeature::m_sumpt04
float m_sumpt04
Definition: IsoMuonFeature.h:171
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
IsoMuonFeature::m_PtMuID
float m_PtMuID
Pt of charged track associated to the muon.
Definition: IsoMuonFeature.h:174