Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:22:19

0001 /** TRACCC library, part of the ACTS project (R&D line)
0002  *
0003  * (c) 2022-2026 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 #pragma once
0009 
0010 // Project include(s).
0011 #include "traccc/edm/measurement_collection.hpp"
0012 #include "traccc/edm/spacepoint_collection.hpp"
0013 #include "traccc/geometry/detector.hpp"
0014 #include "traccc/geometry/detector_conditions_description.hpp"
0015 #include "traccc/geometry/detector_design_description.hpp"
0016 #include "traccc/geometry/host_detector.hpp"
0017 
0018 // System include(s).
0019 #include <string_view>
0020 
0021 namespace traccc::io::csv {
0022 
0023 /// Read spacepoint information from specific CSV files
0024 ///
0025 /// @param[out] spacepoints The spacepoint collection to fill
0026 /// @param[out] measurements The measurement collection to fill
0027 /// @param[in]  hit_filename  The file to read the hit/spacepoint data from
0028 /// @param[in]  meas_filename The file to read the measurement data from
0029 /// @param[in]  meas_hit_map_filename The file to read the mapping from
0030 ///                                   measurements to hits from
0031 /// @param[in]  detector  detray detector
0032 ///
0033 void read_spacepoints(edm::spacepoint_collection::host& spacepoints,
0034                       edm::measurement_collection::host& measurements,
0035                       std::string_view hit_filename,
0036                       std::string_view meas_filename,
0037                       std::string_view meas_hit_map_filename,
0038                       const traccc::host_detector* detector = nullptr,
0039                       const traccc::detector_design_description::host*
0040                           detector_description = nullptr,
0041                       const traccc::detector_conditions_description::host*
0042                           detector_conditions_description = nullptr,
0043                       const bool sort_measurements = true);
0044 
0045 }  // namespace traccc::io::csv