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

#include <AssociatedTracks.hpp>

Inheritance diagram for cafe::AssociatedTracks:

cafe::Processor List of all members.

Detailed Description

Find associated tracks for a list of user defined branches.

An example on how to use the RemoveObjects processor. This class will find all associated tracks in the given list of branches and store them in a format suitable for the 'RemoveObject' processor.

The following example will create a small event where only tracks associated with EMscone, Muon or JCCB branches are stored.

cafe.Run: AssociatedTracks(tracks) RemoveObjects(delete) Write(out)

tracks.Branches: EMscone Muon JCCB tracks.TrackList: KeepTracks

delete.Branch: Track delete.Keep: KeepTracks

out.File: new-%f out.Enable: EMscone Muon JCCB Track

Configuration options:

Definition at line 40 of file AssociatedTracks.hpp.

Public Member Functions

 AssociatedTracks (const char *name)
bool processEvent (cafe::Event &event)
 Called for every event.

 ClassDef (AssociatedTracks, 0)

Private Attributes

std::string _trackBranch
 Name of track branch (defaults to 'Track').

std::string _trackListName
 Name of TObjArray stored in Event (default 'KeepTracks').

std::vector< std::string > _branches
 List of branch names to consider.


Constructor & Destructor Documentation

cafe::AssociatedTracks::AssociatedTracks const char *  name  ) 
 

Definition at line 11 of file AssociatedTracks.cpp.

References _branches, _trackBranch, _trackListName, cafe::Config::get(), cafe::Config::getVString(), cafe::Processor::name(), and cafe::Processor::out().


Member Function Documentation

cafe::AssociatedTracks::ClassDef AssociatedTracks  ,
 

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

Called for every event.

Reimplemented from cafe::Processor.

Definition at line 31 of file AssociatedTracks.cpp.

References _branches, _trackBranch, _trackListName, cafe::Collection< T >::begin(), cafe::Collection< T >::end(), cafe::EventBase::getClonesArray(), cafe::EventBase::getCollection(), cafe::Event::getEM(), cafe::Event::getJets(), cafe::EventBase::put(), and cafe::Collection< T >::size().


Member Data Documentation

std::vector<std::string> cafe::AssociatedTracks::_branches [private]
 

List of branch names to consider.

Objects have to be subclasses of TMBMuon, TMBEMCluster, TMBJet, TMBTau.

Definition at line 51 of file AssociatedTracks.hpp.

Referenced by AssociatedTracks(), and processEvent().

std::string cafe::AssociatedTracks::_trackBranch [private]
 

Name of track branch (defaults to 'Track').

Definition at line 46 of file AssociatedTracks.hpp.

Referenced by AssociatedTracks(), and processEvent().

std::string cafe::AssociatedTracks::_trackListName [private]
 

Name of TObjArray stored in Event (default 'KeepTracks').

Definition at line 48 of file AssociatedTracks.hpp.

Referenced by AssociatedTracks(), 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