Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

cafe::Hist2D Class Reference
[CAF Environment (Cafe)]

Create a 2D Histogram (TH2F) and fill it for each event. More...

#include <Hist2D.hpp>

Inheritance diagram for cafe::Hist2D:

cafe::Processor List of all members.

Public Member Functions

 Hist2D (const char *name)
 ~Hist2D ()
void begin ()
 Called at beginning of processing.

void inputFileOpened (TFile *file)
 Called for every new input file that was opened.

bool processEvent (Event &event)
 Called for every event.

 ClassDef (Hist2D, 0)

Private Attributes

std::string _title
int _num_binsX
double _bin_minX
double _bin_maxX
int _num_binsY
double _bin_minY
double _bin_maxY
TH2F * _hist
Formula_select
Formula_draw1
Formula_draw2
TTreeFormulaManager * _mgr
std::string _weight

Detailed Description

Create a 2D Histogram (TH2F) and fill it for each event.

The histogram is stored in the current directory. You can set the current file and directory in any of the parents of this Processor or the top-level 'Cafe' controller via the .Output: or .Directory: parameters.

Configuration options:

Definition at line 34 of file Hist2D.hpp.


Constructor & Destructor Documentation

cafe::Hist2D::Hist2D const char *  name  ) 
 

Definition at line 17 of file Hist2D.cpp.

References _bin_maxX, _bin_maxY, _bin_minX, _bin_minY, _draw1, _draw2, _num_binsX, _num_binsY, _select, _title, _weight, cafe::Processor::err(), cafe::Config::get(), cafe::Config::getVString(), cafe::Processor::name(), cafe::Processor::out(), cafe::Processor::replace(), and cafe::Formula::setFormula().

cafe::Hist2D::~Hist2D  ) 
 

Definition at line 91 of file Hist2D.cpp.

References _draw1, _draw2, and _select.


Member Function Documentation

void cafe::Hist2D::begin  )  [virtual]
 

Called at beginning of processing.

Reimplemented from cafe::Processor.

Definition at line 98 of file Hist2D.cpp.

References _bin_maxX, _bin_maxY, _bin_minX, _bin_minY, _hist, _num_binsX, _num_binsY, _title, cafe::Processor::err(), cafe::Processor::fullName(), cafe::Processor::getDirectory(), cafe::Processor::name(), and cafe::Processor::out().

cafe::Hist2D::ClassDef Hist2D  ,
 

void cafe::Hist2D::inputFileOpened TFile *  file  )  [virtual]
 

Called for every new input file that was opened.

Reimplemented from cafe::Processor.

Definition at line 117 of file Hist2D.cpp.

References _draw1, _draw2, _mgr, _select, cafe::Formula::getFormula(), and cafe::Formula::inputFileOpened().

bool cafe::Hist2D::processEvent Event event  )  [virtual]
 

Called for every event.

Reimplemented from cafe::Processor.

Definition at line 132 of file Hist2D.cpp.

References _draw1, _draw2, _hist, _mgr, _select, _weight, cafe::EventBase::get(), and cafe::Formula::getFormula().


Member Data Documentation

double cafe::Hist2D::_bin_maxX [private]
 

Definition at line 44 of file Hist2D.hpp.

Referenced by begin(), and Hist2D().

double cafe::Hist2D::_bin_maxY [private]
 

Definition at line 46 of file Hist2D.hpp.

Referenced by begin(), and Hist2D().

double cafe::Hist2D::_bin_minX [private]
 

Definition at line 44 of file Hist2D.hpp.

Referenced by begin(), and Hist2D().

double cafe::Hist2D::_bin_minY [private]
 

Definition at line 46 of file Hist2D.hpp.

Referenced by begin(), and Hist2D().

Formula* cafe::Hist2D::_draw1 [private]
 

Definition at line 49 of file Hist2D.hpp.

Referenced by Hist2D(), inputFileOpened(), processEvent(), and ~Hist2D().

Formula* cafe::Hist2D::_draw2 [private]
 

Definition at line 50 of file Hist2D.hpp.

Referenced by Hist2D(), inputFileOpened(), processEvent(), and ~Hist2D().

TH2F* cafe::Hist2D::_hist [private]
 

Definition at line 47 of file Hist2D.hpp.

Referenced by begin(), and processEvent().

TTreeFormulaManager* cafe::Hist2D::_mgr [private]
 

Definition at line 51 of file Hist2D.hpp.

Referenced by inputFileOpened(), and processEvent().

int cafe::Hist2D::_num_binsX [private]
 

Definition at line 43 of file Hist2D.hpp.

Referenced by begin(), and Hist2D().

int cafe::Hist2D::_num_binsY [private]
 

Definition at line 45 of file Hist2D.hpp.

Referenced by begin(), and Hist2D().

Formula* cafe::Hist2D::_select [private]
 

Definition at line 48 of file Hist2D.hpp.

Referenced by Hist2D(), inputFileOpened(), processEvent(), and ~Hist2D().

std::string cafe::Hist2D::_title [private]
 

Definition at line 42 of file Hist2D.hpp.

Referenced by begin(), and Hist2D().

std::string cafe::Hist2D::_weight [private]
 

Definition at line 52 of file Hist2D.hpp.

Referenced by Hist2D(), and processEvent().


The documentation for this class was generated from the following files:
Generated on Tue Mar 28 10:13:10 2006 for CAF by doxygen 1.3.4