ATLAS Offline Software
IsoMuonFeatureCnv_p2.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_p2::persToTrans called " << endmsg;
16 
17  transObj->m_EtInnerConeEC = persObj->m_allTheFloats[0] ;
18  transObj->m_EtOuterConeEC = persObj->m_allTheFloats[1] ;
19  transObj->m_EtInnerConeHC = persObj->m_allTheFloats[2] ;
20  transObj->m_EtOuterConeHC = persObj->m_allTheFloats[3] ;
21 
22  transObj->m_NTracksCone = persObj->m_NTracksCone ;
23 
24  transObj->m_SumPtTracksCone = persObj->m_allTheFloats[4] ;
25  transObj->m_PtMuTracksCone = persObj->m_allTheFloats[5] ;
26  transObj->m_LAr_w = persObj->m_allTheFloats[6] ;
27  transObj->m_Tile_w = persObj->m_allTheFloats[7] ;
28 
29  transObj->m_RoiIdMu = persObj->m_RoiIdMu ;
30 
31  transObj->m_PtMu = persObj->m_allTheFloats[8] ;
32  transObj->m_EtaMu = persObj->m_allTheFloats[9] ;
33  transObj->m_PhiMu = persObj->m_allTheFloats[10] ;
34 
35 }
36 
37 //-----------------------------------------------------------------------------
38 // Transient to persistent
39 //-----------------------------------------------------------------------------
41  IsoMuonFeature_p2 *persObj,
42  MsgStream &log )
43 {
44  log << MSG::DEBUG << "IsoMuonFeatureCnv_p1::transToPers called " << endmsg;
45 
46  persObj->m_allTheFloats[0] = transObj->m_EtInnerConeEC ;
47  persObj->m_allTheFloats[1] = transObj->m_EtOuterConeEC ;
48  persObj->m_allTheFloats[2] = transObj->m_EtInnerConeHC ;
49  persObj->m_allTheFloats[3] = transObj->m_EtOuterConeHC ;
50 
51  persObj->m_NTracksCone = transObj->m_NTracksCone ;
52 
53  persObj->m_allTheFloats[4] = transObj->m_SumPtTracksCone ;
54  persObj->m_allTheFloats[5] = transObj->m_PtMuTracksCone ;
55  persObj->m_allTheFloats[6] = transObj->m_LAr_w ;
56  persObj->m_allTheFloats[7] = transObj->m_Tile_w ;
57 
58  persObj->m_RoiIdMu = transObj->m_RoiIdMu ;
59 
60  persObj->m_allTheFloats[8] = transObj->m_PtMu ;
61  persObj->m_allTheFloats[9] = transObj->m_EtaMu ;
62  persObj->m_allTheFloats[10] = transObj->m_PhiMu ;
63 
64 
65 }
IsoMuonFeature::m_NTracksCone
int m_NTracksCone
Definition: IsoMuonFeature.h:197
IsoMuonFeature_p2::m_NTracksCone
int m_NTracksCone
Definition: IsoMuonFeature_p2.h:50
IsoMuonFeature::m_EtOuterConeEC
float m_EtOuterConeEC
Definition: IsoMuonFeature.h:194
IsoMuonFeature_p2
Definition: IsoMuonFeature_p2.h:23
IsoMuonFeature::m_PtMuTracksCone
float m_PtMuTracksCone
Definition: IsoMuonFeature.h:199
IsoMuonFeature::m_RoiIdMu
int m_RoiIdMu
ROI ID.
Definition: IsoMuonFeature.h:182
IsoMuonFeature::m_PhiMu
float m_PhiMu
Muon Phi.
Definition: IsoMuonFeature.h:190
IsoMuonFeature::m_EtaMu
float m_EtaMu
Muon Eta.
Definition: IsoMuonFeature.h:188
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
IsoMuonFeatureCnv_p2::persToTrans
virtual void persToTrans(const IsoMuonFeature_p2 *persObj, IsoMuonFeature *transObj, MsgStream &log)
Definition: IsoMuonFeatureCnv_p2.cxx:11
IsoMuonFeature.h
IsoMuonFeature::m_Tile_w
float m_Tile_w
Definition: IsoMuonFeature.h:201
IsoMuonFeatureCnv_p2::transToPers
virtual void transToPers(const IsoMuonFeature *transObj, IsoMuonFeature_p2 *persObj, MsgStream &log)
Definition: IsoMuonFeatureCnv_p2.cxx:40
IsoMuonFeature
Class with isolation variables for TrigmuIso algorithm.
Definition: IsoMuonFeature.h:41
IsoMuonFeature::m_PtMu
float m_PtMu
Muon Pt.
Definition: IsoMuonFeature.h:184
IsoMuonFeature::m_EtInnerConeEC
float m_EtInnerConeEC
Definition: IsoMuonFeature.h:193
IsoMuonFeature::m_SumPtTracksCone
float m_SumPtTracksCone
Definition: IsoMuonFeature.h:198
IsoMuonFeature::m_EtInnerConeHC
float m_EtInnerConeHC
Definition: IsoMuonFeature.h:195
IsoMuonFeature_p2::m_allTheFloats
float m_allTheFloats[11]
Definition: IsoMuonFeature_p2.h:45
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
IsoMuonFeatureCnv_p2.h
IsoMuonFeature_p2::m_RoiIdMu
int m_RoiIdMu
Definition: IsoMuonFeature_p2.h:55
IsoMuonFeature::m_LAr_w
float m_LAr_w
Definition: IsoMuonFeature.h:200
IsoMuonFeature::m_EtOuterConeHC
float m_EtOuterConeHC
Definition: IsoMuonFeature.h:196