Back to home page

EIC code displayed by LXR

 
 

    


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

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/definitions/primitives.hpp"
0012 #include "traccc/edm/measurement_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 #include <vector>
0021 
0022 namespace traccc::io::csv {
0023 
0024 /// Read measurement information from a specific CSV file
0025 ///
0026 /// @param[out] measurements The collection to fill with the measurement data
0027 /// @param[in]  filename     The file to read the measurement data from
0028 /// @param[in]  detector  detray detector
0029 /// @param[in]  do_sort      Whether to sort the measurements or not
0030 ///
0031 std::vector<measurement_id_type> read_measurements(
0032     edm::measurement_collection::host& measurements, std::string_view filename,
0033     const traccc::host_detector* detector = nullptr,
0034     const traccc::detector_design_description::host* detector_description =
0035         nullptr,
0036     const traccc::detector_conditions_description::host* detector_conditions =
0037         nullptr,
0038     const bool do_sort = true);
0039 
0040 }  // namespace traccc::io::csv