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

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

Create a 1D Histogram (TH1F) and fill it for each event. More...

#include <Hist1D.hpp>

Inheritance diagram for cafe::Hist1D:

cafe::Processor List of all members.

Public Member Functions

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

Private Attributes

std::string _title
int _num_bins
double _bin_min
double _bin_max
TH1F * _hist
Formula_select
Formula_draw
TTreeFormulaManager * _mgr
std::string _weight
HistoGetter_getter
std::string _branch
std::string _method

Detailed Description

Create a 1D Histogram (TH1F) 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 35 of file Hist1D.hpp.


Constructor & Destructor Documentation

cafe::Hist1D::Hist1D const char *  name  ) 
 

Definition at line 17 of file Hist1D.cpp.

References _bin_max, _bin_min, _num_bins, _title, _weight, cafe::Processor::err(), cafe::Config::get(), cafe::Config::getVString(), and cafe::Processor::name().

cafe::Hist1D::~Hist1D  ) 
 

Definition at line 51 of file Hist1D.cpp.

References _draw, and _select.


Member Function Documentation

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

Called at beginning of processing.

Reimplemented from cafe::Processor.

Definition at line 57 of file Hist1D.cpp.

References _bin_max, _bin_min, _branch, _draw, _hist, _method, _num_bins, _select, _title, cafe::Processor::err(), cafe::Processor::fullName(), cafe::Config::get(), cafe::Processor::getDirectory(), cafe::Processor::name(), cafe::Processor::out(), cafe::Processor::replace(), and cafe::Formula::setFormula().

cafe::Hist1D::ClassDef Hist1D  ,
 

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

Called for every new input file that was opened.

Reimplemented from cafe::Processor.

Definition at line 107 of file Hist1D.cpp.

References _branch, _draw, _getter, _method, _mgr, _select, cafe::Formula::getFormula(), and cafe::Formula::inputFileOpened().

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

Called for every event.

Reimplemented from cafe::Processor.

Definition at line 129 of file Hist1D.cpp.

References _branch, _draw, _getter, _hist, _mgr, _select, _weight, cafe::HistoGetter::get(), cafe::EventBase::get(), cafe::EventBase::getClonesArray(), cafe::Formula::getFormula(), and cafe::HistoGetter::vars().


Member Data Documentation

double cafe::Hist1D::_bin_max [private]
 

Definition at line 45 of file Hist1D.hpp.

Referenced by begin(), and Hist1D().

double cafe::Hist1D::_bin_min [private]
 

Definition at line 45 of file Hist1D.hpp.

Referenced by begin(), and Hist1D().

std::string cafe::Hist1D::_branch [private]
 

Definition at line 52 of file Hist1D.hpp.

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

Formula* cafe::Hist1D::_draw [private]
 

Definition at line 48 of file Hist1D.hpp.

Referenced by begin(), inputFileOpened(), processEvent(), and ~Hist1D().

HistoGetter* cafe::Hist1D::_getter [private]
 

Definition at line 51 of file Hist1D.hpp.

Referenced by inputFileOpened(), and processEvent().

TH1F* cafe::Hist1D::_hist [private]
 

Definition at line 46 of file Hist1D.hpp.

Referenced by begin(), and processEvent().

std::string cafe::Hist1D::_method [private]
 

Definition at line 53 of file Hist1D.hpp.

Referenced by begin(), and inputFileOpened().

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

Definition at line 49 of file Hist1D.hpp.

Referenced by inputFileOpened(), and processEvent().

int cafe::Hist1D::_num_bins [private]
 

Definition at line 44 of file Hist1D.hpp.

Referenced by begin(), and Hist1D().

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

Definition at line 47 of file Hist1D.hpp.

Referenced by begin(), inputFileOpened(), processEvent(), and ~Hist1D().

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

Definition at line 43 of file Hist1D.hpp.

Referenced by begin(), and Hist1D().

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

Definition at line 50 of file Hist1D.hpp.

Referenced by Hist1D(), 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