ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagInfo
src
JetProbInfoBase.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
6
#include "
JetTagInfo/JetProbInfoBase.h
"
7
#include "GaudiKernel/MsgStream.h"
8
#include <math.h>
9
#include <iostream>
10
#include <vector>
11
12
namespace
Analysis
{
13
15
JetProbInfoBase::JetProbInfoBase
() :
BaseTagInfo
(),
m_ntrk
(0) {
16
m_tagLikelihood
.clear();
17
}
18
20
JetProbInfoBase::JetProbInfoBase
(
const
TagInfoType
& tagJetInfoType) :
BaseTagInfo
(tagJetInfoType),
m_ntrk
(0) {
21
m_tagLikelihood
.clear();
22
}
23
27
JetProbInfoBase::JetProbInfoBase
(
const
JetProbInfoBase
& rhs) :
BaseTagInfo
(rhs),
m_ntrk
(rhs.
m_ntrk
) {
28
}
29
31
JetProbInfoBase
&
JetProbInfoBase::operator=
(
const
JetProbInfoBase
& rhs)
32
{
33
if
(
this
!=&rhs)
34
{
35
m_tagLikelihood
=rhs.
m_tagLikelihood
;
36
m_tagJetInfoType
=rhs.
m_tagJetInfoType
;
37
m_ntrk
=rhs.
m_ntrk
;
38
}
39
return
*
this
;
40
}
41
43
JetProbInfoBase::~JetProbInfoBase
() {
44
}
45
47
MsgStream&
operator<<
( MsgStream& out,
const
JetProbInfoBase
& info) {
48
double
pb = info.tagLikelihood()[0];
49
out <<
" - Tag type "
<< info.infoType()
50
<<
" : Prob= "
<< pb <<
" based on "
<< info.nbTracks() <<
" tracks."
<<
endmsg
;
51
return
out;
52
}
53
55
std::ostream&
operator<<
( std::ostream& out,
const
JetProbInfoBase
& info) {
56
double
pb = info.tagLikelihood()[0];
57
out <<
" - Tag type "
<< info.infoType()
58
<<
" : Prob= "
<< pb <<
" based on "
<< info.nbTracks() <<
" tracks."
<< std::endl;
59
return
out;
60
}
61
62
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:61
JetProbInfoBase.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::JetProbInfoBase
Basic class to hold JetProb taggers results.
Definition
JetProbInfoBase.h:21
Analysis::JetProbInfoBase::~JetProbInfoBase
virtual ~JetProbInfoBase()
default destructor
Definition
JetProbInfoBase.cxx:43
Analysis::JetProbInfoBase::m_ntrk
int m_ntrk
Definition
JetProbInfoBase.h:43
Analysis::JetProbInfoBase::JetProbInfoBase
JetProbInfoBase()
default constructor
Definition
JetProbInfoBase.cxx:15
Analysis::JetProbInfoBase::operator=
JetProbInfoBase & operator=(const JetProbInfoBase &rhs)
assigenment operator
Definition
JetProbInfoBase.cxx:31
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