ATLAS Offline Software
SETrackInfoCnv_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  if (!pa->isPhoton()) {
22  m_eleElementLinkCnv.transToPers(&pa->electronLink(), &pb->m_electron, msg);
23  }
24  else {
25  m_phoElementLinkCnv.transToPers(&pa->photonLink(), &pb->m_photon, msg);
26  }
27  }
28 
30  {
31  if (pa->m_electron.m_SGKeyHash != 0) {
32  assert (pa->m_photon.m_SGKeyHash == 0);
35  *pb = SETrackInfo (eleLink,
36  pa->m_valD0wrtPV,
37  pa->m_pTrel,
38  std::vector<double> (pa->m_tagLikelihood.begin(),
39  pa->m_tagLikelihood.end()));
40 
41  }
42  else {
45  *pb = SETrackInfo (phoLink,
46  pa->m_valD0wrtPV,
47  pa->m_pTrel,
48  std::vector<double> (pa->m_tagLikelihood.begin(),
49  pa->m_tagLikelihood.end()));
50  }
51  }
52 }
Analysis::SETrackInfo_p1::m_electron
ElementLinkInt_p1 m_electron
Definition: SETrackInfo_p1.h:30
Analysis::SETrackInfo::isPhoton
bool isPhoton() const
Definition: SETrackInfo.cxx:78
keylayer_zslicemap.pb
pb
Definition: keylayer_zslicemap.py:188
Analysis::SETrackInfoCnv_p1::transToPers
virtual void transToPers(const SETrackInfo *transObj, SETrackInfo_p1 *persObj, MsgStream &log)
Definition: SETrackInfoCnv_p1.cxx:15
Analysis::SETrackInfo::tagLikelihood
const std::vector< double > & tagLikelihood() const
Definition: SETrackInfo.h:45
Analysis::SETrackInfo::pTrel
double pTrel() const
Definition: SETrackInfo.h:44
Analysis::SETrackInfoCnv_p1::persToTrans
virtual void persToTrans(const SETrackInfo_p1 *persObj, SETrackInfo *transObj, MsgStream &log)
Definition: SETrackInfoCnv_p1.cxx:29
Analysis::SETrackInfo::electronLink
const ElementLink< ElectronContainer > & electronLink() const
Definition: SETrackInfo.h:46
Analysis::SETrackInfo::d0Value
double d0Value() const
Definition: SETrackInfo.h:43
Analysis::SETrackInfo_p1::m_tagLikelihood
std::vector< float > m_tagLikelihood
Definition: SETrackInfo_p1.h:34
ElementLinkCnv_p1::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
Analysis::SETrackInfo_p1::m_valD0wrtPV
float m_valD0wrtPV
Definition: SETrackInfo_p1.h:32
SETrackInfo.h
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::SETrackInfo::photonLink
const ElementLink< PhotonContainer > & photonLink() const
Definition: SETrackInfo.h:47
ElementLinkCnv_p1::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
Analysis::SETrackInfoCnv_p1::m_eleElementLinkCnv
ElementLinkCnv_p1< ElementLink< ElectronContainer > > m_eleElementLinkCnv
Definition: SETrackInfoCnv_p1.h:28
Analysis::SETrackInfo
Definition: SETrackInfo.h:20
SETrackInfoCnv_p1.h
Analysis::SETrackInfo_p1::m_photon
ElementLinkInt_p1 m_photon
Definition: SETrackInfo_p1.h:31
Analysis::SETrackInfo_p1
Definition: SETrackInfo_p1.h:20
Analysis::SETrackInfo_p1::m_pTrel
float m_pTrel
Definition: SETrackInfo_p1.h:33
Analysis::SETrackInfoCnv_p1::m_phoElementLinkCnv
ElementLinkCnv_p1< ElementLink< PhotonContainer > > m_phoElementLinkCnv
Definition: SETrackInfoCnv_p1.h:29
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7