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

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

Inherit from this if you need to use TTreeFormular and call Formula::inputFileOpened() at the appropriate time. More...

#include <Formula.hpp>

Inheritance diagram for cafe::Formula:

cafe::If cafe::Select cafe::SelectObjects List of all members.

Public Member Functions

 Formula (cafe::Processor *owner)
virtual ~Formula ()
void inputFileOpened (TFile *file)
void setFormula (const std::string &formula)
TTreeFormula * getFormula ()
 ClassDef (Formula, 0)

Private Attributes

std::string _expr
cafe::Processor_owner
TTreeFormula * _formula

Detailed Description

Inherit from this if you need to use TTreeFormular and call Formula::inputFileOpened() at the appropriate time.

Due to problems with rootcint, always use protected inheritance and put this class after any other Processor, Controller:

class Example : public Processor, protected Formula {}

This is used internally by several cafe classes.

Definition at line 28 of file Formula.hpp.


Constructor & Destructor Documentation

cafe::Formula::Formula cafe::Processor owner  ) 
 

Definition at line 12 of file Formula.cpp.

cafe::Formula::~Formula  )  [virtual]
 

Definition at line 17 of file Formula.cpp.

References _formula.


Member Function Documentation

cafe::Formula::ClassDef Formula  ,
 

TTreeFormula * cafe::Formula::getFormula  ) 
 

Definition at line 38 of file Formula.cpp.

References _formula.

Referenced by cafe::Select::inputFileOpened(), cafe::Hist3D::inputFileOpened(), cafe::Hist2D::inputFileOpened(), cafe::Hist1D::inputFileOpened(), cafe::SelectObjects::processEvent(), cafe::Select::processEvent(), cafe::If::processEvent(), cafe::Hist3D::processEvent(), cafe::Hist2D::processEvent(), and cafe::Hist1D::processEvent().

void cafe::Formula::inputFileOpened TFile *  file  ) 
 

Reimplemented in cafe::If, cafe::Select, and cafe::SelectObjects.

Definition at line 22 of file Formula.cpp.

References _expr, _formula, _owner, and cafe::Processor::name().

Referenced by cafe::Hist3D::inputFileOpened(), cafe::Hist2D::inputFileOpened(), and cafe::Hist1D::inputFileOpened().

void cafe::Formula::setFormula const std::string &  formula  ) 
 

Definition at line 33 of file Formula.cpp.

References _expr.

Referenced by cafe::Hist1D::begin(), cafe::Hist2D::Hist2D(), cafe::Hist3D::Hist3D(), cafe::If::If(), cafe::Select::Select(), and cafe::SelectObjects::SelectObjects().


Member Data Documentation

std::string cafe::Formula::_expr [private]
 

Definition at line 39 of file Formula.hpp.

Referenced by inputFileOpened(), and setFormula().

TTreeFormula* cafe::Formula::_formula [private]
 

Definition at line 41 of file Formula.hpp.

Referenced by getFormula(), inputFileOpened(), and ~Formula().

cafe::Processor* cafe::Formula::_owner [private]
 

Definition at line 40 of file Formula.hpp.

Referenced by inputFileOpened().


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