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

#include <Hist3D.hpp>

Inheritance diagram for cafe::Hist3D:

cafe::Processor List of all members.

Detailed Description

Create a 3D 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 37 of file Hist3D.hpp.

Public Member Functions

 Hist3D (const char *name)
 ~Hist3D ()
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 (Hist3D, 0)

Private Attributes

std::string _title
int _num_binsX
double _bin_minX
double _bin_maxX
int _num_binsY
double _bin_minY
double _bin_maxY
int _num_binsZ
double _bin_minZ
double _bin_maxZ
TH3F * _hist
Formula_select
Formula_draw1
Formula_draw2
Formula_draw3
TTreeFormulaManager * _mgr
std::string _weight


Constructor & Destructor Documentation

cafe::Hist3D::Hist3D const char *  name  ) 
 

Definition at line 17 of file Hist3D.cpp.

References _bin_maxX, _bin_maxY, _bin_maxZ, _bin_minX, _bin_minY, _bin_minZ, _draw1, _draw2, _draw3, _num_binsX, _num_binsY, _num_binsZ, _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::Hist3D::~Hist3D  ) 
 

Definition at line 96 of file Hist3D.cpp.

References _draw1, _draw2, _draw3, and _select.


Member Function Documentation

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

Called at beginning of processing.

Reimplemented from cafe::Processor.

Definition at line 105 of file Hist3D.cpp.

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

cafe::Hist3D::ClassDef Hist3D  ,
 

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

Called for every new input file that was opened.

Reimplemented from cafe::Processor.

Definition at line 127 of file Hist3D.cpp.

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

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

Called for every event.

Reimplemented from cafe::Processor.

Definition at line 144 of file Hist3D.cpp.

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


Member Data Documentation

double cafe::Hist3D::_bin_maxX [private]
 

Definition at line 47 of file Hist3D.hpp.

Referenced by begin(), and Hist3D().

double cafe::Hist3D::_bin_maxY [private]
 

Definition at line 49 of file Hist3D.hpp.

Referenced by begin(), and Hist3D().

double cafe::Hist3D::_bin_maxZ [private]
 

Definition at line 51 of file Hist3D.hpp.

Referenced by begin(), and Hist3D().

double cafe::Hist3D::_bin_minX [private]
 

Definition at line 47 of file Hist3D.hpp.

Referenced by begin(), and Hist3D().

double cafe::Hist3D::_bin_minY [private]
 

Definition at line 49 of file Hist3D.hpp.

Referenced by begin(), and Hist3D().

double cafe::Hist3D::_bin_minZ [private]
 

Definition at line 51 of file Hist3D.hpp.

Referenced by begin(), and Hist3D().

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

Definition at line 54 of file Hist3D.hpp.

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

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

Definition at line 55 of file Hist3D.hpp.

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

Formula* cafe::Hist3D::_draw3 [private]
 

Definition at line 56 of file Hist3D.hpp.

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

TH3F* cafe::Hist3D::_hist [private]
 

Definition at line 52 of file Hist3D.hpp.

Referenced by begin(), and processEvent().

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

Definition at line 57 of file Hist3D.hpp.

Referenced by inputFileOpened(), and processEvent().

int cafe::Hist3D::_num_binsX [private]
 

Definition at line 46 of file Hist3D.hpp.

Referenced by begin(), and Hist3D().

int cafe::Hist3D::_num_binsY [private]
 

Definition at line 48 of file Hist3D.hpp.

Referenced by begin(), and Hist3D().

int cafe::Hist3D::_num_binsZ [private]
 

Definition at line 50 of file Hist3D.hpp.

Referenced by begin(), and Hist3D().

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

Definition at line 53 of file Hist3D.hpp.

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

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

Definition at line 45 of file Hist3D.hpp.

Referenced by begin(), and Hist3D().

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

Definition at line 58 of file Hist3D.hpp.

Referenced by begin(), Hist3D(), and processEvent().


The documentation for this class was generated from the following files:
Generated on Thu Apr 3 04:14:27 2008 for CAF by doxygen 1.3.4