ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagInfo
JetTagInfo
TruthInfo.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef JETTAGINFO_TRUTHINFO_H
6
#define JETTAGINFO_TRUTHINFO_H
7
#include "
JetTagInfo/BaseTagInfo.h
"
8
#include "
EventPrimitives/EventPrimitives.h
"
9
#include <string>
10
#include <map>
11
12
namespace
Analysis
13
{
14
18
class
TruthInfo
:
public
BaseTagInfo
19
{
20
public
:
22
TruthInfo
();
23
25
TruthInfo
(
const
TagInfoType
&
x
);
26
28
TruthInfo
(
const
TruthInfo
&
TruthInfo
);
29
31
TruthInfo
&
operator=
(
const
TruthInfo
& rhs);
32
34
virtual
~TruthInfo
();
35
37
virtual
TruthInfo
*
clone
()
const
;
38
40
const
std::string&
jetTruthLabel
()
const
;
41
49
void
setJetTruthLabel
(
const
std::string&
jetTruthLabel
);
50
52
void
deltaRMinTo
(
const
std::string& key,
double
dR);
53
double
deltaRMinTo
(
const
std::string& key)
const
;
54
55
void
BDecayVertex
(
const
Eigen::Vector3d&);
56
const
Eigen::Vector3d&
BDecayVertex
()
const
;
57
void
BHadronPdg
(
const
int
);
58
int
BHadronPdg
()
const
;
59
60
private
:
61
std::string
m_jetTruthLabel
;
62
double
m_distanceToBQuark
;
63
double
m_distanceToCQuark
;
64
double
m_distanceToTLepton
;
65
Eigen::Vector3d
m_BHadronDecayVertex
;
66
int
m_BHadronPdg
;
67
};
// End class
68
69
inline
void
TruthInfo::BDecayVertex
(
const
Eigen::Vector3d&
rp
) {
m_BHadronDecayVertex
=
rp
;}
70
inline
const
Eigen::Vector3d&
TruthInfo::BDecayVertex
()
const
{
return
m_BHadronDecayVertex
;}
71
inline
void
TruthInfo::BHadronPdg
(
const
int
i) {
m_BHadronPdg
= i;}
72
inline
int
TruthInfo::BHadronPdg
()
const
{
return
m_BHadronPdg
;}
73
74
inline
TruthInfo
*
TruthInfo::clone
()
const
75
{
76
return
new
TruthInfo
(*
this
);
77
}
78
79
inline
const
std::string&
TruthInfo::jetTruthLabel
()
const
80
{
81
return
m_jetTruthLabel
;
82
}
83
84
inline
void
TruthInfo::setJetTruthLabel
(
const
std::string&
jetTruthLabel
)
85
{
86
m_jetTruthLabel
=
jetTruthLabel
;
87
}
88
89
}
// End namespace
90
#endif
91
BaseTagInfo.h
EventPrimitives.h
rp
ReadCards * rp
Definition
IReadCards.cxx:26
x
#define x
Analysis::BaseTagInfo::BaseTagInfo
BaseTagInfo()=default
Analysis::TruthInfo::m_distanceToCQuark
double m_distanceToCQuark
Definition
TruthInfo.h:63
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::BHadronPdg
int BHadronPdg() const
Definition
TruthInfo.h:72
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
const Eigen::Vector3d & BDecayVertex() const
Definition
TruthInfo.h:70
Analysis::TruthInfo::m_jetTruthLabel
std::string m_jetTruthLabel
Definition
TruthInfo.h:61
Analysis::TruthInfo::m_BHadronDecayVertex
Eigen::Vector3d m_BHadronDecayVertex
Definition
TruthInfo.h:65
Analysis::TruthInfo::m_distanceToTLepton
double m_distanceToTLepton
Definition
TruthInfo.h:64
Analysis::TruthInfo::operator=
TruthInfo & operator=(const TruthInfo &rhs)
assigenment operator
Definition
TruthInfo.cxx:45
Analysis::TruthInfo::TruthInfo
TruthInfo()
default constructor
Definition
TruthInfo.cxx:13
Analysis::TruthInfo::m_BHadronPdg
int m_BHadronPdg
Definition
TruthInfo.h:66
Analysis::TruthInfo::m_distanceToBQuark
double m_distanceToBQuark
Definition
TruthInfo.h:62
Analysis::TruthInfo::~TruthInfo
virtual ~TruthInfo()
default destructor
Definition
TruthInfo.cxx:60
Analysis::TruthInfo::clone
virtual TruthInfo * clone() const
clone method
Definition
TruthInfo.h:74
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition
IConstituent.h:25
Analysis::TagInfoType
std::string TagInfoType
Definition
JetTagInfoBase.h:19
Generated on
for ATLAS Offline Software by
1.17.0