Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:22:13

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 #include <vector>
0015 #include <utility>
0016 
0017 namespace ROOT {
0018 
0019 namespace Minuit2 {
0020 
0021 /** MnPlot produces a text-screen graphical output of (x,y) points, e.g.
0022     from Scan or Contours.
0023 */
0024 
0025 class MnPlot {
0026 
0027 public:
0028    MnPlot() : fPageWidth(80), fPageLength(30) {}
0029 
0030    MnPlot(unsigned int width, unsigned int length) : fPageWidth(width), fPageLength(length)
0031    {
0032       if (fPageWidth > 120)
0033          fPageWidth = 120;
0034       if (fPageLength > 56)
0035          fPageLength = 56;
0036    }
0037 
0038    ~MnPlot() {}
0039 
0040    void operator()(const std::vector<std::pair<double, double>> &) const;
0041    void operator()(double, double, const std::vector<std::pair<double, double>> &) const;
0042 
0043    unsigned int Width() const { return fPageWidth; }
0044    unsigned int Length() const { return fPageLength; }
0045 
0046 private:
0047    unsigned int fPageWidth;
0048    unsigned int fPageLength;
0049 };
0050 
0051 } // namespace Minuit2
0052 
0053 } // namespace ROOT
0054 
0055 #endif // ROOT_Minuit2_MnPlot