Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

HVisitor Class Reference

#include <HVisitor.h>

List of all members.


Detailed Description

Abstract base class for a visitor to all histograms.

One possibility to operate on all objects is to use an HVisitor object, which will be called with all stored objects in turn (see Gamma, Helm, Johnson, Vlissides: Design Patterns for a discussion of the Visitor pattern).

Typically, an HVisitor object will use a dynamic_cast to check whether the RegO object at hand is a root histogram, e.g. a TH1, TH1F, TH2F, or whatever, and then apply some method(s) to the histogram.

The visitor can store information, like a number of entries a histogram should be normalized to, a line color or whatever. It can also be used to collect statistics, like the total number of entries in all histograms in a HList (useful if the HList is really a SetOfHistograms or a MatrixOfHistograms).

The visitor can perform rather complicated operations, like plotting a histogram with several fit functions overlaid, or performing a fit.

See file HVisitors.h for some examples of concrete HVisitor subclasses.

Author: Jenny Böhme, Benno List

Date
2004/06/15 10:54:51
Author
blist

Definition at line 36 of file HVisitor.h.

Public Member Functions

virtual void visit (RegO &h)=0
 The visitor.


Member Function Documentation

virtual void HVisitor::visit RegO h  )  [pure virtual]
 

The visitor.

Parameters:
h  The histogram to be visited

Referenced by ROList::visit().


The documentation for this class was generated from the following file:
Generated on Thu Oct 26 12:54:38 2006 for SFH by doxygen 1.3.2