BCMTFComparisonTool Class Reference

A helper class for BCMTFAnalysisFacility storing information. More...

#include <BCMTFComparisonTool.h>

Public Member Functions

Constructors and destructors
 BCMTFComparisonTool (const std::string &name)
 The default constructor. More...
 
 ~BCMTFComparisonTool ()
 The defaul destructor. More...
 
Member functions (get)
const std::string & GetName ()
 
const std::string & GetSafeName ()
 
int GetNContributions ()
 
Setters
void SetName (const std::string &name)
 Set name.
 
Member functions (miscellaneous methods)
void AddContribution (const std::string &name, TH1D hist)
 Add a constribution. More...
 
void AddContribution (const std::string &name, double centralvalue, double uncertainty)
 Add a constribution. More...
 
void DrawOverview ()
 Draw an overview. More...
 
Member functions (output methods)
void PrintHistograms (const std::string &filename)
 Print all histograms to a file. More...
 
void PrintOverview (const std::string &filename)
 Print an overview to a file. More...
 

Detailed Description

A helper class for BCMTFAnalysisFacility storing information.

Author
Daniel Kollar
Kevin Kröninger
Version
1.1
Date
06.2012

This is a helper class for BCMTFAnalysisFacility storing information.

Definition at line 31 of file BCMTFComparisonTool.h.

Constructor & Destructor Documentation

BCMTFComparisonTool::BCMTFComparisonTool ( const std::string &  name)

The default constructor.

Parameters
nameThe name of the class.

Definition at line 22 of file BCMTFComparisonTool.cxx.

BCMTFComparisonTool::~BCMTFComparisonTool ( )

The defaul destructor.

Definition at line 28 of file BCMTFComparisonTool.cxx.

Member Function Documentation

void BCMTFComparisonTool::AddContribution ( const std::string &  name,
TH1D  hist 
)

Add a constribution.

Parameters
nameThe name of the contribution.
histThe histogram.

Definition at line 35 of file BCMTFComparisonTool.cxx.

void BCMTFComparisonTool::AddContribution ( const std::string &  name,
double  centralvalue,
double  uncertainty 
)

Add a constribution.

Parameters
nameThe name of the contribution.
centralvalueThe central value.
uncertaintyThe uncertainty.

Definition at line 56 of file BCMTFComparisonTool.cxx.

void BCMTFComparisonTool::DrawOverview ( )

Draw an overview.

Definition at line 101 of file BCMTFComparisonTool.cxx.

const std::string& BCMTFComparisonTool::GetName ( )
inline
Returns
The name of the class.

Definition at line 54 of file BCMTFComparisonTool.h.

int BCMTFComparisonTool::GetNContributions ( )
inline
Returns
The number of contributions.

Definition at line 64 of file BCMTFComparisonTool.h.

const std::string& BCMTFComparisonTool::GetSafeName ( )
inline
Returns
The name of the class.

Definition at line 59 of file BCMTFComparisonTool.h.

void BCMTFComparisonTool::PrintHistograms ( const std::string &  filename)

Print all histograms to a file.

Parameters
filenameThe name of the file.

Definition at line 72 of file BCMTFComparisonTool.cxx.

void BCMTFComparisonTool::PrintOverview ( const std::string &  filename)

Print an overview to a file.

Parameters
filenameThe name of the file.

Definition at line 169 of file BCMTFComparisonTool.cxx.


The documentation for this class was generated from the following files: