ATLAS Offline Software
TrigMuonEFCbTrackCnv_p7.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
10 
12 static const TrackLinkCnv_t trackCnv;
13 
15  // std::cout << "TrigMuonEFCbTrackCnv_p7::persToTrans called " <<std::endl;
16 
17  //log << MSG::DEBUG << "Called TrigMuonEFCbTrackCnv_p7::persToTrans" << endmsg;
18  transObj->setMatchChi2 (persObj->m_matchChi2);
19  transObj->setNIdSctHits (persObj->m_nIdSctHits);
20  transObj->setNIdPixelHits (persObj->m_nIdPixelHits);
21  transObj->setNTrtHits (persObj->m_nTrtHits);
22 
24  trackCnv.persToTrans(&persObj->m_idTrackLink, &idTrackLink, log);
26 
28 }
29 
30 
32  // std::cout << "TrigMuonEFCbTrackCnv_p7::transToPers called " << std::endl;
33 
34  //log << MSG::DEBUG << "Called TrigMuonEFCbTrackCnv_p7::transToPers" << endmsg;
35  persObj->m_matchChi2 = transObj->matchChi2();
36  persObj->m_nIdSctHits = transObj->NIdSctHits();
37  persObj->m_nIdPixelHits = transObj->NIdPixelHits();
38  persObj->m_nTrtHits = transObj->NTrtHits();
39 
40  trackCnv.transToPers(&transObj->getIDTrackParticleLink(), &persObj->m_idTrackLink, log);
41 
42  // std::cout << "TrigMuonEFCbTrackCnv_p7::transToPers before base TrackCnv" << std::endl;
44  // std::cout << "TrigMuonEFCbTrackCnv_p7::transToPers after base TrackCnv" << std::endl;
45 }
TrigMuonEFCbTrack_p7::m_nTrtHits
unsigned short int m_nTrtHits
Definition: TrigMuonEFCbTrack_p7.h:43
ElementLinkCnv_p3
Definition: ElementLinkCnv_p3.h:27
TrigMuonEFCbTrack::NTrtHits
unsigned short int NTrtHits() const
Definition: TrigMuonEFCbTrack.h:78
TrigMuonEFCbTrack.h
TrigMuonEFCbTrackCnv_p7::persToTrans
virtual void persToTrans(const TrigMuonEFCbTrack_p7 *persObj, TrigMuonEFCbTrack *transObj, MsgStream &log)
Definition: TrigMuonEFCbTrackCnv_p7.cxx:14
TrigMuonEFCbTrackCnv_p7::transToPers
virtual void transToPers(const TrigMuonEFCbTrack *transObj, TrigMuonEFCbTrack_p7 *persObj, MsgStream &log)
Definition: TrigMuonEFCbTrackCnv_p7.cxx:31
TrigMuonEFCbTrack_p7::m_nIdSctHits
unsigned short int m_nIdSctHits
Definition: TrigMuonEFCbTrack_p7.h:41
TrigMuonEFCbTrack::NIdSctHits
unsigned short int NIdSctHits() const
Definition: TrigMuonEFCbTrack.h:58
TrigMuonEFCbTrack::getIDTrackParticleLink
const ElementLink< Rec::TrackParticleContainer > & getIDTrackParticleLink() const
Definition: TrigMuonEFCbTrack.h:53
ITPConverterFor::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
TrackLinkCnv_t
ElementLinkCnv_p3< ElementLink< Rec::TrackParticleContainer > > TrackLinkCnv_t
Definition: TrigMuonEFCbTrackCnv_p7.cxx:9
TrigMuonEFCbTrackCnv_p7::m_TrigMuonEFTrackCnv
ITPConverterFor< TrigMuonEFTrack > * m_TrigMuonEFTrackCnv
Definition: TrigMuonEFCbTrackCnv_p7.h:37
xAOD::idTrackLink
setStrategy setMatchFlag idTrackLink
Definition: L2CombinedMuon_v1.cxx:117
TrigMuonEFCbTrack_p7::m_nIdPixelHits
unsigned short int m_nIdPixelHits
Definition: TrigMuonEFCbTrack_p7.h:42
TrigMuonEFCbTrack::setIDTrackElementLink
void setIDTrackElementLink(const ElementLink< Rec::TrackParticleContainer > &link)
Set associated ID track.
Definition: TrigMuonEFCbTrack.cxx:112
ElementLinkCnv_p1::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
TrigMuonEFCbTrack::setNTrtHits
void setNTrtHits(unsigned short int nTrtHits)
Definition: TrigMuonEFCbTrack.h:83
TrigMuonEFCbTrack::matchChi2
double matchChi2() const
Definition: TrigMuonEFCbTrack.h:56
TrigMuonEFCbTrackCnv_p7.h
TrigMuonEFCbTrack::setNIdPixelHits
void setNIdPixelHits(unsigned short int nIdPixelHits)
Definition: TrigMuonEFCbTrack.h:73
ElementLinkCnv_p1< ElementLink< Rec::TrackParticleContainer > >
ITPConverterFor::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
TrigMuonEFCbTrack
Definition: TrigMuonEFCbTrack.h:28
TrigMuonEFCbTrack::setMatchChi2
void setMatchChi2(double theMatchChi2)
set data member
Definition: TrigMuonEFCbTrack.cxx:81
ElementLinkCnv_p1::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
TrigMuonEFCbTrack_p7::m_matchChi2
float m_matchChi2
Definition: TrigMuonEFCbTrack_p7.h:40
TrigMuonEFCbTrack_p7::m_idTrackLink
ElementLinkInt_p3 m_idTrackLink
Definition: TrigMuonEFCbTrack_p7.h:46
TrigMuonEFCbTrack::setNIdSctHits
void setNIdSctHits(unsigned short int nIdSctHits)
Definition: TrigMuonEFCbTrack.h:63
TrigMuonEFCbTrack::NIdPixelHits
unsigned short int NIdPixelHits() const
Definition: TrigMuonEFCbTrack.h:68
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigMuonEFCbTrack_p7::m_TrigMuonEFTrack
TPObjRef m_TrigMuonEFTrack
Definition: TrigMuonEFCbTrack_p7.h:45
TrigMuonEFCbTrack_p7
Definition: TrigMuonEFCbTrack_p7.h:22
TrigMuonEFCbTrack_p7.h