Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
FPGATrackSimHit.cxx File Reference
#include "FPGATrackSimObjects/FPGATrackSimHit.h"
#include <stdexcept>
Include dependency graph for FPGATrackSimHit.cxx:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const FPGATrackSimHit &hit)
 
std::string to_string (HitType t)
 
std::ostream & operator<< (std::ostream &os, HitType t)
 

Function Documentation

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  os,
HitType  t 
)

Definition at line 173 of file FPGATrackSimHit.cxx.

174 {
175  return (os << to_string(t));
176 }

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  out,
const FPGATrackSimHit hit 
)

Definition at line 142 of file FPGATrackSimHit.cxx.

143 {
144  out << "type=" << hit.m_hitType
145  << " tech=" << hit.m_detType
146  << " zone=" << hit.m_detectorZone
147  << " etamod=" << hit.getEtaModule()
148  << " phimod=" << hit.getPhiModule()
149  << " physLayer=" << hit.getPhysLayer()
150  << " eta=" << hit.getEtaCoord()
151  << " phi=" << hit.getPhiCoord();
152 
153  return out;
154 }

◆ to_string()

std::string to_string ( HitType  t)

Definition at line 157 of file FPGATrackSimHit.cxx.

158 {
159  switch (t)
160  {
161  case HitType::unmapped: return "unmapped";
162  case HitType::mapped: return "mapped";
163  case HitType::clustered: return "clustered";
164  case HitType::wildcard: return "wildcard";
165  case HitType::guessed: return "guessed";
166  case HitType::extrapolated: return "extrapolated";
167  case HitType::spacepoint: return "spacepoint";
168  default: return "undefined";
169  }
170 }
FPGATrackSimHit::m_detType
SiliconTech m_detType
Definition: FPGATrackSimHit.h:209
FPGATrackSimHit::getPhiModule
unsigned getPhiModule() const
Definition: FPGATrackSimHit.h:88
FPGATrackSimHit::getPhysLayer
unsigned getPhysLayer() const
Definition: FPGATrackSimHit.cxx:69
HitType::extrapolated
@ extrapolated
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
HitType::spacepoint
@ spacepoint
FPGATrackSimHit::getEtaModule
int getEtaModule() const
Definition: FPGATrackSimHit.h:87
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
FPGATrackSimHit::m_hitType
HitType m_hitType
Definition: FPGATrackSimHit.h:207
HitType::guessed
@ guessed
HitType::wildcard
@ wildcard
FPGATrackSimHit::getPhiCoord
float getPhiCoord() const
Definition: FPGATrackSimHit.h:111
to_string
std::string to_string(HitType t)
Definition: FPGATrackSimHit.cxx:157
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
HitType::clustered
@ clustered
FPGATrackSimHit::getEtaCoord
float getEtaCoord() const
Definition: FPGATrackSimHit.h:112
HitType::mapped
@ mapped
FPGATrackSimHit::m_detectorZone
DetectorZone m_detectorZone
Definition: FPGATrackSimHit.h:208
HitType::unmapped
@ unmapped