ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagInfoTPCnv
src
TruthInfoCnv_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
8
9
#include "
JetTagInfo/TruthInfo.h
"
10
#include "
JetTagInfoTPCnv/TruthInfoCnv_p1.h
"
11
#include "
JetTagInfoTPCnv/BaseTagInfoCnv_p1.h
"
12
13
#include "GaudiKernel/MsgStream.h"
14
15
namespace
Analysis
{
16
17
void
TruthInfoCnv_p1::transToPers
(
const
TruthInfo
*transObj,
18
TruthInfo_p1
*persObj,
19
MsgStream &
msg
)
20
{
22
persObj->
m_BaseTagInfo
=
baseToPersistent
(&
m_baseTagCnv
,
23
transObj,
24
msg
);
25
26
static
const
std::string s_B(
"B"
);
27
static
const
std::string s_C(
"C"
);
28
static
const
std::string s_T(
"T"
);
29
31
persObj->
m_jetTruthLabel
= transObj->
jetTruthLabel
();
32
persObj->
m_distanceToBQuark
= transObj->
deltaRMinTo
(s_B);
33
persObj->
m_distanceToCQuark
= transObj->
deltaRMinTo
(s_C);
34
persObj->
m_distanceToTLepton
= transObj->
deltaRMinTo
(s_T);
35
persObj->
m_BHadronDecayVertex
= transObj->
BDecayVertex
();
36
persObj->
m_BHadronPdg
= transObj->
BHadronPdg
();
37
}
38
39
void
TruthInfoCnv_p1::persToTrans
(
const
TruthInfo_p1
*persObj,
40
TruthInfo
*transObj,
41
MsgStream &
msg
)
42
{
44
fillTransFromPStore
(&
m_baseTagCnv
, persObj->
m_BaseTagInfo
, transObj,
msg
);
45
46
static
const
std::string s_B(
"B"
);
47
static
const
std::string s_C(
"C"
);
48
static
const
std::string s_T(
"T"
);
49
51
transObj->
setJetTruthLabel
(persObj->
m_jetTruthLabel
);
52
transObj->
deltaRMinTo
(s_B, persObj->
m_distanceToBQuark
);
53
transObj->
deltaRMinTo
(s_C, persObj->
m_distanceToCQuark
);
54
transObj->
deltaRMinTo
(s_T, persObj->
m_distanceToTLepton
);
55
transObj->
BDecayVertex
(persObj->
m_BHadronDecayVertex
);
56
transObj->
BHadronPdg
(persObj->
m_BHadronPdg
);
57
}
58
59
}
BaseTagInfoCnv_p1.h
TruthInfoCnv_p1.h
TruthInfo.h
Analysis::TruthInfoCnv_p1::transToPers
virtual void transToPers(const TruthInfo *transObj, TruthInfo_p1 *persObj, MsgStream &log)
Definition
TruthInfoCnv_p1.cxx:17
Analysis::TruthInfoCnv_p1::m_baseTagCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
Definition
TruthInfoCnv_p1.h:40
Analysis::TruthInfoCnv_p1::persToTrans
virtual void persToTrans(const TruthInfo_p1 *persObj, TruthInfo *transObj, MsgStream &log)
Definition
TruthInfoCnv_p1.cxx:39
Analysis::TruthInfo_p1
Definition
TruthInfo_p1.h:20
Analysis::TruthInfo_p1::m_distanceToBQuark
float m_distanceToBQuark
Definition
TruthInfo_p1.h:28
Analysis::TruthInfo_p1::m_BHadronPdg
int m_BHadronPdg
Definition
TruthInfo_p1.h:31
Analysis::TruthInfo_p1::m_distanceToCQuark
float m_distanceToCQuark
Definition
TruthInfo_p1.h:29
Analysis::TruthInfo_p1::m_jetTruthLabel
std::string m_jetTruthLabel
All of this data will be written out.
Definition
TruthInfo_p1.h:27
Analysis::TruthInfo_p1::m_BaseTagInfo
TPObjRef m_BaseTagInfo
Basic info.
Definition
TruthInfo_p1.h:24
Analysis::TruthInfo_p1::m_distanceToTLepton
float m_distanceToTLepton
Definition
TruthInfo_p1.h:30
Analysis::TruthInfo_p1::m_BHadronDecayVertex
Eigen::Vector3d m_BHadronDecayVertex
Definition
TruthInfo_p1.h:32
Analysis::TruthInfo
Class TruthInfo: Class to store more truth information about a JetTag (e.g.
Definition
TruthInfo.h:19
Analysis::TruthInfo::setJetTruthLabel
void setJetTruthLabel(const std::string &jetTruthLabel)
set the truth label The string with which to set the truth label is stored in the JetTruthMatch algto...
Definition
TruthInfo.h:84
Analysis::TruthInfo::deltaRMinTo
void deltaRMinTo(const std::string &key, double dR)
min deltaR to quarks:
Definition
TruthInfo.cxx:63
Analysis::TruthInfo::jetTruthLabel
const std::string & jetTruthLabel() const
return the truth label
Definition
TruthInfo.h:79
Analysis::TruthInfo::BDecayVertex
void BDecayVertex(const Eigen::Vector3d &)
Definition
TruthInfo.h:69
Analysis::TruthInfo::BHadronPdg
void BHadronPdg(const int)
Definition
TruthInfo.h:71
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
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