CMS 3D CMS Logo

Public Member Functions | Private Attributes

StatisticalPlot Class Reference

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

#include <StatisticalPlot.h>

Inheritance diagram for StatisticalPlot:
TNamed ExclusionBandPlot LEPBandPlot

List of all members.

Public Member Functions

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

Private Attributes

TCanvas * m_canvas
 Canvas.
bool m_verbose
 Verbosity flag.

Detailed Description

StatisticalPlot: the base class for the statistical plots.

Revision:
1.4
Date:
2009/05/15 09:55:43
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 ( )

Destructor.

Definition at line 41 of file StatisticalPlot.cc.

                                 {
    //delete m_canvas;
    }

Member Function Documentation

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

Draw on canvas.

Implemented in ExclusionBandPlot, and LEPBandPlot.

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

All the objects are written to rootfile.

Implemented in ExclusionBandPlot, and LEPBandPlot.

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

Write an image on disk.

Definition at line 44 of file StatisticalPlot.h.

References m_canvas.

{m_canvas->Print(filename);}
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().

{return m_canvas;}
bool StatisticalPlot::is_verbose ( )

get the verbosity

Definition at line 35 of file StatisticalPlot.cc.

References m_verbose.

                                {
    return m_verbose;
    }
virtual void StatisticalPlot::print ( const char *  options = "") [pure virtual]

Print the relevant information.

Implemented in ExclusionBandPlot, and LEPBandPlot.

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().

{m_canvas=new_canvas;}
void StatisticalPlot::setVerbosity ( bool  verbosity)

Set the verbosity.

Definition at line 29 of file StatisticalPlot.cc.

References m_verbose, and verbosity.


Member Data Documentation

TCanvas* StatisticalPlot::m_canvas [private]

Canvas.

Definition at line 61 of file StatisticalPlot.h.

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

Verbosity flag.

Definition at line 58 of file StatisticalPlot.h.

Referenced by is_verbose(), and setVerbosity().