ATLAS Offline Software
Functions
Event.cxx File Reference
#include "TopEvent/Event.h"
#include "TopEvent/EventTools.h"
#include "xAODEventInfo/EventInfo.h"
#include "xAODEgamma/ElectronContainer.h"
#include "xAODEgamma/ElectronContainerFwd.h"
#include "xAODMuon/MuonContainer.h"
#include "xAODJet/JetContainer.h"
#include "xAODTau/TauJetContainer.h"
#include "xAODMissingET/MissingETContainer.h"
#include "xAODTracking/TrackParticleContainer.h"
#include "xAODTruth/TruthParticleContainer.h"
#include "xAODTruth/TruthVertex.h"
#include "xAODCore/ShallowCopy.h"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const TLorentzVector &v)
 
std::ostream & operator<< (std::ostream &os, const top::Event &event)
 
std::ostream & operator<< (std::ostream &os, const xAOD::Electron &el)
 
std::ostream & operator<< (std::ostream &os, const xAOD::Muon &mu)
 
std::ostream & operator<< (std::ostream &os, const xAOD::Jet &jet)
 
std::ostream & operator<< (std::ostream &os, const xAOD::TauJet &tau)
 
std::ostream & operator<< (std::ostream &os, const xAOD::TrackParticle &track)
 
std::ostream & operator<< (std::ostream &os, const xAOD::TruthParticle &truth)
 
std::ostream & operator<< (std::ostream &os, const xAOD::MissingET &met)
 

Function Documentation

◆ operator<<() [1/9]

std::ostream& operator<< ( std::ostream &  os,
const TLorentzVector &  v 
)

Definition at line 22 of file Event.cxx.

22  {
23  os << "TLorentzVector" <<
24  " pt=" << v.Pt() <<
25  " eta " << v.Eta() <<
26  " phi " << v.Phi() <<
27  " m " << v.M();
28 
29  return os;
30 }

◆ operator<<() [2/9]

std::ostream& operator<< ( std::ostream &  os,
const top::Event event 
)

Definition at line 32 of file Event.cxx.

32  {
33 // os << *event.m_info << "\n";
34 
35  os << "Electrons: " << event.m_electrons.size() << "\n";
36  for (const auto* const elPtr : event.m_electrons) {
37  os << " " << *elPtr << "\n";
38  }
39  os << "FwdElectrons: " << event.m_fwdElectrons.size() << "\n";
40  for (const auto* const elPtr : event.m_fwdElectrons) {
41  os << " " << *elPtr << "\n";
42  }
43  os << "Muons: " << event.m_muons.size() << "\n";
44  for (const auto* const muPtr : event.m_muons) {
45  os << " " << *muPtr << "\n";
46  }
47  os << "Soft Muons: " << event.m_softmuons.size() << "\n";
48  for (const auto* const muPtr : event.m_softmuons) {
49  os << " " << *muPtr << "\n";
50  }
51  os << "Jets: " << event.m_jets.size() << "\n";
52  for (const auto* const jetPtr : event.m_jets) {
53  os << " " << *jetPtr << "\n";
54  }
55  os << "Fail-JVT jets: " << event.m_failJvt_jets.size() << "\n";
56  for (const auto* const jetPtr : event.m_failJvt_jets) {
57  os << " " << *jetPtr << "\n";
58  }
59  os << "Fail-FJVT jets: " << event.m_failFJvt_jets.size() << "\n";
60  for (const auto* const jetPtr : event.m_failFJvt_jets) {
61  os << " " << *jetPtr << "\n";
62  }
63  os << "Large jets: " << event.m_largeJets.size() << "\n";
64  for (const auto* const jetPtr : event.m_largeJets) {
65  os << " " << *jetPtr << "\n";
66  }
67  os << "Track jets: " << event.m_trackJets.size() << "\n";
68  for (const auto* const jetPtr : event.m_trackJets) {
69  os << " " << *jetPtr << "\n";
70  }
71  os << "Tracks: " << event.m_tracks.size() << "\n";
72  for (const auto* const trackPtr : event.m_tracks) {
73  os << " " << *trackPtr << "\n";
74  }
75  os << "Taus: " << event.m_tauJets.size() << "\n";
76  for (const auto* const tauPtr : event.m_tauJets) {
77  os << " " << *tauPtr << "\n";
78  }
79  os << "MET: " << *event.m_met << "\n";
80 
81  return os;
82 }

