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 <vector>
18#include <utility>
19
20namespace ROOT {
21
22namespace Minuit2 {
23
24/** MnPlot produces a text-screen graphical output of (x,y) points, e.g.
25 from Scan or Contours.
26*/
27
28class MnPlot {
29
30public:
32
33 MnPlot(unsigned int width, unsigned int length) : fPageWidth(width), fPageLength(length)
34 {
35 if (fPageWidth > 120)
36 fPageWidth = 120;
37 if (fPageLength > 56)
38 fPageLength = 56;
39 }
40
42
43 void operator()(std::span<const std::pair<double, double>> ) const;
44 void operator()(double, double, std::span<const std::pair<double, double>> ) const;
45
46 unsigned int Width() const { return fPageWidth; }
47 unsigned int Length() const { return fPageLength; }
48
49private:
50 unsigned int fPageWidth;
51 unsigned int fPageLength;
52};
53
54} // namespace Minuit2
55
56} // namespace ROOT
57
58#endif // ROOT_Minuit2_MnPlot
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h length
Option_t Option_t width
MnPlot produces a text-screen graphical output of (x,y) points, e.g.
Definition MnPlot.h:28
unsigned int fPageLength
Definition MnPlot.h:51
void operator()(std::span< const std::pair< double, double > >) const
Definition MnPlot.cxx:19
unsigned int fPageWidth
Definition MnPlot.h:50
MnPlot(unsigned int width, unsigned int length)
Definition MnPlot.h:33
unsigned int Width() const
Definition MnPlot.h:46
unsigned int Length() const
Definition MnPlot.h:47
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...