ATLAS Offline Software
IPInfoPlusCnv_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 
7 
11 
12 #include "TPHelpers.h"
13 
14 namespace Analysis {
15 
19  void IPInfoPlusCnv_p1::transToPers(const IPInfoPlus* pa, IPInfoPlus_p1* pb, MsgStream & msg) {
20  pb->m_baseTagInfo = baseToPersistent(&m_baseTagCnv, pa, msg);
21 
22 #ifdef notyet
23  m_trackInfoVectorCnv.transToPers(&pa->m_trackinfo,
24  &pb->m_trackinfo,
25  msg);
26 #endif
27 
28  size_t sz = pa->numTrackInfo();
29  pb->m_trackinfo.clear();
30  pb->m_trackinfo.reserve(sz);
31  for (size_t i = 0; i < sz; i++) {
32  pb->m_trackinfo.push_back(toPersistent(&m_trackInfoCnv,
33  &pa->getTrackInfo(i), msg));
34  }
35  }
36 
41  {
43  *pb = IPInfoPlus();
44 
46 
47 #ifdef notyet
48  m_trackInfoVectorCnv.persToTrans(&pa->m_trackinfo,
49  &pb->m_trackinfo,
50  msg);
51 #endif
52 
53  size_t sz = pa->m_trackinfo.size();
54  for (size_t i = 0; i < sz; i++) {
57  pb->addTrackInfo (info);
58  }
59  }
60 
61 }
grepfile.info
info
Definition: grepfile.py:38
fitman.sz
sz
Definition: fitman.py:527
keylayer_zslicemap.pb
pb
Definition: keylayer_zslicemap.py:188
Analysis::IPInfoPlus
Definition: IPInfoPlus.h:25
TPHelpers.h
Analysis::IPInfoPlusCnv_p1::transToPers
virtual void transToPers(const IPInfoPlus *transObj, IPInfoPlus_p1 *persObj, MsgStream &log)
Save data to the persistant format.
Definition: IPInfoPlusCnv_p1.cxx:19
IPInfoPlus.h
BaseTagInfoCnv_p1.h
Analysis::IPInfoPlus_p1
Definition: IPInfoPlus_p1.h:16
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::IPInfoPlus::getTrackInfo
const IPTrackInfo & getTrackInfo(uint i) const
Get a track info object.
Definition: IPInfoPlus.h:41
Analysis::IPInfoPlusCnv_p1::m_trackInfoCnv
ITPConverterFor< IPTrackInfo > * m_trackInfoCnv
Definition: IPInfoPlusCnv_p1.h:36
Analysis::IPInfoPlus_p1::m_baseTagInfo
TPObjRef m_baseTagInfo
Definition: IPInfoPlus_p1.h:21
lumiFormat.i
int i
Definition: lumiFormat.py:85
Analysis::IPInfoPlusCnv_p1::persToTrans
virtual void persToTrans(const IPInfoPlus_p1 *persObj, IPInfoPlus *transObj, MsgStream &log)
Fluf the data up again.
Definition: IPInfoPlusCnv_p1.cxx:40
IPInfoPlusCnv_p1.h
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
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::IPTrackInfo
Definition: IPTrackInfo.h:18
Analysis::IPInfoPlus::m_trackinfo
std::vector< IPTrackInfo > m_trackinfo
Definition: IPInfoPlus.h:48
Analysis::IPInfoPlus_p1::m_trackinfo
std::vector< TPObjRef > m_trackinfo
Poitners to the IPTrackInfo_p1 objects.
Definition: IPInfoPlus_p1.h:24
Analysis::IPInfoPlusCnv_p1::m_baseTagCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
Definition: IPInfoPlusCnv_p1.h:30
Analysis::IPInfoPlus::numTrackInfo
int numTrackInfo() const
Number of track info objects stored.
Definition: IPInfoPlus.h:37
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7