ATLAS Offline Software
PhysicsAnalysis
JetTagging
JetTagInfo
src
MultiSVInfoPlus.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
JetTagInfo/MultiSVInfoPlus.h
"
6
7
namespace
Analysis
8
{
9
10
MultiSVInfoPlus::MultiSVInfoPlus
() :
BaseTagInfo
(),
11
m_NGTinJet(-1),
12
m_NGTinSvx(-1),
13
m_N2Tpair(-1),
14
m_normdist(-1.),
15
m_vtxInfo(std::
vector
<
MSVVtxInfo
*>()){}
16
17
MultiSVInfoPlus::MultiSVInfoPlus
(
const
TagInfoType
& tagJetInfoType) :
BaseTagInfo
(tagJetInfoType),
18
m_NGTinJet(-1),
19
m_NGTinSvx(-1),
20
m_N2Tpair(-1),
21
m_normdist(-1.),
22
m_vtxInfo(std::
vector
<
MSVVtxInfo
*>())
23
{
24
m_tagLikelihood
.clear();
25
}
26
27
28
MultiSVInfoPlus::MultiSVInfoPlus
(
const
MultiSVInfoPlus
& rhs) :
BaseTagInfo
(rhs),
29
m_NGTinJet(rhs.m_NGTinJet),
30
m_NGTinSvx(rhs.m_NGTinSvx),
31
m_N2Tpair(rhs.m_N2Tpair),
32
m_normdist(rhs.m_normdist)
33
{
34
m_vtxInfo
.clear();
35
for
(
unsigned
int
i
=0;
i
<rhs.
m_vtxInfo
.size(); ++
i
){
36
m_vtxInfo
.push_back(
new
MSVVtxInfo
( *(rhs.
m_vtxInfo
[
i
]) ) );
37
}
38
}
39
40
MultiSVInfoPlus
&
MultiSVInfoPlus::operator=
(
const
MultiSVInfoPlus
& rhs)
41
{
42
if
(
this
!=&rhs)
43
{
44
m_tagLikelihood
=rhs.
m_tagLikelihood
;
45
m_NGTinJet
= rhs.
m_NGTinJet
;
46
m_NGTinSvx
= rhs.
m_NGTinSvx
;
47
m_N2Tpair
= rhs.
m_N2Tpair
;
48
m_normdist
= rhs.
m_normdist
;
49
for
(
unsigned
int
i
=0;
i
<
m_vtxInfo
.size(); ++
i
)
delete
m_vtxInfo
[
i
];
50
m_vtxInfo
.clear();
51
for
(
unsigned
int
i
=0;
i
<rhs.
m_vtxInfo
.size(); ++
i
){
52
m_vtxInfo
.push_back(
new
MSVVtxInfo
( *(rhs.
m_vtxInfo
[
i
]) ) );
53
}
54
m_vtxInfo
= rhs.
m_vtxInfo
;
55
m_tagJetInfoType
=rhs.
m_tagJetInfoType
;
56
}
57
return
*
this
;
58
}
59
60
MultiSVInfoPlus
&
MultiSVInfoPlus::operator=
(
MultiSVInfoPlus
&& rhs)
61
{
62
if
(
this
!=&rhs)
63
{
64
m_tagLikelihood
=rhs.m_tagLikelihood;
65
m_NGTinJet
= rhs.m_NGTinJet;
66
m_NGTinSvx
= rhs.m_NGTinSvx;
67
m_N2Tpair
= rhs.m_N2Tpair;
68
m_normdist
= rhs.m_normdist;
69
for
(
unsigned
int
i
=0;
i
<
m_vtxInfo
.size(); ++
i
)
70
delete
m_vtxInfo
[
i
];
71
m_vtxInfo
= std::move(rhs.m_vtxInfo);
72
m_tagJetInfoType
=rhs.m_tagJetInfoType;
73
}
74
return
*
this
;
75
}
76
77
MultiSVInfoPlus::~MultiSVInfoPlus
(){
78
for
(
unsigned
int
i
=0;
i
<
m_vtxInfo
.size(); ++
i
)
delete
m_vtxInfo
[
i
];
79
}
80
81
82
}
83
Analysis::MultiSVInfoPlus::m_N2Tpair
long int m_N2Tpair
Definition:
MultiSVInfoPlus.h:54
Analysis::BaseTagInfo::m_tagLikelihood
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition:
BaseTagInfo.h:75
MultiSVInfoPlus.h
Analysis::MultiSVInfoPlus::m_NGTinSvx
long int m_NGTinSvx
Definition:
MultiSVInfoPlus.h:53
Analysis::MultiSVInfoPlus::~MultiSVInfoPlus
virtual ~MultiSVInfoPlus()
default destructor
Definition:
MultiSVInfoPlus.cxx:77
Analysis::MultiSVInfoPlus::operator=
MultiSVInfoPlus & operator=(const MultiSVInfoPlus &rhs)
assigenment operator
Definition:
MultiSVInfoPlus.cxx:40
Analysis::MultiSVInfoPlus::MultiSVInfoPlus
MultiSVInfoPlus()
default constructor
Definition:
MultiSVInfoPlus.cxx:10
Analysis::MultiSVInfoPlus::m_vtxInfo
std::vector< MSVVtxInfo * > m_vtxInfo
Definition:
MultiSVInfoPlus.h:56
Analysis::MultiSVInfoPlus
Definition:
MultiSVInfoPlus.h:16
lumiFormat.i
int i
Definition:
lumiFormat.py:85
Analysis::MultiSVInfoPlus::m_NGTinJet
long int m_NGTinJet
Definition:
MultiSVInfoPlus.h:52
vector
Definition:
MultiHisto.h:13
Analysis::BaseTagInfo
Class BasetagInfo: Implements methods defined in ITagInfo.
Definition:
BaseTagInfo.h:40
Analysis::TagInfoType
std::string TagInfoType
Definition:
JetTagInfoBase.h:19
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition:
BTaggingCnvAlg.h:20
Analysis::MultiSVInfoPlus::m_normdist
float m_normdist
Definition:
MultiSVInfoPlus.h:55
Analysis::MSVVtxInfo
Definition:
MSVVtxInfo.h:17
Analysis::BaseTagInfo::m_tagJetInfoType
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition:
BaseTagInfo.h:77
Generated on Thu Nov 7 2024 21:21:40 for ATLAS Offline Software by
1.8.18