ATLAS Offline Software
TileTrackMuFeatureCnv_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 
8 
9 //-----------------------------------------------------------------------------
10 // Persistent to transient
11 //-----------------------------------------------------------------------------
13  TileTrackMuFeature *transObj,
14  MsgStream &log )
15 {
16  log << MSG::DEBUG << "TileTrackMuFeatureCnv_p3::persToTrans called " << endmsg;
17 
19  m_ELink_TileMuCnv.persToTrans( &persObj->m_TileMu, &tileMuOutput, log);
20 
22  m_ELink_IDTkCnv.persToTrans( &persObj->m_Track, &IDScanOutput, log);
23 
24  *transObj = TileTrackMuFeature (persObj->m_allTheFloats[0], // PtTR_Trk
25  persObj->m_allTheFloats[1], // EtaTR_Trk
26  persObj->m_allTheFloats[2], // PhiTR_Trk
27  persObj->m_Typ_IDTrk,
28  tileMuOutput,
29  IDScanOutput);
30 }
31 
32 //-----------------------------------------------------------------------------
33 // Transient to persistent
34 //-----------------------------------------------------------------------------
36  TileTrackMuFeature_p3 *persObj,
37  MsgStream &log )
38 {
39  log << MSG::DEBUG << "TileTrackMuFeatureCnv_p3::transToPers called " << endmsg;
40 
41  persObj->m_allTheFloats[0] = transObj->PtTR_Trk();
42  persObj->m_allTheFloats[1] = transObj->EtaTR_Trk();
43  persObj->m_allTheFloats[2] = transObj->PhiTR_Trk();
44  persObj->m_Typ_IDTrk = transObj->Typ_IDTrk();
45 
46  m_ELink_TileMuCnv.transToPers( &transObj->TileMuLink(), &persObj->m_TileMu, log);
47  m_ELink_IDTkCnv.transToPers( &transObj->IDScanLink(), &persObj->m_Track, log);
48 }
TileTrackMuFeature::PhiTR_Trk
double PhiTR_Trk() const
Definition: TileTrackMuFeature.h:68
ElementLinkCnv_p3::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
TileTrackMuFeatureCnv_p3::m_ELink_TileMuCnv
ElementLinkCnv_p3< ElementLink< TileMuFeatureContainer > > m_ELink_TileMuCnv
Definition: TileTrackMuFeatureCnv_p3.h:44
TileTrackMuFeature::Typ_IDTrk
int Typ_IDTrk() const
Definition: TileTrackMuFeature.h:69
TileTrackMuFeature_p3::m_TileMu
ElementLinkInt_p3 m_TileMu
Definition: TileTrackMuFeature_p3.h:26
TileTrackMuFeatureCnv_p3.h
ElementLinkCnv_p3::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
TileTrackMuFeature
Definition: TileTrackMuFeature.h:41
TileTrackMuFeature.h
TileTrackMuFeature::EtaTR_Trk
double EtaTR_Trk() const
Definition: TileTrackMuFeature.h:67
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TileTrackMuFeature_p3::m_allTheFloats
float m_allTheFloats[3]
Definition: TileTrackMuFeature_p3.h:20
TileTrackMuFeature_p3.h
TileTrackMuFeature_p3::m_Track
ElementLinkInt_p3 m_Track
Definition: TileTrackMuFeature_p3.h:27
TileTrackMuFeature::PtTR_Trk
double PtTR_Trk() const
Ovveride pure virtual methods.
Definition: TileTrackMuFeature.h:66
TileTrackMuFeature::TileMuLink
const ElementLink< TileMuFeatureContainer > & TileMuLink(void) const
Definition: TileTrackMuFeature.h:74
TileTrackMuFeature_p3
Definition: TileTrackMuFeature_p3.h:10
TileTrackMuFeatureCnv_p3::transToPers
virtual void transToPers(const TileTrackMuFeature *transObj, TileTrackMuFeature_p3 *persObj, MsgStream &log)
Definition: TileTrackMuFeatureCnv_p3.cxx:35
TileTrackMuFeature::IDScanLink
const ElementLink< TrigInDetTrackCollection > & IDScanLink(void) const
Definition: TileTrackMuFeature.h:75
TileTrackMuFeature_p3::m_Typ_IDTrk
int m_Typ_IDTrk
Definition: TileTrackMuFeature_p3.h:24
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TileTrackMuFeatureCnv_p3::m_ELink_IDTkCnv
ElementLinkCnv_p3< ElementLink< TrigInDetTrackCollection > > m_ELink_IDTkCnv
Definition: TileTrackMuFeatureCnv_p3.h:45
TileTrackMuFeatureCnv_p3::persToTrans
virtual void persToTrans(const TileTrackMuFeature_p3 *persObj, TileTrackMuFeature *transObj, MsgStream &log)
Definition: TileTrackMuFeatureCnv_p3.cxx:12