Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Examples

DHF Class Reference

#include <DHF.h>


Detailed Description

Class DHF Histogram Manager.

The class DHF implements the histogram manager. In the method BookHistos() the user can define a set histograms he want to fill at each cut level.

The method Define( ) provides a way to book automatically a many of histograms versions of the same histograms corresponding to the different event classes defined in the Class Categories these histograms are putted in a subdirectory

In the method FillAll(), the user is expected to define the rules to fill the histograms. The method FillSet() is provided to fill automagically the histos booked with the method Define().

Definition at line 26 of file DHF.h.

Public Member Functions

 DHF (TDirectory *Dir=0, char *name="HManager", char *title="default HManager")
 Default constructor.
 DHF (const DHF &)
 Copy constructor.
 ~DHF ()
 Default destructor.
virtual void Init ()
 Initalize the class (call BookHistos plus some other init).
void Add (TObject *hh)
 Add an histogram to the manager.
void SetCurrentPart (AMSEventR *ev, ParticleR *part)
 Sets the pointers to the event and to the current particles.
void SetDrawOption (char *basename, char *option)
 Set some standard draw option for the histograms.
TObject * GetHist (char *name)
 Returns the pointer to the histogram with the required name.
TDirectory * GetDir () const
 Returns the pointer to the directory holding the histograms.
virtual void FillAll ()
 Fill all histograms.
TDirectory * Define (char *name, char *title, int binx, Axis_t lowx, Axis_t upx, int biny, Axis_t lowy, Axis_t upy, char *dirname=0)
 Books 2d histo sets.
TDirectory * Define (char *name, char *title, int binx, Axis_t lowx, Axis_t upx, char *dirname=0)
 Books 1d histo sets.
TDirectory * Define (char *prof, char *name, char *title, int binx, Axis_t lowx, Axis_t upx, char *dirname)
 Books Profile histo sets.
void Fill (char *histo, Axis_t X1, Axis_t X2=1, Stat_t w=1.)
 Fills a 1D or 2D or Profile histogram.
void FillSet (char *histo, Axis_t X1, Axis_t X2=1, Stat_t w=1.)
 Fills a 1D or 2D or Profile histos sets.

Data Fields

AMSEventREvent
 Pointer to AMS Event.
ParticleRPartcl
 Pointer to the particle.

Protected Member Functions

TObjArray * GetHlist () const
 Returns the pointer to the container (TObjArray) of the histograms.
void Sumw2 ()
 Request the error calculation for all the histograms.
virtual void BookHistos ()
 User routine to book the histos.

Protected Attributes

TDirectory * fDir
 Main directory where to store the histos.
TObjArray * fHlist
 Tobject array containing the histos.


Constructor & Destructor Documentation

DHF::DHF TDirectory *  Dir = 0,
char *  name = "HManager",
char *  title = "default HManager"
 

Default constructor.

Default constructor, the arguments are a TDirectory where to store the histos, the name and the title of DHF Object

If the TDirectory argument is not passed or not valid the current directory(gDirectory) is set as fDir


The documentation for this class was generated from the following files:
Generated on Fri Oct 10 10:39:24 2008 for AMSRoot by  doxygen 1.3.9.1