Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /** TRACCC library, part of the ACTS project (R&D line)
0002  *
0003  * (c) 2022-2023 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 #pragma once
0009 
0010 // System include(s).
0011 #include <string>
0012 #include <string_view>
0013 
0014 namespace traccc::plot_helpers {
0015 
0016 /// @brief Nested binning struct for booking plots
0017 struct binning {
0018   /// Constructor with default arguments
0019   binning(std::string_view b_title = "", int bins = 0, float b_min = 0.f,
0020           float b_max = 0.f)
0021       : title(b_title), n_bins(bins), min(b_min), max(b_max) {}
0022 
0023   std::string title;  ///< title to be displayed
0024   int n_bins;         ///< number of bins
0025   float min;          ///< minimum value
0026   float max;          ///< maximum value
0027 };
0028 
0029 }  // namespace traccc::plot_helpers