ATLAS Offline Software
CombinedMuonFeatureCnv_p4.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_p4::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  persObj->m_charge,
27  persObj->m_flag,
28  muFastTrack,
29  IDTrack);
30 }
31 
32 //-----------------------------------------------------------------------------
33 // Transient to persistent
34 //-----------------------------------------------------------------------------
36  CombinedMuonFeature_p4 *persObj,
37  MsgStream &log )
38 {
39  log << MSG::DEBUG << "CombinedMuonFeatureCnv_p4::transToPers called " << endmsg;
40 
41  persObj->m_pt = transObj->pt();
42  persObj->m_sigma_pt = transObj->sigma_pt_raw();
43  persObj->m_charge = transObj->charge();
44  persObj->m_flag = transObj->getFlag(),
45 
48 
49 }
CombinedMuonFeature::charge
double charge(void) const
Definition: CombinedMuonFeature.h:57
CombinedMuonFeatureCnv_p4.h
ElementLinkCnv_p3::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
CombinedMuonFeatureCnv_p4::m_elementLinkMuFeatCnv
ElementLinkCnv_p3< ElementLink< MuonFeatureContainer > > m_elementLinkMuFeatCnv
Definition: CombinedMuonFeatureCnv_p4.h:43
CombinedMuonFeature::getFlag
int getFlag(void) const
Definition: CombinedMuonFeature.h:64
CombinedMuonFeature::pt
double pt(void) const
transverse momentum
Definition: CombinedMuonFeature.h:56
CombinedMuonFeature_p4.h
CombinedMuonFeature.h
CombinedMuonFeature::IDTrackLink
const ElementLink< TrigInDetTrackCollection > & IDTrackLink(void) const
Definition: CombinedMuonFeature.h:68
CombinedMuonFeatureCnv_p4::transToPers
virtual void transToPers(const CombinedMuonFeature *transObj, CombinedMuonFeature_p4 *persObj, MsgStream &log)
Definition: CombinedMuonFeatureCnv_p4.cxx:35
ElementLinkCnv_p3::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
CombinedMuonFeature_p4::m_flag
int m_flag
Definition: CombinedMuonFeature_p4.h:24
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CombinedMuonFeature_p4
Definition: CombinedMuonFeature_p4.h:10
CombinedMuonFeature_p4::m_charge
float m_charge
Definition: CombinedMuonFeature_p4.h:23
CombinedMuonFeature_p4::m_sigma_pt
float m_sigma_pt
Definition: CombinedMuonFeature_p4.h:22
CombinedMuonFeature
Definition: CombinedMuonFeature.h:30
CombinedMuonFeatureCnv_p4::m_elementLinkInDetTrackCnv
ElementLinkCnv_p3< ElementLink< TrigInDetTrackCollection > > m_elementLinkInDetTrackCnv
Definition: CombinedMuonFeatureCnv_p4.h:44
CombinedMuonFeature_p4::m_muFastTrack
ElementLinkInt_p3 m_muFastTrack
Definition: CombinedMuonFeature_p4.h:25
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CombinedMuonFeatureCnv_p4::persToTrans
virtual void persToTrans(const CombinedMuonFeature_p4 *persObj, CombinedMuonFeature *transObj, MsgStream &log)
Definition: CombinedMuonFeatureCnv_p4.cxx:12
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
CombinedMuonFeature_p4::m_IDTrack
ElementLinkInt_p3 m_IDTrack
Definition: CombinedMuonFeature_p4.h:26
CombinedMuonFeature_p4::m_pt
float m_pt
Definition: CombinedMuonFeature_p4.h:21