ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagInfoTPCnv
src
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
8
#include "
JetTagInfo/SoftMuonInfo.h
"
9
#include "
JetTagInfoTPCnv/SoftMuonInfoCnv_p1.h
"
10
#include "
JetTagInfoTPCnv/BaseTagInfoCnv_p1.h
"
11
12
#include <vector>
13
using
std::vector;
14
15
namespace
Analysis
{
16
20
void
SoftMuonInfoCnv_p1::transToPers
(
const
SoftMuonInfo
* pa,
SoftMuonInfo_p1
* pb, MsgStream &
msg
) {
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
33
void
SoftMuonInfoCnv_p1::persToTrans
(
const
SoftMuonInfo_p1
* pa,
SoftMuonInfo
* pb, MsgStream &
msg
)
34
{
35
// Clear vector.
36
*pb =
SoftMuonInfo
();
37
38
fillTransFromPStore
(&
m_baseTagCnv
, pa->
m_BaseTagInfo
, pb,
msg
);
39
40
for
(
const
TPObjRef
&
ref
: pa->
m_trackinfo
) {
41
SMTrackInfo
info;
42
fillTransFromPStore
(&
m_smTrackInfoCnv
,
ref
, &info,
msg
);
43
pb->addTrackInfo (info);
44
}
45
}
46
}
ref
const std::regex ref(r_ef)
BaseTagInfoCnv_p1.h
sz
static Double_t sz
Definition
LArPhysWaveHECTool.cxx:37
SoftMuonInfoCnv_p1.h
SoftMuonInfo.h
Analysis::SMTrackInfo
Definition
SMTrackInfo.h:17
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
Analysis::SoftMuonInfoCnv_p1::m_baseTagCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
Definition
SoftMuonInfoCnv_p1.h:31
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::m_smTrackInfoCnv
ITPConverterFor< SMTrackInfo > * m_smTrackInfoCnv
Definition
SoftMuonInfoCnv_p1.h:32
Analysis::SoftMuonInfo_p1
Definition
SoftMuonInfo_p1.h:19
Analysis::SoftMuonInfo_p1::m_BaseTagInfo
TPObjRef m_BaseTagInfo
Basic info.
Definition
SoftMuonInfo_p1.h:24
Analysis::SoftMuonInfo_p1::m_trackinfo
std::vector< TPObjRef > m_trackinfo
Vector of SETrackInfo objects.
Definition
SoftMuonInfo_p1.h:27
Analysis::SoftMuonInfo
Class for soft muon information @ author henri bachacou.
Definition
SoftMuonInfo.h:27
Analysis::SoftMuonInfo::numTrackInfo
int numTrackInfo() const
Number of muon track info objects stored.
Definition
SoftMuonInfo.h:48
Analysis::SoftMuonInfo::getTrackInfo
const SMTrackInfo & getTrackInfo(uint i) const
Get a track info object.
Definition
SoftMuonInfo.h:52
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition
TPConverter.h:97
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Definition
TPConverter.h:145
ITPConverterFor< TRANS_BASE >::toPersistent
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Definition
TPConverter.h:119
TPObjRef
This class is an object reference used in Athena persistent data model.
Definition
TPObjRef.h:20
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition
IConstituent.h:25
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0