ATLAS Offline Software
SMTrackInfoCnv_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 
8 
11 
12 
13 namespace Analysis {
14 
16  pb->m_valD0wrtPV = pa->d0Value();
17  pb->m_pTrel = pa->pTrel();
18  pb->m_tagLikelihood.assign(pa->tagLikelihood().begin(),
19  pa->tagLikelihood().end());
20 
21  m_elementLinkCnv.transToPers(&pa->muonLink(), &pb->m_muon, msg);
22 
23  }
24 
26  {
28  m_elementLinkCnv.persToTrans(&pa->m_muon, &muonLink, msg);
29 
30  *pb = SMTrackInfo (muonLink,
31  pa->m_valD0wrtPV,
32  pa->m_pTrel,
33  std::vector<double> (pa->m_tagLikelihood.begin(),
34  pa->m_tagLikelihood.end()));
35  }
36 
37 }
SMTrackInfo.h
Analysis::SMTrackInfo_p1::m_muon
ElementLinkInt_p1 m_muon
Definition: SMTrackInfo_p1.h:30
keylayer_zslicemap.pb
pb
Definition: keylayer_zslicemap.py:188
Analysis::SMTrackInfoCnv_p1::m_elementLinkCnv
ElementLinkCnv_p1< ElementLink< MuonContainer > > m_elementLinkCnv
Definition: SMTrackInfoCnv_p1.h:27
SMTrackInfoCnv_p1.h
Analysis::SMTrackInfo::pTrel
double pTrel() const
Definition: SMTrackInfo.h:32
Analysis::SMTrackInfo_p1
Definition: SMTrackInfo_p1.h:20
Analysis::SMTrackInfo::d0Value
double d0Value() const
Definition: SMTrackInfo.h:31
Analysis::SMTrackInfoCnv_p1::persToTrans
virtual void persToTrans(const SMTrackInfo_p1 *persObj, SMTrackInfo *transObj, MsgStream &log)
Definition: SMTrackInfoCnv_p1.cxx:25
Analysis::SMTrackInfo_p1::m_pTrel
float m_pTrel
Definition: SMTrackInfo_p1.h:32
Analysis::SMTrackInfoCnv_p1::transToPers
virtual void transToPers(const SMTrackInfo *transObj, SMTrackInfo_p1 *persObj, MsgStream &log)
Definition: SMTrackInfoCnv_p1.cxx:15
Analysis::SMTrackInfo_p1::m_valD0wrtPV
float m_valD0wrtPV
Definition: SMTrackInfo_p1.h:31
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::SMTrackInfo::tagLikelihood
const std::vector< double > & tagLikelihood() const
Definition: SMTrackInfo.h:33
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
Analysis::SMTrackInfo::muonLink
const ElementLink< MuonContainer > & muonLink() const
Definition: SMTrackInfo.h:30
Analysis::SMTrackInfo_p1::m_tagLikelihood
std::vector< float > m_tagLikelihood
Definition: SMTrackInfo_p1.h:33
Analysis::SMTrackInfo
Definition: SMTrackInfo.h:17