Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-11-08 10:20:37

0001 // @(#)root/minuit2:$Id$
0002 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei   2003-2005
0003 
0004 /**********************************************************************
0005  *                                                                    *
0006  * Copyright (c) 2005 LCG ROOT Math team,  CERN/PH-SFT                *
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 /** MnPlot produces a text-screen graphical output of (x,y) points, e.g.
0026     from Scan or Contours.
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 } // namespace Minuit2
0051 
0052 } // namespace ROOT
0053 
0054 #endif // ROOT_Minuit2_MnPlot