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#include <vector>
15#include <utility>
16
17namespace ROOT {
18
19namespace Minuit2 {
20
21/** MnPlot produces a text-screen graphical output of (x,y) points, e.g.
22 from Scan or Contours.
23*/
24
25class MnPlot {
26
27public:
29
30 MnPlot(unsigned int width, unsigned int length) : fPageWidth(width), fPageLength(length)
31 {
32 if (fPageWidth > 120)
33 fPageWidth = 120;
34 if (fPageLength > 56)
35 fPageLength = 56;
36 }
37
39
40 void operator()(const std::vector<std::pair<double, double>> &) const;
41 void operator()(double, double, const std::vector<std::pair<double, double>> &) const;
42
43 unsigned int Width() const { return fPageWidth; }
44 unsigned int Length() const { return fPageLength; }
45
46private:
47 unsigned int fPageWidth;
48 unsigned int fPageLength;
49};
50
51} // namespace Minuit2
52
53} // namespace ROOT
54
55#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:25
unsigned int fPageLength
Definition MnPlot.h:48
void operator()(const std::vector< std::pair< double, double > > &) const
Definition MnPlot.cxx:18
unsigned int fPageWidth
Definition MnPlot.h:47
MnPlot(unsigned int width, unsigned int length)
Definition MnPlot.h:30
unsigned int Width() const
Definition MnPlot.h:43
unsigned int Length() const
Definition MnPlot.h:44
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.