ATLAS Offline Software
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
}
grepfile.info
info
Definition:
grepfile.py:38
Analysis::SVInfoBase::operator=
SVInfoBase & operator=(const SVInfoBase &rhs)
assigenment operator
Definition:
SVInfoBase.cxx:29
Analysis::BaseTagInfo::m_tagLikelihood
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition:
BaseTagInfo.h:75
keylayer_zslicemap.pb
pb
Definition:
keylayer_zslicemap.py:188
python.AthDsoLogger.out
out
Definition:
AthDsoLogger.py:71
Analysis::SVInfoBase::SVInfoBase
SVInfoBase()
default constructor
Definition:
SVInfoBase.cxx:13
Analysis::SVInfoBase::~SVInfoBase
virtual ~SVInfoBase()
default destructor
Definition:
SVInfoBase.cxx:40
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
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
CheckAppliedSFs.pu
pu
Definition:
CheckAppliedSFs.py:311
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
Analysis::operator<<
MsgStream & operator<<(MsgStream &out, const IPInfoBase &)
output.
Definition:
IPInfoBase.cxx:47
Analysis::BaseTagInfo::m_tagJetInfoType
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition:
BaseTagInfo.h:77
SVInfoBase.h
Analysis::SVInfoBase
Definition:
SVInfoBase.h:19
Generated on Sun Dec 22 2024 21:18:43 for ATLAS Offline Software by
1.8.18