ATLAS Offline Software
Trigger
TrigEvent
TrigMuonEventTPCnv
src
CombinedMuonFeatureCnv_p1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigMuonEvent/CombinedMuonFeature.h
"
6
#include "
TrigMuonEventTPCnv/CombinedMuonFeature_p1.h
"
7
#include "
TrigMuonEventTPCnv/CombinedMuonFeatureCnv_p1.h
"
8
9
//-----------------------------------------------------------------------------
10
// Persistent to transient
11
//-----------------------------------------------------------------------------
12
void
CombinedMuonFeatureCnv_p1::persToTrans
(
const
CombinedMuonFeature_p1
*persObj,
13
CombinedMuonFeature
*transObj,
14
MsgStream &
log
)
15
{
16
log
<<
MSG::DEBUG
<<
"CombinedMuonFeatureCnv_p1::persToTrans called "
<<
endmsg
;
17
18
//need to get the ElementLink from the pointer...
19
// transObj->m_muFastTrack = createTransFromPStore( &m_mfCnv, persObj->m_muFastTrack, log );
20
// transObj->m_IDTrack = createTransFromPStore( &m_IDTkCnv, persObj->m_IDTrack, log );
21
22
*transObj =
CombinedMuonFeature
(persObj->
m_pt
,
23
persObj->
m_sigma_pt
,
24
0,
// m_charge
25
0,
// m_flag
26
ElementLink< MuonFeatureContainer>
(),
27
ElementLink< TrigInDetTrackCollection>
());
28
}
29
30
//-----------------------------------------------------------------------------
31
// Transient to persistent
32
//-----------------------------------------------------------------------------
33
void
CombinedMuonFeatureCnv_p1::transToPers
(
const
CombinedMuonFeature
*
/*transObj*/
,
34
CombinedMuonFeature_p1
*
/*persObj*/
,
35
MsgStream &
log
)
36
{
37
log
<< MSG::WARNING <<
"CombinedMuonFeatureCnv_p1::transToPers called but CombinedMuonFeatureCnv_p2 exists!! "
<<
endmsg
;
38
39
//persObj->m_pt = transObj->m_pt;
40
//persObj->m_sigma_pt = transObj->m_sigma_pt;
41
//persObj->m_muFastTrack = toPersistent( &m_mfCnv, transObj->m_muFastTrack, log );
42
//persObj->m_IDTrack = toPersistent( &m_IDTkCnv, transObj->m_IDTrack, log );
43
44
}
CombinedMuonFeature_p1::m_pt
float m_pt
Definition:
CombinedMuonFeature_p1.h:21
CombinedMuonFeatureCnv_p1.h
CombinedMuonFeature_p1::m_sigma_pt
float m_sigma_pt
Definition:
CombinedMuonFeature_p1.h:22
CombinedMuonFeatureCnv_p1::transToPers
virtual void transToPers(const CombinedMuonFeature *transObj, CombinedMuonFeature_p1 *persObj, MsgStream &log)
Definition:
CombinedMuonFeatureCnv_p1.cxx:33
CombinedMuonFeature.h
CombinedMuonFeatureCnv_p1::persToTrans
virtual void persToTrans(const CombinedMuonFeature_p1 *persObj, CombinedMuonFeature *transObj, MsgStream &log)
Definition:
CombinedMuonFeatureCnv_p1.cxx:12
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
CombinedMuonFeature
Definition:
CombinedMuonFeature.h:30
ElementLink< MuonFeatureContainer >
CombinedMuonFeature_p1
Definition:
CombinedMuonFeature_p1.h:10
DEBUG
#define DEBUG
Definition:
page_access.h:11
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
CombinedMuonFeature_p1.h
Generated on Thu Nov 7 2024 21:12:06 for ATLAS Offline Software by
1.8.18