ATLAS Offline Software
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 174 of file FPGATrackSimHit.cxx.

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

◆ operator<<() [2/2]

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

Definition at line 143 of file FPGATrackSimHit.cxx.

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

◆ to_string()

std::string to_string ( HitType  t)

Definition at line 158 of file FPGATrackSimHit.cxx.

159 {
160  switch (t)
161  {
162  case HitType::unmapped: return "unmapped";
163  case HitType::mapped: return "mapped";
164  case HitType::clustered: return "clustered";
165  case HitType::wildcard: return "wildcard";
166  case HitType::guessed: return "guessed";
167  case HitType::extrapolated: return "extrapolated";
168  case HitType::spacepoint: return "spacepoint";
169  default: return "undefined";
170  }
171 }
FPGATrackSimHit::m_detType
SiliconTech m_detType
Definition: FPGATrackSimHit.h:192
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:190
HitType::guessed
@ guessed
HitType::wildcard
@ wildcard
FPGATrackSimHit::getPhiCoord
float getPhiCoord() const
Definition: FPGATrackSimHit.h:108
to_string
std::string to_string(HitType t)
Definition: FPGATrackSimHit.cxx:158
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
HitType::clustered
@ clustered
FPGATrackSimHit::getEtaCoord
float getEtaCoord() const
Definition: FPGATrackSimHit.h:109
HitType::mapped
@ mapped
FPGATrackSimHit::m_detectorZone
DetectorZone m_detectorZone
Definition: FPGATrackSimHit.h:191
HitType::unmapped
@ unmapped