20 #include <dfe/dfe_io_dsv.hpp>
30 throw std::invalid_argument(
31 "You have to either provide track parameters or trajectories");
41 return "CsvTrackParameterWriter";
51 std::vector<Acts::BoundTrackParameters> inputTrackParameters;
53 if (!
m_cfg.inputTrackParameters.empty()) {
54 const auto&
tmp = m_inputTrackParameters(ctx);
55 inputTrackParameters =
tmp;
60 for (
auto tip : trajectories.tips()) {
61 if (!trajectories.hasTrackParameters(tip)) {
64 const auto& trackParam = trajectories.trackParameters(tip);
65 inputTrackParameters.push_back(trackParam);
73 dfe::NamedTupleCsvWriter<TrackParameterData>
writer(path,
74 m_cfg.outputPrecision);
77 for (
const auto&
tp : inputTrackParameters) {
78 const auto& params =
tp.parameters();
79 const auto&
cov =
tp.covariance().value();