ATLAS Offline Software
PhysicsAnalysis
JetTagging
JetTagInfo
src
QGPartonTruthInfo.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
JetTagInfo/QGPartonTruthInfo.h
"
6
#include <algorithm>
7
#include <utility>
8
9
namespace
Analysis
10
{
11
13
QGPartonTruthInfo::QGPartonTruthInfo
()
14
:
BaseTagInfo
(),
15
m_jetTruthLabel(
"N/A"
),
16
m_distanceToParton (999.)
17
{}
18
20
QGPartonTruthInfo::QGPartonTruthInfo
(
const
TagInfoType
& tagJetInfoType)
21
:
BaseTagInfo
(tagJetInfoType),
22
m_jetTruthLabel(
"N/A"
),
23
m_distanceToParton (999.)
24
{}
25
29
QGPartonTruthInfo::QGPartonTruthInfo
(
const
QGPartonTruthInfo
& rhs)
30
:
BaseTagInfo
(rhs),
31
m_jetTruthLabel(rhs.m_jetTruthLabel),
32
m_distanceToParton(rhs.m_distanceToParton)
33
{}
34
36
QGPartonTruthInfo
&
QGPartonTruthInfo::operator=
(
const
QGPartonTruthInfo
& rhs)
37
{
38
if
(
this
!=&rhs)
39
{
40
m_jetTruthLabel
=rhs.
m_jetTruthLabel
;
41
m_distanceToParton
=rhs.
m_distanceToParton
;
42
}
43
return
*
this
;
44
}
45
47
QGPartonTruthInfo::~QGPartonTruthInfo
()
48
{}
49
50
void
QGPartonTruthInfo::deltaRToParton
(
double
dR) {
51
m_distanceToParton
= dR;
52
}
53
54
double
QGPartonTruthInfo::deltaRToParton
()
const
{
55
double
dR = 9999.;
56
dR =
m_distanceToParton
;
57
return
dR;
58
}
59
60
}
Analysis::QGPartonTruthInfo
Class QGPartonTruthInfo: Class to store more truth information about a JetTag (e.g.
Definition:
QGPartonTruthInfo.h:18
Analysis::QGPartonTruthInfo::deltaRToParton
double deltaRToParton() const
Definition:
QGPartonTruthInfo.cxx:54
Analysis::QGPartonTruthInfo::operator=
QGPartonTruthInfo & operator=(const QGPartonTruthInfo &rhs)
assigenment operator
Definition:
QGPartonTruthInfo.cxx:36
Analysis::QGPartonTruthInfo::~QGPartonTruthInfo
virtual ~QGPartonTruthInfo()
default destructor
Definition:
QGPartonTruthInfo.cxx:47
Analysis::QGPartonTruthInfo::m_jetTruthLabel
std::string m_jetTruthLabel
Definition:
QGPartonTruthInfo.h:55
Analysis::BaseTagInfo
Class BasetagInfo: Implements methods defined in ITagInfo.
Definition:
BaseTagInfo.h:40
Analysis::TagInfoType
std::string TagInfoType
Definition:
JetTagInfoBase.h:19
Analysis::QGPartonTruthInfo::m_distanceToParton
double m_distanceToParton
Definition:
QGPartonTruthInfo.h:56
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition:
BTaggingCnvAlg.h:20
QGPartonTruthInfo.h
Analysis::QGPartonTruthInfo::QGPartonTruthInfo
QGPartonTruthInfo()
default constructor
Definition:
QGPartonTruthInfo.cxx:13
Generated on Thu Nov 7 2024 21:24:22 for ATLAS Offline Software by
1.8.18