ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagInfo
src
SoftMuonInfo.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
/********************************************************************
6
7
NAME: SoftMuonInfo.cxx
8
PACKAGE: offline/PhysicsAnalysis/BTaggingID/BTaggingUtils
9
PURPOSE: EDM for b-tagging based on soft muon identification
10
********************************************************************/
11
12
#include "
JetTagInfo/SoftMuonInfo.h
"
13
14
namespace
Analysis
15
{
16
18
SoftMuonInfo::SoftMuonInfo
() :
BaseTagInfo
(),
m_trackinfo
()
19
{
20
}
21
23
SoftMuonInfo::SoftMuonInfo
(
const
TagInfoType
& tagJetInfoType) :
BaseTagInfo
(tagJetInfoType),
m_trackinfo
()
24
{
25
}
26
30
SoftMuonInfo::SoftMuonInfo
(
const
SoftMuonInfo
& rhs) :
BaseTagInfo
(rhs),
m_trackinfo
(rhs.
m_trackinfo
)
31
{}
32
34
SoftMuonInfo
&
SoftMuonInfo::operator=
(
const
SoftMuonInfo
& rhs)
35
{
36
if
(
this
!=&rhs)
37
{
38
m_trackinfo
=rhs.
m_trackinfo
;
39
m_tagLikelihood
=rhs.
m_tagLikelihood
;
40
m_tagJetInfoType
=rhs.
m_tagJetInfoType
;
41
}
42
return
*
this
;
43
}
44
46
SoftMuonInfo::~SoftMuonInfo
()
47
{}
48
49
MsgStream&
operator<<
( MsgStream& out,
const
SoftMuonInfo
& info) {
50
int
ntrk = info.numTrackInfo();
51
out <<
" - Tag type "
<< info.infoType()
52
<<
" based on "
<< ntrk <<
" muon tracks:"
<<
endmsg
;
53
for
(
int
i=0;i<ntrk;i++) {
54
out <<
" -> "
<< i << info.getTrackInfo(i) <<
endmsg
;
55
}
56
return
out;
57
}
58
59
std::ostream&
operator<<
( std::ostream& out,
const
SoftMuonInfo
& info) {
60
int
ntrk = info.numTrackInfo();
61
out <<
" - Tag type "
<< info.infoType()
62
<<
" based on "
<< ntrk <<
" muon tracks:"
<< std::endl;
63
for
(
int
i=0;i<ntrk;i++) {
64
out <<
" -> "
<< info.getTrackInfo(i) << std::endl;
65
}
66
return
out;
67
}
68
69
70
}
71
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
SoftMuonInfo.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::SoftMuonInfo
Class for soft muon information @ author henri bachacou.
Definition
SoftMuonInfo.h:27
Analysis::SoftMuonInfo::operator=
SoftMuonInfo & operator=(const SoftMuonInfo &rhs)
assigenment operator
Definition
SoftMuonInfo.cxx:34
Analysis::SoftMuonInfo::~SoftMuonInfo
virtual ~SoftMuonInfo()
default destructor
Definition
SoftMuonInfo.cxx:46
Analysis::SoftMuonInfo::SoftMuonInfo
SoftMuonInfo()
default constructor
Definition
SoftMuonInfo.cxx:18
Analysis::SoftMuonInfo::m_trackinfo
std::vector< SMTrackInfo > m_trackinfo
Definition
SoftMuonInfo.h:57
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