ATLAS Offline Software
Loading...
Searching...
No Matches
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>
13using std::vector;
14
15namespace 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) {
41 SMTrackInfo info;
43 pb->addTrackInfo (info);
44 }
45 }
46}
const boost::regex ref(r_ef)
static Double_t sz
virtual void persToTrans(const SoftMuonInfo_p1 *persObj, SoftMuonInfo *transObj, MsgStream &log)
Fluf the data up again.
virtual void transToPers(const SoftMuonInfo *transObj, SoftMuonInfo_p1 *persObj, MsgStream &log)
Save data to the persistant format.
ITPConverterFor< SMTrackInfo > * m_smTrackInfoCnv
TPObjRef m_BaseTagInfo
Basic info.
std::vector< TPObjRef > m_trackinfo
Vector of SETrackInfo objects.
Class for soft muon information @ author henri bachacou.
int numTrackInfo() const
Number of muon track info objects stored.
const SMTrackInfo & getTrackInfo(uint i) const
Get a track info object.
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