ATLAS Offline Software
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 
6 #include "GaudiKernel/MsgStream.h"
7 #include <iostream>
8 
9 namespace Analysis {
10 
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 }
grepfile.info
info
Definition: grepfile.py:38
beamspotman.r
def r
Definition: beamspotman.py:676
Analysis::SLTrueInfo::m_Momentum
Eigen::Vector3d m_Momentum
Definition: SLTrueInfo.h:34
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
hist_file_dump.d
d
Definition: hist_file_dump.py:137
Analysis::SLTrueInfo::m_ProductionVertex
Eigen::Vector3d m_ProductionVertex
Definition: SLTrueInfo.h:35
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
SLTrueInfo.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Analysis::SLTrueInfo::SLTrueInfo
SLTrueInfo()
Definition: SLTrueInfo.cxx:11
Analysis::SLTrueInfo
Definition: SLTrueInfo.h:15
Analysis::operator<<
MsgStream & operator<<(MsgStream &out, const IPInfoBase &)
output.
Definition: IPInfoBase.cxx:47
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200