ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagInfo
src
SVInfoBase.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/SVInfoBase.h
"
6
#include "GaudiKernel/MsgStream.h"
7
#include <math.h>
8
#include <iostream>
9
10
namespace
Analysis
{
11
13
SVInfoBase::SVInfoBase
() :
BaseTagInfo
() {
14
m_tagLikelihood
.clear();
15
}
16
18
SVInfoBase::SVInfoBase
(
const
TagInfoType
& tagJetInfoType) :
BaseTagInfo
(tagJetInfoType) {
19
m_tagLikelihood
.clear();
20
}
21
25
SVInfoBase::SVInfoBase
(
const
SVInfoBase
& rhs) :
BaseTagInfo
(rhs) {
26
}
27
29
SVInfoBase
&
SVInfoBase::operator=
(
const
SVInfoBase
& rhs)
30
{
31
if
(
this
!=&rhs)
32
{
33
m_tagLikelihood
=rhs.
m_tagLikelihood
;
34
m_tagJetInfoType
=rhs.
m_tagJetInfoType
;
35
}
36
return
*
this
;
37
}
38
40
SVInfoBase::~SVInfoBase
() {
41
}
42
44
MsgStream&
operator<<
( MsgStream& out,
const
SVInfoBase
& info) {
45
double
pb = info.tagLikelihood()[0];
46
double
pu = info.tagLikelihood()[1];
47
double
ww = log(pb/pu);
48
out <<
" - Tag type "
<< info.infoType()
49
<<
" : P(b)= "
<< pb <<
" P(u)= "
<< pu <<
" W= "
<< ww <<
endmsg
;
50
return
out;
51
}
52
54
std::ostream&
operator<<
( std::ostream& out,
const
SVInfoBase
& info) {
55
double
pb = info.tagLikelihood()[0];
56
double
pu = info.tagLikelihood()[1];
57
double
ww = log(pb/pu);
58
out <<
" - Tag type "
<< info.infoType()
59
<<
" : P(b)= "
<< pb <<
" P(u)= "
<< pu <<
" W= "
<< ww << std::endl;
60
return
out;
61
}
62
63
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
SVInfoBase.h
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::SVInfoBase
Basic class to hold SV taggers results.
Definition
SVInfoBase.h:19
Analysis::SVInfoBase::~SVInfoBase
virtual ~SVInfoBase()
default destructor
Definition
SVInfoBase.cxx:40
Analysis::SVInfoBase::SVInfoBase
SVInfoBase()
default constructor
Definition
SVInfoBase.cxx:13
Analysis::SVInfoBase::operator=
SVInfoBase & operator=(const SVInfoBase &rhs)
assigenment operator
Definition
SVInfoBase.cxx:29
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition
IConstituent.h:25
Analysis::operator<<
MsgStream & operator<<(MsgStream &out, const IPInfoBase &)
output.
Definition
IPInfoBase.cxx:47
Analysis::TagInfoType
std::string TagInfoType
Definition
JetTagInfoBase.h:19
Generated on
for ATLAS Offline Software by
1.17.0