17 namespace ActsExamples {
28 template <
typename step_t>
30 :
public WriterT<std::vector<std::vector<step_t>>> {
45 :
WriterT<std::vector<std::vector<step_t>>>(cfg.collection,
46 "ObjSpacePointWriter",
level),
49 throw std::invalid_argument(
"Missing input collection");
70 const std::vector<std::vector<step_t>>& stepCollection)
override {
76 throw std::ios_base::failure(
"Could not open '" + path +
"' to write");
80 unsigned int vCounter = 0;
82 for (
auto&
steps : stepCollection) {
84 if (
steps.size() > 2) {
94 size_t vBreak = vCounter + steps.size() - 1;
95 for (; vCounter < vBreak; ++vCounter) {
96 os <<
"l " << vCounter <<
" " << vCounter + 1 <<
'\n';