ATLAS Offline Software
Loading...
Searching...
No Matches
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}
std::string to_string(HitType t)

◆ 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}
float getPhiCoord() const
int getEtaModule(bool old=false) const
unsigned getPhiModule() const
unsigned getPhysLayer(bool old=false) const
SiliconTech m_detType
DetectorZone m_detectorZone
float getEtaCoord() const

◆ 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}