ATLAS Offline Software
Loading...
Searching...
No Matches
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
9namespace Analysis {
10
12 : m_barcode(0),
13 m_pdgCode(0),
18{
19 m_Momentum.setZero();
20 m_ProductionVertex.setZero();
21}
22
23SLTrueInfo::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),
30 m_Momentum(p),
32{
33}
34
35MsgStream& 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
46std::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}
#define endmsg
Eigen::Vector3d m_Momentum
Definition SLTrueInfo.h:34
Eigen::Vector3d m_ProductionVertex
Definition SLTrueInfo.h:35
int r
Definition globals.cxx:22
The namespace of all packages in PhysicsAnalysis/JetTagging.
MsgStream & operator<<(MsgStream &out, const IPInfoBase &)
output.