ATLAS Offline Software
MultiSVInfoPlusCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 #include "GaudiKernel/MsgStream.h"
9 
10 
11 namespace Analysis {
12 
13 
15  MultiSVInfoPlus_p1 *persObj,
16  MsgStream &msg)
17  {
20  transObj,
21  msg);
22 
24  persObj->m_NGTinJet = transObj->getNGTrackInJet();
25  persObj->m_NGTinSvx = transObj->getNGTrackInSvx();
26  persObj->m_N2Tpair = transObj->getN2T();
27  persObj->m_normdist = transObj->getNormDist();
28 
29 
30  persObj->m_vtxInfo.clear();
31  size_t sz = transObj->numVtxInfo();
32  persObj->m_vtxInfo.reserve(sz);
33  for (size_t i = 0; i < sz; i++) {
34  persObj->m_vtxInfo.push_back(toPersistent(&m_mSVVtxInfoCnv, transObj->getVtxInfo(i), msg));
35  }
36  }
37 
38 
40  MultiSVInfoPlus *transObj,
41  MsgStream &msg)
42  {
43  // Clear the contained vector.
44  *transObj = MultiSVInfoPlus();
45 
47  fillTransFromPStore (&m_baseTagCnv, persObj->m_BaseTagInfo, transObj, msg);
48 
50  transObj->setNGTrackInJet (persObj->m_NGTinJet);
51  transObj->setNGTrackInSvx (persObj->m_NGTinSvx);
52  transObj->setN2T (persObj->m_N2Tpair);
53  transObj->setNormDist (persObj->m_normdist);
54 
55  for (const TPObjRef& ref : persObj->m_vtxInfo) {
57  auto info = std::make_unique<MSVVtxInfo>();
59  transObj->addVtxInfo (std::move(info));
60  }
61 
62  }
63 
64 }
grepfile.info
info
Definition: grepfile.py:38
Analysis::MultiSVInfoPlusCnv_p1::transToPers
virtual void transToPers(const MultiSVInfoPlus *transObj, MultiSVInfoPlus_p1 *persObj, MsgStream &log)
Definition: MultiSVInfoPlusCnv_p1.cxx:14
Analysis::MultiSVInfoPlus::setN2T
void setN2T(long int)
Definition: MultiSVInfoPlus.h:63
Analysis::MultiSVInfoPlus::getNGTrackInSvx
long int getNGTrackInSvx() const
Definition: MultiSVInfoPlus.h:69
fitman.sz
sz
Definition: fitman.py:527
Analysis::MultiSVInfoPlus_p1::m_NGTinSvx
long int m_NGTinSvx
Definition: MultiSVInfoPlus_p1.h:28
Analysis::MultiSVInfoPlusCnv_p1::persToTrans
virtual void persToTrans(const MultiSVInfoPlus_p1 *persObj, MultiSVInfoPlus *transObj, MsgStream &log)
Definition: MultiSVInfoPlusCnv_p1.cxx:39
MultiSVInfoPlus.h
Analysis::MultiSVInfoPlus_p1::m_normdist
float m_normdist
Definition: MultiSVInfoPlus_p1.h:30
BaseTagInfoCnv_p1.h
Analysis::MultiSVInfoPlus_p1
Definition: MultiSVInfoPlus_p1.h:19
Analysis::MultiSVInfoPlus::getN2T
long int getN2T() const
Definition: MultiSVInfoPlus.h:70
TPObjRef
Definition: TPObjRef.h:20
Analysis::MultiSVInfoPlus_p1::m_BaseTagInfo
TPObjRef m_BaseTagInfo
Basic info.
Definition: MultiSVInfoPlus_p1.h:24
ITPConverterFor< TRANS_BASE >::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
Analysis::MultiSVInfoPlus::addVtxInfo
void addVtxInfo(MSVVtxInfo *)
Definition: MultiSVInfoPlus.h:65
MultiSVInfoPlusCnv_p1.h
Analysis::MultiSVInfoPlus
Definition: MultiSVInfoPlus.h:16
lumiFormat.i
int i
Definition: lumiFormat.py:85
Analysis::MultiSVInfoPlus_p1::m_vtxInfo
std::vector< TPObjRef > m_vtxInfo
Definition: MultiSVInfoPlus_p1.h:32
Analysis::MultiSVInfoPlus::getVtxInfo
const MSVVtxInfo * getVtxInfo(unsigned int i) const
Definition: MultiSVInfoPlus.h:73
Analysis::MultiSVInfoPlus::getNGTrackInJet
long int getNGTrackInJet() const
Get methods.
Definition: MultiSVInfoPlus.h:68
Analysis::MultiSVInfoPlus::numVtxInfo
int numVtxInfo() const
Definition: MultiSVInfoPlus.h:72
ITPConverterFor< TRANS_BASE >::toPersistent
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Persistify an object and store the persistent represenation in the storage vector of the top-level pe...
Definition: TPConverter.h:119
ITPConverterFor< TRANS_BASE >::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
Analysis::MultiSVInfoPlus_p1::m_N2Tpair
long int m_N2Tpair
Definition: MultiSVInfoPlus_p1.h:29
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::MultiSVInfoPlus::getNormDist
float getNormDist() const
Definition: MultiSVInfoPlus.h:71
Analysis::MultiSVInfoPlus::setNormDist
void setNormDist(float)
Definition: MultiSVInfoPlus.h:64
Analysis::MultiSVInfoPlus::setNGTrackInSvx
void setNGTrackInSvx(long int)
Definition: MultiSVInfoPlus.h:62
ref
const boost::regex ref(r_ef)
Analysis::MultiSVInfoPlus::setNGTrackInJet
void setNGTrackInJet(long int)
Set methods.
Definition: MultiSVInfoPlus.h:61
Analysis::MultiSVInfoPlus_p1::m_NGTinJet
long int m_NGTinJet
Definition: MultiSVInfoPlus_p1.h:27
Analysis::MultiSVInfoPlusCnv_p1::m_baseTagCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
Definition: MultiSVInfoPlusCnv_p1.h:36
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
Analysis::MultiSVInfoPlusCnv_p1::m_mSVVtxInfoCnv
ITPConverterFor< MSVVtxInfo > * m_mSVVtxInfoCnv
Definition: MultiSVInfoPlusCnv_p1.h:37