Logo ROOT  
Reference Guide
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 
17 namespace ROOT {
18 
19  namespace Minuit2 {
20 
21 
22 /** MnPlot produces a text-screen graphical output of (x,y) points, e.g.
23  from Scan or Contours.
24 */
25 
26 class MnPlot {
27 
28 public:
29 
30  MnPlot() : fPageWidth(80), fPageLength(30) {}
31 
32  MnPlot(unsigned int width, unsigned int length) : fPageWidth(width), fPageLength(length) {
33  if(fPageWidth > 120) fPageWidth = 120;
34  if(fPageLength > 56) fPageLength = 56;
35  }
36 
37  ~MnPlot() {}
38 
39  void operator()(const std::vector<std::pair<double,double> >&) const;
40  void operator()(double, double, const std::vector<std::pair<double,double> >&) const;
41 
42  unsigned int Width() const {return fPageWidth;}
43  unsigned int Length() const {return fPageLength;}
44 
45 private:
46 
47  unsigned int fPageWidth;
48  unsigned int fPageLength;
49 };
50 
51  } // namespace Minuit2
52 
53 } // namespace ROOT
54 
55 #endif // ROOT_Minuit2_MnPlot
ROOT::Minuit2::MnPlot::operator()
void operator()(const std::vector< std::pair< double, double > > &) const
Definition: MnPlot.cxx:27
ROOT::Minuit2::MnPlot::MnPlot
MnPlot()
Definition: MnPlot.h:42
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
ROOT::Minuit2::MnPlot::~MnPlot
~MnPlot()
Definition: MnPlot.h:49
ROOT::Minuit2::MnPlot::fPageLength
unsigned int fPageLength
Definition: MnPlot.h:60
ROOT::Minuit2::MnPlot::Length
unsigned int Length() const
Definition: MnPlot.h:55
ROOT::Minuit2::MnPlot::Width
unsigned int Width() const
Definition: MnPlot.h:54
ROOT::Minuit2::MnPlot::fPageWidth
unsigned int fPageWidth
Definition: MnPlot.h:59
ROOT
VSD Structures.
Definition: StringConv.hxx:21
MnConfig.h