22 #include <boost/container/static_vector.hpp>
23 #include <dfe/dfe_io_dsv.hpp>
32 throw std::invalid_argument(
"Missing input filename stem");
45 return "CsvSpacePointReader";
59 :
m_cfg.inputStem +
'_' +
m_cfg.inputCollection;
63 dfe::NamedTupleCsvReader<SpacePointData>
reader(
path);
66 while (reader.read(data)) {
69 if (
m_cfg.inputCollection ==
"pixel" ||
m_cfg.inputCollection ==
"strip" ||
70 m_cfg.inputCollection ==
"overlap") {
71 boost::container::static_vector<Acts::SourceLink, 2> sLinks;
74 if (
m_cfg.extendCollection) {
88 spacePoints.emplace_back(globalPos, data.
sp_covr, data.
sp_covz, sLinks,
91 topStripDirection, bottomStripDirection,
92 stripCenterDistance, topStripCenterPosition);
94 spacePoints.emplace_back(globalPos, data.
sp_covr, data.
sp_covz, sLinks);
98 return ProcessCode::ABORT;
102 ACTS_DEBUG(
"Created " << spacePoints.size() <<
" " <<
m_cfg.inputCollection
104 m_outputSpacePoints(ctx,
std::move(spacePoints));