ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagInfo
src
AtlfInfo.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/AtlfInfo.h
"
6
#
7
namespace
Analysis
{
8
10
AtlfInfo::AtlfInfo
() :
BaseTagInfo
(),
11
m_isBTagged
(false),
12
m_isTauTagged
(false),
13
m_isTau1PTagged
(false),
14
m_isTau3PTagged
(false),
15
m_calFactLight
(1.),
16
m_calFactTau
(1.),
17
m_calFactTau1P3P
(1.),
18
m_calFactB
(1.),
19
m_distanceToBQuark
(9999.),
20
m_distanceToCQuark
(9999.),
21
m_distanceToTLepton
(9999.) {
22
m_tagLikelihood
.clear();
23
}
24
26
AtlfInfo::AtlfInfo
(
const
TagInfoType
& tagJetInfoType)
27
:
BaseTagInfo
(tagJetInfoType),
28
m_isBTagged
(false),
29
m_isTauTagged
(false),
30
m_isTau1PTagged
(false),
31
m_isTau3PTagged
(false),
32
m_calFactLight
(1.),
33
m_calFactTau
(1.),
34
m_calFactTau1P3P
(1.),
35
m_calFactB
(1.),
36
m_distanceToBQuark
(9999.),
37
m_distanceToCQuark
(9999.),
38
m_distanceToTLepton
(9999.) {
39
m_tagLikelihood
.clear();
40
}
41
45
AtlfInfo::AtlfInfo
(
const
AtlfInfo
& rhs) :
BaseTagInfo
(rhs),
46
m_isBTagged
(rhs.
m_isBTagged
),
47
m_isTauTagged
(rhs.
m_isTauTagged
),
48
m_isTau1PTagged
(rhs.
m_isTau1PTagged
),
49
m_isTau3PTagged
(rhs.
m_isTau3PTagged
),
50
m_calFactLight
(rhs.
m_calFactLight
),
51
m_calFactTau
(rhs.
m_calFactTau
),
52
m_calFactTau1P3P
(rhs.
m_calFactTau1P3P
),
53
m_calFactB
(rhs.
m_calFactB
),
54
m_distanceToBQuark
(rhs.
m_distanceToBQuark
),
55
m_distanceToCQuark
(rhs.
m_distanceToCQuark
),
56
m_distanceToTLepton
(rhs.
m_distanceToTLepton
) {}
57
59
AtlfInfo
&
AtlfInfo::operator=
(
const
AtlfInfo
& rhs)
60
{
61
if
(
this
!=&rhs)
62
{
63
m_tagLikelihood
=rhs.
m_tagLikelihood
;
64
m_tagJetInfoType
=rhs.
m_tagJetInfoType
;
65
m_isBTagged
=rhs.
m_isBTagged
;
66
m_isTauTagged
=rhs.
m_isTauTagged
;
67
m_isTau1PTagged
=rhs.
m_isTau1PTagged
;
68
m_isTau3PTagged
=rhs.
m_isTau3PTagged
;
69
m_calFactLight
=rhs.
m_calFactLight
;
70
m_calFactTau
=rhs.
m_calFactTau
;
71
m_calFactTau1P3P
=rhs.
m_calFactTau1P3P
;
72
m_calFactB
=rhs.
m_calFactB
;
73
m_distanceToBQuark
=rhs.
m_distanceToBQuark
;
74
m_distanceToCQuark
=rhs.
m_distanceToCQuark
;
75
m_distanceToTLepton
=rhs.
m_distanceToTLepton
;
76
}
77
return
*
this
;
78
}
79
81
AtlfInfo::~AtlfInfo
() {
82
}
83
84
void
AtlfInfo::deltaRMinTo
(
const
std::string& key,
float
dR) {
85
if
(
"B"
==key ||
"b"
==key)
m_distanceToBQuark
= dR;
86
if
(
"C"
==key ||
"c"
==key)
m_distanceToCQuark
= dR;
87
if
(
"T"
==key ||
"t"
==key)
m_distanceToTLepton
= dR;
88
}
89
90
float
AtlfInfo::deltaRMinTo
(
const
std::string& key)
const
{
91
float
dR = 9999.;
92
if
(
"B"
==key ||
"b"
==key) dR =
m_distanceToBQuark
;
93
if
(
"C"
==key ||
"c"
==key) dR =
m_distanceToCQuark
;
94
if
(
"T"
==key ||
"t"
==key) dR =
m_distanceToTLepton
;
95
return
dR;
96
}
97
}
AtlfInfo.h
Analysis::AtlfInfo::m_distanceToTLepton
float m_distanceToTLepton
Definition
AtlfInfo.h:66
Analysis::AtlfInfo::m_calFactLight
float m_calFactLight
Definition
AtlfInfo.h:60
Analysis::AtlfInfo::deltaRMinTo
void deltaRMinTo(const std::string &, float)
min deltaR to b,c quarks/tau lepton:
Definition
AtlfInfo.cxx:84
Analysis::AtlfInfo::m_distanceToCQuark
float m_distanceToCQuark
Definition
AtlfInfo.h:65
Analysis::AtlfInfo::~AtlfInfo
virtual ~AtlfInfo()
default destructor
Definition
AtlfInfo.cxx:81
Analysis::AtlfInfo::m_calFactTau1P3P
float m_calFactTau1P3P
Definition
AtlfInfo.h:62
Analysis::AtlfInfo::operator=
AtlfInfo & operator=(const AtlfInfo &rhs)
assigenment operator
Definition
AtlfInfo.cxx:59
Analysis::AtlfInfo::m_distanceToBQuark
float m_distanceToBQuark
Definition
AtlfInfo.h:64
Analysis::AtlfInfo::m_isTau3PTagged
bool m_isTau3PTagged
Definition
AtlfInfo.h:59
Analysis::AtlfInfo::AtlfInfo
AtlfInfo()
default constructor
Definition
AtlfInfo.cxx:10
Analysis::AtlfInfo::m_calFactB
float m_calFactB
Definition
AtlfInfo.h:63
Analysis::AtlfInfo::m_isTau1PTagged
bool m_isTau1PTagged
Definition
AtlfInfo.h:58
Analysis::AtlfInfo::m_isBTagged
bool m_isBTagged
Definition
AtlfInfo.h:56
Analysis::AtlfInfo::m_isTauTagged
bool m_isTauTagged
Definition
AtlfInfo.h:57
Analysis::AtlfInfo::m_calFactTau
float m_calFactTau
Definition
AtlfInfo.h:61
Analysis::BaseTagInfo::BaseTagInfo
BaseTagInfo()=default
Analysis::BaseTagInfo::m_tagJetInfoType
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition
BaseTagInfo.h:63
Analysis::BaseTagInfo::m_tagLikelihood
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition
BaseTagInfo.h:61
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