ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSimGenScanTool.cxx File Reference

See header file. More...

Go to the source code of this file.

Functions

template<class T>
static std::string to_string (const std::vector< T > &v)

Detailed Description

See header file.

Author
Elliot Lipeles
Date
Feb 13, 2025
Author
Elliot Lipeles
Date
Sept 6th, 2024

Definition in file FPGATrackSimGenScanTool.cxx.

Function Documentation

◆ to_string()

template<class T>
std::string to_string ( const std::vector< T > & v)
inlinestatic

Definition at line 44 of file FPGATrackSimGenScanTool.cxx.

45{
46 std::ostringstream oss;
47 oss << "[";
48 if (!v.empty())
49 {
50 std::copy(v.begin(), v.end() - 1, std::ostream_iterator<T>(oss, ", "));
51 oss << v.back();
52 }
53 oss << "]";
54 return oss.str();
55}