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 182 of file FPGATrackSimHit.cxx.

183 {
184  return (os << to_string(t));
185 }

◆ operator<<() [2/2]

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

Definition at line 151 of file FPGATrackSimHit.cxx.

152 {
153  out << "type=" << hit.m_hitType
154  << " tech=" << hit.m_detType
155  << " zone=" << hit.m_detectorZone
156  << " etamod=" << hit.getEtaModule()
157  << " phimod=" << hit.getPhiModule()
158  << " physLayer=" << hit.getPhysLayer()
159  << " eta=" << hit.getEtaCoord()
160  << " phi=" << hit.getPhiCoord();
161 
162  return out;
163 }

◆ to_string()

std::string to_string ( HitType  t)

Definition at line 166 of file FPGATrackSimHit.cxx.

167 {
168  switch (t)
169  {
170  case HitType::unmapped: return "unmapped";
171  case HitType::mapped: return "mapped";
172  case HitType::clustered: return "clustered";
173  case HitType::wildcard: return "wildcard";
174  case HitType::guessed: return "guessed";
175  case HitType::extrapolated: return "extrapolated";
176  case HitType::spacepoint: return "spacepoint";
177  default: return "undefined";
178  }
179 }
FPGATrackSimHit::m_detType
SiliconTech m_detType
Definition: FPGATrackSimHit.h:209
FPGATrackSimHit::getPhiModule
unsigned getPhiModule() const
Definition: FPGATrackSimHit.h:88
FPGATrackSimHit::getEtaModule
int getEtaModule(bool old=false) const
Definition: FPGATrackSimHit.h:87
HitType::extrapolated
@ extrapolated
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
HitType::spacepoint
@ spacepoint
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:166
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
FPGATrackSimHit::getPhysLayer
unsigned getPhysLayer(bool old=false) const
Definition: FPGATrackSimHit.cxx:72
HitType::unmapped
@ unmapped