ATLAS Offline Software
SoftMuonInfoCnv_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 <vector>
13 using std::vector;
14 
15 namespace Analysis {
16 
21  pb->m_BaseTagInfo = baseToPersistent(&m_baseTagCnv, pa, msg);
22 
23  size_t sz = pa->numTrackInfo();
24  pb->m_trackinfo.reserve(sz);
25  for (size_t i = 0; i < sz; i++) {
26  pb->m_trackinfo.push_back(toPersistent(&m_smTrackInfoCnv, &pa->getTrackInfo(i), msg));
27  }
28  }
29 
34  {
35  // Clear vector.
36  *pb = SoftMuonInfo();
37 
39 
40  for (const TPObjRef& ref : pa->m_trackinfo) {
43  pb->addTrackInfo (info);
44  }
45  }
46 }
grepfile.info
info
Definition: grepfile.py:38
Analysis::SoftMuonInfo
Definition: SoftMuonInfo.h:31
fitman.sz
sz
Definition: fitman.py:527
Analysis::SoftMuonInfo_p1::m_trackinfo
std::vector< TPObjRef > m_trackinfo
Vector of SETrackInfo objects.
Definition: SoftMuonInfo_p1.h:27
keylayer_zslicemap.pb
pb
Definition: keylayer_zslicemap.py:188
Analysis::SoftMuonInfo_p1
Definition: SoftMuonInfo_p1.h:19
BaseTagInfoCnv_p1.h
SoftMuonInfo.h
TPObjRef
Definition: TPObjRef.h:20
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::SoftMuonInfoCnv_p1::m_smTrackInfoCnv
ITPConverterFor< SMTrackInfo > * m_smTrackInfoCnv
Definition: SoftMuonInfoCnv_p1.h:32
Analysis::SoftMuonInfoCnv_p1::transToPers
virtual void transToPers(const SoftMuonInfo *transObj, SoftMuonInfo_p1 *persObj, MsgStream &log)
Save data to the persistant format.
Definition: SoftMuonInfoCnv_p1.cxx:20
Analysis::SoftMuonInfoCnv_p1::persToTrans
virtual void persToTrans(const SoftMuonInfo_p1 *persObj, SoftMuonInfo *transObj, MsgStream &log)
Fluf the data up again.
Definition: SoftMuonInfoCnv_p1.cxx:33
lumiFormat.i
int i
Definition: lumiFormat.py:92
Analysis::SoftMuonInfo::numTrackInfo
int numTrackInfo() const
Number of muon track info objects stored.
Definition: SoftMuonInfo.h:52
Analysis::SoftMuonInfo_p1::m_BaseTagInfo
TPObjRef m_BaseTagInfo
Basic info.
Definition: SoftMuonInfo_p1.h:24
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::SoftMuonInfoCnv_p1::m_baseTagCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
Definition: SoftMuonInfoCnv_p1.h:31
ref
const boost::regex ref(r_ef)
SoftMuonInfoCnv_p1.h
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
Analysis::SoftMuonInfo::getTrackInfo
const SMTrackInfo & getTrackInfo(uint i) const
Get a track info object.
Definition: SoftMuonInfo.h:56
Analysis::SMTrackInfo
Definition: SMTrackInfo.h:17