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

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

A special version of a Controller. More...

#include <RunController.hpp>

Inheritance diagram for cafe::RunController:

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

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
std::set< std::string > _friends
bool _partialReads
int _rootDebug
int _treeDebug
TFile * _eventList
std::string _treeName

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 47 of file RunController.hpp.


Constructor & Destructor Documentation

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

Definition at line 17 of file RunController.cpp.

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

cafe::RunController::~RunController  ) 
 

Definition at line 55 of file RunController.cpp.


Member Function Documentation

cafe::RunController::ClassDef RunController  ,
 

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

Definition at line 59 of file RunController.cpp.

References _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 93 of file RunController.cpp.

References _eventList, _friends, _input, _max_events, _max_files, _num_events, _num_files, _partialReads, _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().


Member Data Documentation

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

Definition at line 66 of file RunController.hpp.

Referenced by Run(), and RunController().

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

Definition at line 62 of file RunController.hpp.

Referenced by Run(), and RunController().

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

Definition at line 55 of file RunController.hpp.

Referenced by Run(), and RunController().

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

Definition at line 57 of file RunController.hpp.

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

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

Definition at line 58 of file RunController.hpp.

Referenced by Run(), and RunController().

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

Definition at line 56 of file RunController.hpp.

Referenced by processTree(), and Run().

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

Definition at line 59 of file RunController.hpp.

Referenced by Run().

bool cafe::RunController::_partialReads [private]
 

Definition at line 63 of file RunController.hpp.

Referenced by Run(), and RunController().

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

Definition at line 60 of file RunController.hpp.

Referenced by processTree(), and RunController().

int cafe::RunController::_rootDebug [private]
 

Definition at line 64 of file RunController.hpp.

Referenced by RunController().

int cafe::RunController::_skip [private]
 

Definition at line 61 of file RunController.hpp.

Referenced by processTree(), and RunController().

int cafe::RunController::_treeDebug [private]
 

Definition at line 65 of file RunController.hpp.

Referenced by processTree(), and RunController().

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

Definition at line 67 of file RunController.hpp.

Referenced by Run(), and RunController().


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