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

#include <SelectObjects.hpp>

Inheritance diagram for cafe::SelectObjects:

cafe::Processor cafe::Formula List of all members.

Detailed Description

Select objects based on a user defined cut.

The cut follows the usual TTree::Draw() rules, e.g. "Muon.pT() > 10.0 && Muon.eta() < 2.0"

The selection is applied to all objects.

Configuration options:

Definition at line 34 of file SelectObjects.hpp.

Public Member Functions

 SelectObjects (const char *name)
void inputFileOpened (TFile *file)
void inputFileClosing (TFile *file)
 Called for every input file that is about to be closed.

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

 ClassDef (SelectObjects, 0)

Private Attributes

std::string _fromBranch
std::string _toBranch
std::string _treeName
TTree * _tree
TClonesArray * _result
TBranch * _branch


Constructor & Destructor Documentation

cafe::SelectObjects::SelectObjects const char *  name  ) 
 

Definition at line 16 of file SelectObjects.cpp.

References _fromBranch, _toBranch, _treeName, cafe::Config::get(), cafe::Processor::name(), cafe::Processor::out(), and cafe::Formula::setFormula().


Member Function Documentation

cafe::SelectObjects::ClassDef SelectObjects  ,
 

void cafe::SelectObjects::inputFileClosing TFile *  file  )  [virtual]
 

Called for every input file that is about to be closed.

Reimplemented from cafe::Processor.

Definition at line 65 of file SelectObjects.cpp.

References _branch, _result, _tree, and _treeName.

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

Reimplemented from cafe::Formula.

Definition at line 36 of file SelectObjects.cpp.

References _branch, _fromBranch, _result, _toBranch, _tree, _treeName, cafe::Processor::err(), cafe::Processor::fullName(), and cafe::Processor::name().

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

Called for every event.

Reimplemented from cafe::Processor.

Definition at line 75 of file SelectObjects.cpp.

References _fromBranch, _result, _tree, cafe::EventBase::get(), cafe::Formula::getFormula(), and cafe::EventBase::getTree().


Member Data Documentation

TBranch* cafe::SelectObjects::_branch [private]
 

Definition at line 46 of file SelectObjects.hpp.

Referenced by inputFileClosing(), and inputFileOpened().

std::string cafe::SelectObjects::_fromBranch [private]
 

Definition at line 41 of file SelectObjects.hpp.

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

TClonesArray* cafe::SelectObjects::_result [private]
 

Definition at line 45 of file SelectObjects.hpp.

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

std::string cafe::SelectObjects::_toBranch [private]
 

Definition at line 42 of file SelectObjects.hpp.

Referenced by inputFileOpened(), and SelectObjects().

TTree* cafe::SelectObjects::_tree [private]
 

Definition at line 44 of file SelectObjects.hpp.

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

std::string cafe::SelectObjects::_treeName [private]
 

Definition at line 43 of file SelectObjects.hpp.

Referenced by inputFileClosing(), inputFileOpened(), and SelectObjects().


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