Overlay  0.16.0
Public Member Functions | Protected Attributes | List of all members
overlay::JoinEvents Class Reference

JoinEvents processor allows join events (based on the run number and event number) from a different file. More...

#include <JoinEvents.h>

Inheritance diagram for overlay::JoinEvents:

Public Member Functions

virtual marlin::Processor * newProcessor ()
 
virtual const std::string & name () const
 
virtual void init ()
 Open the LCIO input file.
 
virtual void processRunHeader (LCRunHeader *run)
 Called for every run.
 
virtual void processEvent (LCEvent *evt)
 Search for the corresponding event and add all collections to the current event.
 
virtual void check (LCEvent *evt)
 
virtual void end ()
 Close the input file.
 

Protected Attributes

std::string _fileName
 Input file names. More...
 
std::string _postFix
 post fix for collection names. More...
 
LCReader * _lcReader
 
int _nRun
 
int _nEvt
 

Detailed Description

JoinEvents processor allows join events (based on the run number and event number) from a different file.

All collections in the event are added to the current event, provided their collection name does not yet exist in the event. If the collection names are the same the user can optionally specify a post fix that is added to all collection names from the joined event in order to avoid name clashes.

Author
F. Gaede, DESY
Version
Id:
JoinEvents.h 844 2012-09-07 11:21:12Z gaede
Parameters
InputFileNamethe names (with absolute or relative pathes) of the one input file that is searched for events with the same run and event number.
ColNamePostFixoptional post fix that is added to all collection names

Member Data Documentation

std::string overlay::JoinEvents::_fileName
protected

Input file names.

std::string overlay::JoinEvents::_postFix
protected

post fix for collection names.


The documentation for this class was generated from the following files: