File indexing completed on 2025-11-08 10:20:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef ROOT_Minuit2_MnPlot
0011 #define ROOT_Minuit2_MnPlot
0012
0013 #include "Minuit2/MnConfig.h"
0014
0015 #include <ROOT/RSpan.hxx>
0016
0017 #include <algorithm>
0018 #include <vector>
0019 #include <utility>
0020
0021 namespace ROOT {
0022
0023 namespace Minuit2 {
0024
0025
0026
0027
0028
0029 class MnPlot {
0030
0031 public:
0032 MnPlot() = default;
0033
0034 MnPlot(unsigned int width, unsigned int length)
0035 : fPageWidth(std::min(width, 120u)), fPageLength(std::min(length, 56u))
0036 {
0037 }
0038
0039 void operator()(std::span<const std::pair<double, double>> ) const;
0040 void operator()(double, double, std::span<const std::pair<double, double>> ) const;
0041
0042 unsigned int Width() const { return fPageWidth; }
0043 unsigned int Length() const { return fPageLength; }
0044
0045 private:
0046 unsigned int fPageWidth = 80;
0047 unsigned int fPageLength = 30;
0048 };
0049
0050 }
0051
0052 }
0053
0054 #endif