#include <RecoCert.hpp>
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. | |
| RecoCertComponent* | getComponent (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. | |
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.
|
|
Create an RecoCert object. This constructor creates a RecoCert object with all components enabled. |
|
|
Create an RecoCert object. This constructor creates a RecoCert object. Components are under the control of the passed RCP. |
|
|
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. |
|
|
Destructor.
|
|
|
Add given RecoCertComponent.
|
|
|
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. |
|
|
Print a directory of current enabled RecoCertComponents.
|
|
|
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. |
|
|
Return specified RecoCertComponent. This method gives access to individual components. It is used, for example, when overlaying histograms from different RecoCert objects. |
|
|
Merge histograms in given file with those already in memory.
|
|
|
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. |
|
|
Return order to print plots.
|
|
|
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. |
|
|
Print standard statistics. Selected statistics are written depending on the user specified value of level. The higher the level, the more detailed the statistics. |
|
|
Internal container of components.
|
|
|
Manager used to handle histograms.
|
|
|
Internal counter of number of events processed.
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001