25 m_outputFile(cfg.rootFile) {
28 throw std::invalid_argument(
"Missing input collection");
30 throw std::invalid_argument(
"Missing tree name");
37 throw std::ios_base::failure(
"Could not open '" +
m_cfg.
filePath);
43 throw std::bad_alloc();
58 m_outputFile->Close();
65 m_outputTree->Write();
66 ACTS_INFO(
"Wrote trackparameters to tree '" << m_cfg.treeName <<
"' in '"
67 << m_cfg.filePath <<
"'");
74 const std::vector<BoundTrackParameters>& trackParams) {
75 if (m_outputFile ==
nullptr)
79 std::lock_guard<std::mutex> lock(m_writeMutex);
84 for (
auto& params : trackParams) {
85 m_d0 = params.parameters()[0];
86 m_z0 = params.parameters()[1];
87 m_phi = params.parameters()[2];
88 m_theta = params.parameters()[3];
89 m_qp = params.parameters()[4];