ATLAS Offline Software
Loading...
Searching...
No Matches
FourLeptonVertexingAlgorithm.cxx File Reference
Include dependency graph for FourLeptonVertexingAlgorithm.cxx:

Go to the source code of this file.

Namespaces

namespace  DerivationFramework
 THE reconstruction tool.

Functions

std::ostream & operator<< (std::ostream &sstr, const xAOD::IParticle *part)
std::ostream & operator<< (std::ostream &sstr, const LeptonQuadruplet &quad)

Function Documentation

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream & sstr,
const LeptonQuadruplet & quad )

Definition at line 35 of file FourLeptonVertexingAlgorithm.cxx.

35 {
36 sstr << std::endl;
37 for (const xAOD::IParticle* lep : quad) { sstr << " **** " << lep << std::endl; }
38 return sstr;
39}
Class providing the definition of the 4-vector interface.

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream & sstr,
const xAOD::IParticle * part )

Definition at line 17 of file FourLeptonVertexingAlgorithm.cxx.

17 {
18 if (part->type() == xAOD::Type::ObjectType::Muon) {
19 const xAOD::Muon* mu = static_cast<const xAOD::Muon*>(part);
20 sstr << " Muon pT: " << mu->pt() * MeVtoGeV << " [GeV], eta: " << mu->eta() << ", phi: " << mu->phi() << ", q: " << mu->charge()
21 << ", priamry Author: " << mu->author();
22 } else if (part->type() == xAOD::Type::ObjectType::Electron) {
23 const xAOD::Electron* elec = static_cast<const xAOD::Electron*>(part);
24 sstr << " Electron pT: " << elec->pt() * MeVtoGeV << " [GeV], eta: " << elec->eta() << ", phi: " << elec->phi()
25 << ", q: " << elec->charge();
26 } else if (part->type() == xAOD::Type::ObjectType::TrackParticle) {
27 const xAOD::TrackParticle* trk = static_cast<const xAOD::TrackParticle*>(part);
28 sstr << " Track pT: " << trk->pt() * MeVtoGeV << " [GeV], eta: " << trk->eta() << ", phi: " << trk->phi()
29 << ", q: " << trk->charge() << ", d0: " << trk->d0() << ", z0: " << trk->z0();
30 }
31 sstr << " index: " << part->index();
32 return sstr;
33}
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Definition Egamma_v1.cxx:66
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Definition Egamma_v1.cxx:71
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
Definition Egamma_v1.cxx:76
float charge() const
Obtain the charge of the object.
float z0() const
Returns the parameter.
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)
float d0() const
Returns the parameter.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
float charge() const
Returns the charge.
constexpr float MeVtoGeV
@ TrackParticle
The object is a charged track particle.
Definition ObjectType.h:43
@ Muon
The object is a muon.
Definition ObjectType.h:48
@ Electron
The object is an electron.
Definition ObjectType.h:46
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Muon_v1 Muon
Reference the current persistent version:
Electron_v1 Electron
Definition of the current "egamma version".