Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

recocert::RecoCert Class Reference

Control the certification of the DZERO offline reconstruction program. More...

#include <RecoCert.hpp>

List of all members.

Public Methods

 RecoCert (HepRootFileManager *hstMgr)
 Create an RecoCert object. More...

 RecoCert (HepRootFileManager *hstMgr, const edm::RCP &rcp)
 Create an RecoCert object. More...

 RecoCert (HepRootFileManager *hstMgr, TFile *file)
 Create a RecoCert object and load histograms saved in specified file. More...

 ~RecoCert ()
 Destructor.

void add (recocert::RecoCertComponent *component)
 Add given RecoCertComponent.

void analyze (const edm::Event &event, recocert::RecoCertAdapter *adapter)
 Analyze an event. More...

void merge (TFile *file)
 Merge histograms in given file with those already in memory.

void draw (const int &level=0, const std::string &select="ALL", std::vector< RecoCert *> *overlay=NULL)
 Draw standard histograms. More...

void print (const int &level=0, const std::string &select="ALL", const std::string &psfilename="recocert.ps", std::vector< RecoCert *> *overlay=NULL)
 Print standard histograms to a postscript file. More...

void stats (const int &level=0, const std::string &select="ALL")
 Print standard statistics. More...

void save ()
 Save histograms. More...

void directory ()
 Print a directory of current enabled RecoCertComponents.

RecoCertComponentgetComponent (std::string name)
 Return specified RecoCertComponent. More...


Private Methods

std::vector<std::string> printOrder ()
 Return order to print plots.


Private Attributes

int _numEvents
 Internal counter of number of events processed.

std::map<std::string, recocert::RecoCertComponent*> _components
 Internal container of components.

HepRootFileManager* _hstMgr
 Manager used to handle histograms.


Detailed Description

Control the certification of the DZERO offline reconstruction program.

This class performs certification of the DZERO offline reconstruction program. It uses various RecoCertComponents to monitor different aspects of the reconstruction and detector performance. Each RecoCertComponent manages a standard set of histograms, which can be filled by analyzing events or by loading in from external files. These histograms can then be drawn (draw method) to the screen or printed to a postscript file (print method). In addition, various statistics can be printed (stat method).

To create new histograms use the constructor RecoCert(HepRootFileManager*) and the method analyze(...). Use the enable(RCP&) method to control via RCP which RecoCertComponents are included (see RecoCert.rcp). Use the add(RecoCertComponent*) to explicitely add components.

To load previously saved histograms from a file use the constructor RecoCert(HepRootFileManager* , TFile*). Multiple files may be merged using the merge(TFile*) method.

Each RecoCertComponent maintains its histograms in a separate subdirectory. To get a listing of these subdirectories, use the directory method.


Constructor & Destructor Documentation

recocert::RecoCert::RecoCert ( HepRootFileManager * hstMgr )
 

Create an RecoCert object.

This constructor creates a RecoCert object with all components enabled.

recocert::RecoCert::RecoCert ( HepRootFileManager * hstMgr,
const edm::RCP & rcp )
 

Create an RecoCert object.

This constructor creates a RecoCert object. Components are under the control of the passed RCP.

recocert::RecoCert::RecoCert ( HepRootFileManager * hstMgr,
TFile * file )
 

Create a RecoCert object and load histograms saved in specified file.

This constructor creates a RecoCert object with all standard RecoCertComponents enabled, and then loads their histograms in from the specified file. To merge more than one set of histograms, first use this constructor, and then make subsequent calls to the merge(TFile*) method.

recocert::RecoCert::~RecoCert ( )
 

Destructor.


Member Function Documentation

void recocert::RecoCert::add ( recocert::RecoCertComponent * component )
 

Add given RecoCertComponent.

void recocert::RecoCert::analyze ( const edm::Event & event,
recocert::RecoCertAdapter * adapter )
 

Analyze an event.

This method passes an event and a RecoCertAdapter to each RecoCertComponent analyze method. The RecoCertAdapter can be used by the component to gain easy access to various parts of the event.

void recocert::RecoCert::directory ( )
 

Print a directory of current enabled RecoCertComponents.

void recocert::RecoCert::draw ( const int & level = 0,
const std::string & select = "ALL",
std::vector< RecoCert *> * overlay = NULL )
 

Draw standard histograms.

Standard histograms are drawn depending on the user specified value of level. The higher the level, the more detailed the plots. The default level gives a summary, appropriate for simple testing.

By default, all components draw their histograms. Optionally a specific component may be selected by using the "select" parameter.

Histograms from other RecoCert objects can also be overlaid by passing and optional collection of such objects. Details about what happens is left to the individual RecoCertComponents.

RecoCertComponent * recocert::RecoCert::getComponent ( std::string name ) [inline]
 

Return specified RecoCertComponent.

This method gives access to individual components. It is used, for example, when overlaying histograms from different RecoCert objects.

void recocert::RecoCert::merge ( TFile * file )
 

Merge histograms in given file with those already in memory.

void recocert::RecoCert::print ( const int & level = 0,
const std::string & select = "ALL",
const std::string & psfilename = "recocert.ps",
std::vector< RecoCert *> * overlay = NULL )
 

Print standard histograms to a postscript file.

Standard histograms are drawn depending on the user specified value of level. The higher the level, the more detailed the plots. The default level gives a summary, appropriate for simple testing.

By default, all components draw their histograms. Optionally a specific component may be selected by using the "select" parameter.

The default name of the postscript file is "recocert.ps". This can be overridden by using the parameter psfilename.

Histograms from other RecoCert objects can also be overlaid by passing and optional collection of such objects. Details about what happens is left to the individual RecoCertComponents.

std::vector< std::string > recocert::RecoCert::printOrder ( ) [private]
 

Return order to print plots.

void recocert::RecoCert::save ( )
 

Save histograms.

This method is currently unsupported. It previously saved ROOT canvases containing the drawn histograms. It will soon be used to save merged histograms, created by using the add method.

void recocert::RecoCert::stats ( const int & level = 0,
const std::string & select = "ALL" )
 

Print standard statistics.

Selected statistics are written depending on the user specified value of level. The higher the level, the more detailed the statistics.


Member Data Documentation

std::map< std::string, recocert::RecoCertComponent *> recocert::RecoCert::_components [private]
 

Internal container of components.

HepRootFileManager * recocert::RecoCert::_hstMgr [private]
 

Manager used to handle histograms.

int recocert::RecoCert::_numEvents [private]
 

Internal counter of number of events processed.


The documentation for this class was generated from the following file:
Generated at Sat Oct 4 20:18:33 2003 for recocert by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001