ATLAS Offline Software
Namespaces | Functions
FourLeptonVertexingAlgorithm.cxx File Reference
#include "DerivationFrameworkHiggs/FourLeptonVertexingAlgorithm.h"
#include "StoreGate/ReadHandle.h"
#include "StoreGate/WriteHandle.h"
#include "xAODEgamma/EgammaxAODHelpers.h"
#include "xAODTracking/VertexAuxContainer.h"
Include dependency graph for FourLeptonVertexingAlgorithm.cxx:

Go to the source code of this file.

Namespaces

 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 }

◆ 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 }
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
xAOD::TrackParticle_v1::pt
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Definition: TrackParticle_v1.cxx:73
xAOD::Electron_v1::charge
float charge() const
Obtain the charge of the object.
xAOD::Electron
Electron_v1 Electron
Definition of the current "egamma version".
Definition: Event/xAOD/xAODEgamma/xAODEgamma/Electron.h:17
xAOD::TrackParticle_v1::charge
float charge() const
Returns the charge.
Definition: TrackParticle_v1.cxx:150
xAOD::TrackParticle_v1::eta
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Definition: TrackParticle_v1.cxx:77
CP::MeVtoGeV
constexpr float MeVtoGeV
Definition: IsolationCloseByCorrectionTool.cxx:33
xAOD::TrackParticle_v1::z0
float z0() const
Returns the parameter.
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:40
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
xAOD::TrackParticle_v1::d0
float d0() const
Returns the parameter.
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition: Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
xAOD::Egamma_v1::phi
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
Definition: Egamma_v1.cxx:75
xAOD::Electron_v1
Definition: Electron_v1.h:34
Muon
struct TBPatternUnitContext Muon
xAOD::Egamma_v1::pt
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Definition: Egamma_v1.cxx:65
xAOD::Egamma_v1::eta
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Definition: Egamma_v1.cxx:70
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
xAOD::TrackParticle_v1::phi
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)
dumpNswErrorDb.quad
def quad
Definition: dumpNswErrorDb.py:24