◆ operator<<() [3/9]

std::ostream& operator<< ( std::ostream &  os,
const xAOD::Electron el 
)

Definition at line 100 of file Event.cxx.

100  {
101  os << "Electron" <<
102  " author " << el.author() <<
103  " pt " << el.pt() <<
104  " eta " << el.eta() <<
105  " phi " << el.phi() <<
106  " m " << el.m() <<
107  " charge " << el.charge();
108 
109  return os;
110 }

◆ operator<<() [4/9]

std::ostream& operator<< ( std::ostream &  os,
const xAOD::Jet jet 
)

Definition at line 124 of file Event.cxx.

124  {
125  os << "Jet" <<
126  " pt " << jet.pt() <<
127  " eta " << jet.eta() <<
128  " phi " << jet.phi() <<
129  " m " << jet.m();
130 
131  return os;
132 }

◆ operator<<() [5/9]

std::ostream& operator<< ( std::ostream &  os,
const xAOD::MissingET met 
)

Definition at line 171 of file Event.cxx.

171  {
172  os << "MET" <<
173  " et " << met.met() <<
174  " phi " << met.phi() << "\n";
175 
176  return os;
177 }

◆ operator<<() [6/9]

std::ostream& operator<< ( std::ostream &  os,
const xAOD::Muon mu 
)

Definition at line 112 of file Event.cxx.

112  {
113  os << "Muon" <<
114  " author " << mu.author() <<
115  " pt " << mu.pt() <<
116  " eta " << mu.eta() <<
117  " phi " << mu.phi() <<
118  " m " << mu.m() <<
119  " charge " << mu.charge();
120 
121  return os;
122 }

◆ operator<<() [7/9]

std::ostream& operator<< ( std::ostream &  os,
const xAOD::TauJet tau 
)

Definition at line 134 of file Event.cxx.

134  {
135  os << "TauJet" <<
136  " pt " << tau.pt() <<
137  " eta " << tau.eta() <<
138  " phi " << tau.phi() <<
139  " m " << tau.m() <<
140  " charge " << tau.charge();
141 
142  return os;
143 }

◆ operator<<() [8/9]

std::ostream& operator<< ( std::ostream &  os,
const xAOD::TrackParticle track 
)

Definition at line 145 of file Event.cxx.

145  {
146  os << "Track" <<
147  " pt " << track.pt() <<
148  " eta " << track.eta() <<
149  " phi " << track.phi() <<
150  " m " << track.m();
151 
152  return os;
153 }

◆ operator<<() [9/9]

std::ostream& operator<< ( std::ostream &  os,
const xAOD::TruthParticle truth 
)

Definition at line 156 of file Event.cxx.

156  {
157  const unsigned int w = 10;
158 
159  os << "TruthParticle" <<
160  " pdg " << std::setw(w) << truth.pdgId() <<
161  " status " << std::setw(w) << truth.status() <<
162  " pt " << std::setw(w) << truth.pt() <<
163  " eta " << std::setw(w) << truth.eta() <<
164  " phi " << std::setw(w) << truth.phi() <<
165  " e " << std::setw(w) << truth.e() <<
166  " m " << std::setw(w) << truth.p4().M();
167 
168  return os;
169 }
xAOD::TauJet_v3::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
xAOD::TauJet_v3::m
virtual double m() const
The invariant mass of the particle.
xAOD::TauJet_v3::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
xAOD::TauJet_v3::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
met
Definition: IMETSignificance.h:24
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
xAOD::TruthParticle_v1::e
virtual double e() const override final
The total energy of the particle.
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
xAOD::TruthParticle_v1::eta
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Definition: TruthParticle_v1.cxx:174
python.PyAthena.v
v
Definition: PyAthena.py:157
xAOD::TruthParticle_v1::status
int status() const
Status code.
xAOD::TruthParticle_v1::phi
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
Definition: TruthParticle_v1.cxx:181
xAOD::TauJet_v3::charge
float charge() const
xAOD::TruthParticle_v1::pt
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Definition: TruthParticle_v1.cxx:166
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
xAOD::TruthParticle_v1::p4
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
Definition: TruthParticle_v1.cxx:196
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
xAOD::TruthParticle_v1::pdgId
int pdgId() const
PDG ID code.
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53