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

#include <EventList.hpp>

Inheritance diagram for cafe::EventList:

cafe::Processor List of all members.

Detailed Description

Create event list.

Save index for current event in a TEventList. Events can be selected from this list by specifying the 'cafe.EventList: filename' option.

Configuration

.File: EventListFile [ default: "" ] .Tags: EventTags* [ default: "", i.e. all events ]

Definition at line 26 of file EventList.hpp.

Public Member Functions

 EventList (const char *name)
 ~EventList ()
void inputFileOpened (TFile *file)
 Called for every new input file that was opened.

void inputFileClosing (TFile *file)
 Called for every input file that is about to be closed.

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

void finish ()
 Called at end of processing.

 ClassDef (EventList, 0)

Private Attributes

std::vector< std::string > _tags
TEventList * _list
TFile * _file


Constructor & Destructor Documentation

cafe::EventList::EventList const char *  name  ) 
 

Definition at line 11 of file EventList.cpp.

References _file, _tags, cafe::Config::get(), cafe::Config::getVString(), cafe::Processor::name(), and cafe::Processor::out().

cafe::EventList::~EventList  ) 
 

Definition at line 28 of file EventList.cpp.


Member Function Documentation

cafe::EventList::ClassDef EventList  ,
 

void cafe::EventList::finish  )  [virtual]
 

Called at end of processing.

Reimplemented from cafe::Processor.

Definition at line 58 of file EventList.cpp.

References _file.

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

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

Reimplemented from cafe::Processor.

Definition at line 40 of file EventList.cpp.

References _file, and _list.

void cafe::EventList::inputFileOpened TFile *  file  )  [virtual]
 

Called for every new input file that was opened.

Reimplemented from cafe::Processor.

Definition at line 32 of file EventList.cpp.

References _file, and _list.

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

Called for every event.

Reimplemented from cafe::Processor.

Definition at line 50 of file EventList.cpp.

References _list, _tags, cafe::EventBase::getTree(), and cafe::EventBase::hasTag().


Member Data Documentation

TFile* cafe::EventList::_file [private]
 

Definition at line 37 of file EventList.hpp.

Referenced by EventList(), finish(), inputFileClosing(), and inputFileOpened().

TEventList* cafe::EventList::_list [private]
 

Definition at line 36 of file EventList.hpp.

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

std::vector<std::string> cafe::EventList::_tags [private]
 

Definition at line 35 of file EventList.hpp.

Referenced by EventList(), and processEvent().


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