ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace 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}
const boost::regex ref(r_ef)
static Double_t sz
virtual void transToPers(const MultiSVInfoPlus *transObj, MultiSVInfoPlus_p1 *persObj, MsgStream &log)
virtual void persToTrans(const MultiSVInfoPlus_p1 *persObj, MultiSVInfoPlus *transObj, MsgStream &log)
ITPConverterFor< MSVVtxInfo > * m_mSVVtxInfoCnv
std::vector< TPObjRef > m_vtxInfo
TPObjRef m_BaseTagInfo
Basic info.
void setNGTrackInJet(long int)
Set methods.
long int getNGTrackInJet() const
Get methods.
const MSVVtxInfo * getVtxInfo(unsigned int i) const
void addVtxInfo(MSVVtxInfo *)
long int getNGTrackInSvx() const
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition TPConverter.h:97
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
This class is an object reference used in Athena persistent data model.
Definition TPObjRef.h:20
The namespace of all packages in PhysicsAnalysis/JetTagging.
MsgStream & msg
Definition testRead.cxx:32