ATLAS Offline Software
Loading...
Searching...
No Matches
ForwardTracker::Stringer Class Reference
Collaboration diagram for ForwardTracker::Stringer:

Public Member Functions

 Stringer ()
void operator() (const IBeamElement::ConstPtr_t &be)
std::string str () const

Private Attributes

std::shared_ptr< std::stringstream > m_ost

Detailed Description

Definition at line 79 of file ForwardTracker/src/Beamline.cxx.

Constructor & Destructor Documentation

◆ Stringer()

ForwardTracker::Stringer::Stringer ( )
inline

Definition at line 83 of file ForwardTracker/src/Beamline.cxx.

83: m_ost(new std::stringstream) { (*m_ost) << "----------------- Beamline -----------------\n"; }
std::shared_ptr< std::stringstream > m_ost

Member Function Documentation

◆ operator()()

void ForwardTracker::Stringer::operator() ( const IBeamElement::ConstPtr_t & be)
inline

Definition at line 85 of file ForwardTracker/src/Beamline.cxx.

85 {
86
87 (*m_ost) << std::fixed << std::left
88 << std::setw(15) << be->label()
89 << std::setw(10) << be->side() << std::right
90 << std::setw(12) << be->frontFace()
91 << std::setw(12) << be->rearFace()
92 << " pos" << be->position()
93 << "\n";
94 }

◆ str()

std::string ForwardTracker::Stringer::str ( ) const
inline

Definition at line 96 of file ForwardTracker/src/Beamline.cxx.

96{ return m_ost->str(); }

Member Data Documentation

◆ m_ost

std::shared_ptr<std::stringstream> ForwardTracker::Stringer::m_ost
private

Definition at line 100 of file ForwardTracker/src/Beamline.cxx.


The documentation for this class was generated from the following file: