22 m_outputFile(cfg.rootFile) {
25 throw std::invalid_argument(
"Missing input collection");
27 throw std::invalid_argument(
"Missing tree name");
34 throw std::ios_base::failure(
"Could not open '" +
m_cfg.
filePath);
40 throw std::bad_alloc();
55 m_outputFile->Close();
62 m_outputTree->Write();
63 ACTS_INFO(
"Wrote trackparameters to tree '" << m_cfg.treeName <<
"' in '"
64 << m_cfg.filePath <<
"'");
71 const std::vector<BoundTrackParameters>& trackParams) {
72 if (m_outputFile ==
nullptr)
76 std::lock_guard<std::mutex> lock(m_writeMutex);
81 for (
auto& params : trackParams) {
82 m_d0 = params.parameters()[0];
83 m_z0 = params.parameters()[1];
84 m_phi = params.parameters()[2];
85 m_theta = params.parameters()[3];
86 m_qp = params.parameters()[4];