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

#include <RunController.hpp>

Inheritance diagram for cafe::RunController:

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

Detailed Description

A special version of a Controller.

This opens the input files and loops over the events.

Input specifications can be of the form:

and any other root prefix (rootd:, rootk:, http:, rfio:, dcache:)

If '.Events' is greater than 0, only that many events will be processed.

Configuration options:

See also:
Controller

Definition at line 50 of file RunController.hpp.

Public Member Functions

 RunController (const char *name)
 ~RunController ()
void processTree (TTree *tree, Event &event)
bool Run (unsigned int max_events=0)
 ClassDef (RunController, 0)

Private Attributes

std::string _input
unsigned int _num_events
unsigned int _max_events
unsigned int _max_files
unsigned int _num_files
unsigned int _progress
int _skip
int _skip_files
std::set< std::string > _friends
bool _partialReads
int _rootDebug
int _treeDebug
bool _loadAll
TFile * _eventList
std::string _treeName


Constructor & Destructor Documentation

cafe::RunController::RunController const char *  name  ) 
 

Definition at line 18 of file RunController.cpp.

References _eventList, _friends, _input, _loadAll, _max_events, _max_files, _partialReads, _progress, _rootDebug, _skip, _skip_files, _treeDebug, _treeName, cafe::Config::get(), cafe::Config::getVString(), and cafe::Processor::name().

cafe::RunController::~RunController  ) 
 

Definition at line 66 of file RunController.cpp.


Member Function Documentation

cafe::RunController::ClassDef RunController  ,
 

void cafe::RunController::processTree TTree *  tree,
Event event
 

Definition at line 70 of file RunController.cpp.

References _loadAll, _max_events, _num_events, _progress, _skip, _treeDebug, cafe::EventBase::clear(), cafe::Processor::incEventCount(), cafe::Processor::out(), cafe::Controller::processEvent(), and cafe::EventBase::setBranchAddresses().

Referenced by Run().

bool cafe::RunController::Run unsigned int  max_events = 0  ) 
 

Definition at line 110 of file RunController.cpp.

References _eventList, _friends, _input, _max_events, _max_files, _num_events, _num_files, _partialReads, _skip_files, _treeName, cafe::Controller::begin(), cafe::Processor::err(), cafe::Processor::eventCount(), cafe::Controller::finish(), cafe::Processor::fullName(), cafe::Controller::inputFileClosing(), cafe::Controller::inputFileOpened(), cafe::Processor::name(), cafe::Processor::out(), processTree(), and cafe::EventBase::setPartialRead().

Referenced by main().


Member Data Documentation

TFile* cafe::RunController::_eventList [private]
 

Definition at line 71 of file RunController.hpp.

Referenced by Run(), and RunController().

std::set<std::string> cafe::RunController::_friends [private]
 

Definition at line 66 of file RunController.hpp.

Referenced by Run(), and RunController().

std::string cafe::RunController::_input [private]
 

Definition at line 58 of file RunController.hpp.

Referenced by Run(), and RunController().

bool cafe::RunController::_loadAll [private]
 

Definition at line 70 of file RunController.hpp.

Referenced by processTree(), and RunController().

unsigned int cafe::RunController::_max_events [private]
 

Definition at line 60 of file RunController.hpp.

Referenced by processTree(), Run(), and RunController().

unsigned int cafe::RunController::_max_files [private]
 

Definition at line 61 of file RunController.hpp.

Referenced by Run(), and RunController().

unsigned int cafe::RunController::_num_events [private]
 

Definition at line 59 of file RunController.hpp.

Referenced by processTree(), and Run().

unsigned int cafe::RunController::_num_files [private]
 

Definition at line 62 of file RunController.hpp.

Referenced by Run().

bool cafe::RunController::_partialReads [private]
 

Definition at line 67 of file RunController.hpp.

Referenced by Run(), and RunController().

unsigned int cafe::RunController::_progress [private]
 

Definition at line 63 of file RunController.hpp.

Referenced by processTree(), and RunController().

int cafe::RunController::_rootDebug [private]
 

Definition at line 68 of file RunController.hpp.

Referenced by RunController().

int cafe::RunController::_skip [private]
 

Definition at line 64 of file RunController.hpp.

Referenced by processTree(), and RunController().

int cafe::RunController::_skip_files [private]
 

Definition at line 65 of file RunController.hpp.

Referenced by Run(), and RunController().

int cafe::RunController::_treeDebug [private]
 

Definition at line 69 of file RunController.hpp.

Referenced by processTree(), and RunController().

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

Definition at line 72 of file RunController.hpp.

Referenced by Run(), and RunController().


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