#include <AssociatedTracks.hpp>
Inheritance diagram for cafe::AssociatedTracks:

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. | |
|
|
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(). |
|
||||||||||||
|
|
|
|
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(). |
|
|
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(). |
|
|
Name of track branch (defaults to 'Track').
Definition at line 46 of file AssociatedTracks.hpp. Referenced by AssociatedTracks(), and processEvent(). |
|
|
Name of TObjArray stored in Event (default 'KeepTracks').
Definition at line 48 of file AssociatedTracks.hpp. Referenced by AssociatedTracks(), and processEvent(). |
1.3.4