LCTuple  1.6.0
Public Member Functions | Protected Attributes | List of all members
MergeCollections Class Reference

Helper processor that merges several input collections into a transient subset collections. More...

#include <MergeCollections.h>

Inheritance diagram for MergeCollections:

Public Member Functions

virtual Processor * newProcessor ()
 
virtual void init ()
 Called at the begin of the job before anything is read. More...
 
virtual void processRunHeader (LCRunHeader *run)
 Called for every run.
 
virtual void processEvent (LCEvent *evt)
 Called for every event - the working horse.
 
virtual void check (LCEvent *evt)
 
virtual void end ()
 Called after data processing for clean up.
 

Protected Attributes

StringVec _inColNames
 Input collection name.
 
IntVec _inColIDs
 
std::string _outColName
 
int _nRun
 
int _nEvt
 

Detailed Description

Helper processor that merges several input collections into a transient subset collections.

The names and optionally the IDs of the merged collections are stored in collection parameters MergedCollectionNames and MergedCollectionIDs.

Parameters
InputCollectionsName of the input collections
InputCollectionIDsOptional IDs for input collections - if given, IDs will be added to all objects in merged collections as ext<CollID>()"
  • it is the users responsibility to ensure uniqueness of the IDs across the event ( and that ID != 0 )
OutputCollectionName of the output collection
Author
F. Gaede, DESY
B. Vormwald, DESY

Member Function Documentation

void MergeCollections::init ( )
virtual

Called at the begin of the job before anything is read.

Use to initialize the processor, e.g. book histograms.


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