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
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:29
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
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...