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

#include <Select.hpp>

Inheritance diagram for cafe::Select:

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

Detailed Description

Select events based on a user defined cut.

If .Tag is specified, events are tagged, otherwise events are rejected, if they don't fulfill the selection criteria.

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

Configuration options:

The .Variables: entry should be only used for optimization. During the execution of the selection only the designated branches are enabled for reading. For example, if you use only EMscone.Pt() in your expression, and you know that it uses only EMscone.fX and EMscone.fY, you can mention these in the .Variables: configuration entry.

Definition at line 41 of file Select.hpp.

Public Member Functions

 Select (const char *name)
void inputFileOpened (TFile *file)
bool processEvent (cafe::Event &event)
 Called for every event.

 ClassDef (Select, 0)

Private Attributes

std::string _tag
cafe::BranchNames _branches


Constructor & Destructor Documentation

cafe::Select::Select const char *  name  ) 
 

Definition at line 11 of file Select.cpp.

References _branches, _tag, cafe::Config::get(), cafe::Config::getVString(), cafe::Processor::name(), cafe::Processor::out(), and cafe::Formula::setFormula().


Member Function Documentation

cafe::Select::ClassDef Select  ,
 

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

Reimplemented from cafe::Formula.

Definition at line 29 of file Select.cpp.

References cafe::Formula::getFormula().

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

Called for every event.

Reimplemented from cafe::Processor.

Definition at line 35 of file Select.cpp.

References _branches, _tag, cafe::Formula::getFormula(), and cafe::EventBase::tag().


Member Data Documentation

cafe::BranchNames cafe::Select::_branches [private]
 

Definition at line 50 of file Select.hpp.

Referenced by processEvent(), and Select().

std::string cafe::Select::_tag [private]
 

Definition at line 49 of file Select.hpp.

Referenced by processEvent(), and Select().


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