ATLAS Offline Software
CombinedMuonFeatureCnv_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 
8 
9 //-----------------------------------------------------------------------------
10 // Persistent to transient
11 //-----------------------------------------------------------------------------
13  CombinedMuonFeature *transObj,
14  MsgStream &log )
15 {
16  log << MSG::DEBUG << "CombinedMuonFeatureCnv_p2::persToTrans called " << endmsg;
17 
19  m_elementLinkMuFeatCnv.persToTrans( &persObj->m_muFastTrack, &muFastTrack, log );
20 
22  m_elementLinkInDetTrackCnv.persToTrans( &persObj->m_IDTrack, &IDTrack, log );
23 
24  *transObj = CombinedMuonFeature (persObj->m_pt,
25  persObj->m_sigma_pt,
26  0, // m_charge
27  0, // m_flag
28  muFastTrack,
29  IDTrack);
30 }
31 
32 //-----------------------------------------------------------------------------
33 // Transient to persistent
34 //-----------------------------------------------------------------------------
36  CombinedMuonFeature_p2 *persObj,
37  MsgStream &log )
38 {
39  log << MSG::DEBUG << "CombinedMuonFeatureCnv_p2::transToPers called " << endmsg;
40 
41  persObj->m_pt = transObj->pt();
42  persObj->m_sigma_pt = transObj->sigma_pt_raw();
43 
46 
47 }
CombinedMuonFeatureCnv_p2.h
CombinedMuonFeature_p2.h
CombinedMuonFeatureCnv_p2::m_elementLinkInDetTrackCnv
ElementLinkCnv_p1< ElementLink< TrigInDetTrackCollection > > m_elementLinkInDetTrackCnv
Definition: CombinedMuonFeatureCnv_p2.h:42
CombinedMuonFeature_p2::m_IDTrack
ElementLinkInt_p1 m_IDTrack
Definition: CombinedMuonFeature_p2.h:24
CombinedMuonFeature::pt
double pt(void) const
transverse momentum
Definition: CombinedMuonFeature.h:56
CombinedMuonFeature.h
CombinedMuonFeature::IDTrackLink
const ElementLink< TrigInDetTrackCollection > & IDTrackLink(void) const
Definition: CombinedMuonFeature.h:68
CombinedMuonFeature_p2
Definition: CombinedMuonFeature_p2.h:10
ElementLinkCnv_p1::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CombinedMuonFeature
Definition: CombinedMuonFeature.h:30
ElementLinkCnv_p1::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
CombinedMuonFeature_p2::m_pt
float m_pt
Definition: CombinedMuonFeature_p2.h:21
CombinedMuonFeature_p2::m_muFastTrack
ElementLinkInt_p1 m_muFastTrack
Definition: CombinedMuonFeature_p2.h:23
CombinedMuonFeature_p2::m_sigma_pt
float m_sigma_pt
Definition: CombinedMuonFeature_p2.h:22
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CombinedMuonFeatureCnv_p2::transToPers
virtual void transToPers(const CombinedMuonFeature *transObj, CombinedMuonFeature_p2 *persObj, MsgStream &log)
Definition: CombinedMuonFeatureCnv_p2.cxx:35
CombinedMuonFeatureCnv_p2::m_elementLinkMuFeatCnv
ElementLinkCnv_p1< ElementLink< MuonFeatureContainer > > m_elementLinkMuFeatCnv
Definition: CombinedMuonFeatureCnv_p2.h:41
CombinedMuonFeature::muFastTrackLink
const ElementLink< MuonFeatureContainer > & muFastTrackLink(void) const
Definition: CombinedMuonFeature.h:67
CombinedMuonFeature::sigma_pt_raw
double sigma_pt_raw(void) const
Definition: CombinedMuonFeature.h:60
CombinedMuonFeatureCnv_p2::persToTrans
virtual void persToTrans(const CombinedMuonFeature_p2 *persObj, CombinedMuonFeature *transObj, MsgStream &log)
Definition: CombinedMuonFeatureCnv_p2.cxx:12