ATLAS Offline Software
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagInfo
src
SLTrueInfo.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/SLTrueInfo.h
"
6
#include "GaudiKernel/MsgStream.h"
7
#include <iostream>
8
9
namespace
Analysis
{
10
11
SLTrueInfo::SLTrueInfo
()
12
:
m_barcode
(0),
13
m_pdgCode
(0),
14
m_pdgCodeMother
(0),
15
m_isFromBhadron
(0),
16
m_isFromDhadron
(0),
17
m_isFromGHboson
(0)
18
{
19
m_Momentum
.setZero();
20
m_ProductionVertex
.setZero();
21
}
22
23
SLTrueInfo::SLTrueInfo
(
int
barc,
int
pdg,
int
pdgm,
bool
b,
bool
d,
bool
w,
const
Eigen::Vector3d& p,
const
Eigen::Vector3d&
r
)
24
:
m_barcode
(barc),
25
m_pdgCode
(pdg),
26
m_pdgCodeMother
(pdgm),
27
m_isFromBhadron
(b),
28
m_isFromDhadron
(d),
29
m_isFromGHboson
(w),
30
m_Momentum
(p),
31
m_ProductionVertex
(
r
)
32
{
33
}
34
35
MsgStream&
operator<<
( MsgStream& out,
const
SLTrueInfo
& info) {
36
out <<
" -> SLTrueInfo "
37
<<
" barcode = "
<< info.barcode()
38
<<
" pdg = "
<< info.pdgId()
39
<<
" pt = "
<< info.momentum().perp()
40
<<
" pdgMother = "
<< info.pdgIdMother()
41
<<
" From B = "
<< info.FromB() <<
" From D = "
<< info.FromD() <<
" From Gauge/Higgs = "
<< info.FromGH()
42
<<
endmsg
;
43
return
out;
44
}
45
46
std::ostream&
operator<<
( std::ostream& out,
const
SLTrueInfo
& info) {
47
out <<
" -> SLTrueInfo "
48
<<
" barcode = "
<< info.barcode()
49
<<
" pdg = "
<< info.pdgId()
50
<<
" pt = "
<< info.momentum().perp()
51
<<
" pdgMother = "
<< info.pdgIdMother()
52
<<
" From B = "
<< info.FromB() <<
" From D = "
<< info.FromD() <<
" From Gauge/Higgs = "
<< info.FromGH()
53
<< std::endl;
54
return
out;
55
}
56
57
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:63
SLTrueInfo.h
Analysis::SLTrueInfo
Definition
SLTrueInfo.h:15
Analysis::SLTrueInfo::m_barcode
int m_barcode
Definition
SLTrueInfo.h:28
Analysis::SLTrueInfo::m_isFromDhadron
bool m_isFromDhadron
Definition
SLTrueInfo.h:32
Analysis::SLTrueInfo::m_isFromGHboson
bool m_isFromGHboson
Definition
SLTrueInfo.h:33
Analysis::SLTrueInfo::m_Momentum
Eigen::Vector3d m_Momentum
Definition
SLTrueInfo.h:34
Analysis::SLTrueInfo::m_ProductionVertex
Eigen::Vector3d m_ProductionVertex
Definition
SLTrueInfo.h:35
Analysis::SLTrueInfo::SLTrueInfo
SLTrueInfo()
Definition
SLTrueInfo.cxx:11
Analysis::SLTrueInfo::m_isFromBhadron
bool m_isFromBhadron
Definition
SLTrueInfo.h:31
Analysis::SLTrueInfo::m_pdgCode
int m_pdgCode
Definition
SLTrueInfo.h:29
Analysis::SLTrueInfo::m_pdgCodeMother
int m_pdgCodeMother
Definition
SLTrueInfo.h:30
r
int r
Definition
globals.cxx:22
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition
BTaggingCnvAlg.h:20
Analysis::operator<<
MsgStream & operator<<(MsgStream &out, const IPInfoBase &)
output.
Definition
IPInfoBase.cxx:47
Generated on
for ATLAS Offline Software by
1.14.0