Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
MnPlot.h
Go to the documentation of this file.
1// @(#)root/minuit2:$Id$
2// Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
3
4/**********************************************************************
5 * *
6 * Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT *
7 * *
8 **********************************************************************/
9
10#ifndef ROOT_Minuit2_MnPlot
11#define ROOT_Minuit2_MnPlot
12
13#include "Minuit2/MnConfig.h"
14
15#include <ROOT/RSpan.hxx>
16
17#include <algorithm>
18#include <vector>
19#include <utility>
20
21namespace ROOT {
22
23namespace Minuit2 {
24
25/** MnPlot produces a text-screen graphical output of (x,y) points, e.g.
26 from Scan or Contours.
27*/
28
29class MnPlot {
30
31public:
32 MnPlot() = default;
33
34 MnPlot(unsigned int width, unsigned int length)
35 : fPageWidth(std::min(width, 120u)), fPageLength(std::min(length, 56u))
36 {
37 }
38
39 void operator()(std::span<const std::pair<double, double>> ) const;
40 void operator()(double, double, std::span<const std::pair<double, double>> ) const;
41
42 unsigned int Width() const { return fPageWidth; }
43 unsigned int Length() const { return fPageLength; }
44
45private:
46 unsigned int fPageWidth = 80;
47 unsigned int fPageLength = 30;
48};
49
50} // namespace Minuit2
51
52} // namespace ROOT
53
54#endif // ROOT_Minuit2_MnPlot
unsigned int fPageLength
Definition MnPlot.h:47
void operator()(std::span< const std::pair< double, double > >) const
Definition MnPlot.cxx:19
unsigned int fPageWidth
Definition MnPlot.h:46
MnPlot(unsigned int width, unsigned int length)
Definition MnPlot.h:34
unsigned int Width() const
Definition MnPlot.h:42
unsigned int Length() const
Definition MnPlot.h:43