ATLAS Offline Software
Loading...
Searching...
No Matches
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
13namespace 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}
virtual void transToPers(const SMTrackInfo *transObj, SMTrackInfo_p1 *persObj, MsgStream &log)
virtual void persToTrans(const SMTrackInfo_p1 *persObj, SMTrackInfo *transObj, MsgStream &log)
ElementLinkCnv_p1< ElementLink< MuonContainer > > m_elementLinkCnv
std::vector< float > m_tagLikelihood
ElementLinkInt_p1 m_muon
const std::vector< double > & tagLikelihood() const
Definition SMTrackInfo.h:33
const ElementLink< MuonContainer > & muonLink() const
Definition SMTrackInfo.h:30
double pTrel() const
Definition SMTrackInfo.h:32
double d0Value() const
Definition SMTrackInfo.h:31
The namespace of all packages in PhysicsAnalysis/JetTagging.
MsgStream & msg
Definition testRead.cxx:32