ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagInfoTPCnv
src
SoftLeptonTruthInfoCnv_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
9
10
#include "
JetTagInfo/SoftLeptonTruthInfo.h
"
11
#include "
JetTagInfoTPCnv/SoftLeptonTruthInfoCnv_p1.h
"
12
#include "
JetTagInfoTPCnv/BaseTagInfoCnv_p1.h
"
13
14
#include <vector>
15
using
std::vector;
16
17
namespace
Analysis
{
18
19
void
SoftLeptonTruthInfoCnv_p1::transToPers
(
const
SoftLeptonTruthInfo
*transObj,
20
SoftLeptonTruthInfo_p1
*persObj,
21
MsgStream &
msg
)
22
{
23
persObj->
m_BaseTagInfo
=
baseToPersistent
(&
m_baseTagCnv
, transObj,
msg
);
24
25
size_t
sz
= transObj->
numSLTrueInfo
();
26
persObj->
m_infoList
.reserve(
sz
);
27
for
(
size_t
i = 0; i <
sz
; i++) {
28
persObj->
m_infoList
.push_back(
toPersistent
(&
m_sltCnv
, &transObj->
getSLTrueInfo
(i),
msg
));
29
}
30
}
31
32
void
SoftLeptonTruthInfoCnv_p1::persToTrans
(
const
SoftLeptonTruthInfo_p1
*persObj,
33
SoftLeptonTruthInfo
*transObj,
34
MsgStream &
msg
)
35
{
36
// Clear vector.
37
*transObj =
SoftLeptonTruthInfo
();
38
39
fillTransFromPStore
(&
m_baseTagCnv
, persObj->
m_BaseTagInfo
, transObj,
msg
);
40
41
for
(
const
TPObjRef
&
ref
: persObj->
m_infoList
) {
42
SLTrueInfo
info;
43
fillTransFromPStore
(&
m_sltCnv
,
ref
, &info,
msg
);
44
transObj->
addSLTrueInfo
(info);
45
}
46
}
47
}
ref
const std::regex ref(r_ef)
BaseTagInfoCnv_p1.h
sz
static Double_t sz
Definition
LArPhysWaveHECTool.cxx:37
SoftLeptonTruthInfoCnv_p1.h
SoftLeptonTruthInfo.h
Analysis::SLTrueInfo
Definition
SLTrueInfo.h:15
Analysis::SoftLeptonTruthInfoCnv_p1::m_baseTagCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
Definition
SoftLeptonTruthInfoCnv_p1.h:36
Analysis::SoftLeptonTruthInfoCnv_p1::m_sltCnv
ITPConverterFor< SLTrueInfo > * m_sltCnv
Definition
SoftLeptonTruthInfoCnv_p1.h:37
Analysis::SoftLeptonTruthInfoCnv_p1::transToPers
virtual void transToPers(const SoftLeptonTruthInfo *transObj, SoftLeptonTruthInfo_p1 *persObj, MsgStream &log)
Definition
SoftLeptonTruthInfoCnv_p1.cxx:19
Analysis::SoftLeptonTruthInfoCnv_p1::persToTrans
virtual void persToTrans(const SoftLeptonTruthInfo_p1 *persObj, SoftLeptonTruthInfo *transObj, MsgStream &log)
Definition
SoftLeptonTruthInfoCnv_p1.cxx:32
Analysis::SoftLeptonTruthInfo_p1
Definition
SoftLeptonTruthInfo_p1.h:14
Analysis::SoftLeptonTruthInfo_p1::m_BaseTagInfo
TPObjRef m_BaseTagInfo
Definition
SoftLeptonTruthInfo_p1.h:19
Analysis::SoftLeptonTruthInfo_p1::m_infoList
std::vector< TPObjRef > m_infoList
Definition
SoftLeptonTruthInfo_p1.h:21
Analysis::SoftLeptonTruthInfo
Class SoftLeptonTruthInfo: Class to store truth information about lepton in jet.
Definition
SoftLeptonTruthInfo.h:18
Analysis::SoftLeptonTruthInfo::addSLTrueInfo
void addSLTrueInfo(const SLTrueInfo &i)
Insert a new track info object.
Definition
SoftLeptonTruthInfo.h:36
Analysis::SoftLeptonTruthInfo::numSLTrueInfo
int numSLTrueInfo() const
Number of truth lepton info objects stored.
Definition
SoftLeptonTruthInfo.h:34
Analysis::SoftLeptonTruthInfo::getSLTrueInfo
const SLTrueInfo & getSLTrueInfo(uint i) const
Get a track info object.
Definition
SoftLeptonTruthInfo.h:38
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