CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
StatisticalPlot Class Referenceabstract

StatisticalPlot: the base class for the statistical plots. More...

#include <StatisticalPlot.h>

Inheritance diagram for StatisticalPlot:
ExclusionBandPlot LEPBandPlot

Public Member Functions

virtual void draw (const char *options="")=0
 Draw on canvas. More...
 
virtual void dumpToFile (const char *RootFileName, const char *options="")=0
 All the objects are written to rootfile. More...
 
void dumpToImage (const char *filename)
 Write an image on disk. More...
 
TCanvas * getCanvas ()
 Get the canvas. More...
 
bool is_verbose ()
 get the verbosity More...
 
virtual void print (const char *options="")=0
 Print the relevant information. More...
 
void setCanvas (TCanvas *new_canvas)
 Set the canvas. More...
 
void setVerbosity (bool verbosity)
 Set the verbosity. More...
 
 StatisticalPlot (const char *name, const char *title, bool verbosity=true)
 Constructor. More...
 
 ~StatisticalPlot () override
 Destructor. More...
 

Private Attributes

TCanvas * m_canvas
 Canvas. More...
 
bool m_verbose
 Verbosity flag. More...
 

Detailed Description

StatisticalPlot: the base class for the statistical plots.

Revision
1.3
Date
2009/04/15 11:10:45
Author
D. Piparo (danilo.piparo<at>cern.ch), G. Schott - Universitaet Karlsruhe

This class provides the base for all the statistical Plots.

Definition at line 21 of file StatisticalPlot.h.

Constructor & Destructor Documentation

StatisticalPlot::StatisticalPlot ( const char *  name,
const char *  title,
bool  verbosity = true 
)

Constructor.

StatisticalPlot::~StatisticalPlot ( )
override

Destructor.

Definition at line 40 of file StatisticalPlot.cc.

40  {
41  //delete m_canvas;
42  }

Member Function Documentation

virtual void StatisticalPlot::draw ( const char *  options = "")
pure virtual

Draw on canvas.

Implemented in LEPBandPlot, and ExclusionBandPlot.

Referenced by dumpToImage().

virtual void StatisticalPlot::dumpToFile ( const char *  RootFileName,
const char *  options = "" 
)
pure virtual

All the objects are written to rootfile.

Implemented in LEPBandPlot, and ExclusionBandPlot.

Referenced by dumpToImage().

void StatisticalPlot::dumpToImage ( const char *  filename)
inline

Write an image on disk.

Definition at line 44 of file StatisticalPlot.h.

References draw(), dumpToFile(), m_canvas, and print().

44 {m_canvas->Print(filename);}
TCanvas * m_canvas
Canvas.
TCanvas* StatisticalPlot::getCanvas ( )
inline

Get the canvas.

Definition at line 38 of file StatisticalPlot.h.

References m_canvas.

Referenced by ExclusionBandPlot::draw(), and LEPBandPlot::draw().

38 {return m_canvas;}
TCanvas * m_canvas
Canvas.
bool StatisticalPlot::is_verbose ( )

get the verbosity

Definition at line 34 of file StatisticalPlot.cc.

References m_verbose.

34  {
35  return m_verbose;
36  }
bool m_verbose
Verbosity flag.
virtual void StatisticalPlot::print ( const char *  options = "")
pure virtual

Print the relevant information.

Implemented in LEPBandPlot, and ExclusionBandPlot.

Referenced by dumpToImage().

void StatisticalPlot::setCanvas ( TCanvas *  new_canvas)
inline

Set the canvas.

Definition at line 41 of file StatisticalPlot.h.

References m_canvas.

Referenced by ExclusionBandPlot::draw(), and LEPBandPlot::draw().

41 {m_canvas=new_canvas;}
TCanvas * m_canvas
Canvas.
void StatisticalPlot::setVerbosity ( bool  verbosity)

Set the verbosity.

Definition at line 28 of file StatisticalPlot.cc.

References m_verbose, and HIPAlignmentAlgorithm_cfi::verbosity.

28  {
30  }
bool m_verbose
Verbosity flag.

Member Data Documentation

TCanvas* StatisticalPlot::m_canvas
private

Canvas.

Definition at line 61 of file StatisticalPlot.h.

Referenced by dumpToImage(), getCanvas(), and setCanvas().

bool StatisticalPlot::m_verbose
private

Verbosity flag.

Definition at line 58 of file StatisticalPlot.h.

Referenced by is_verbose(), and setVerbosity().