#include <LCIOOutputProcessor.h>
Inheritance diagram for marlin::LCIOOutputProcessor:
Public Member Functions | |
virtual Processor * | newProcessor () |
Return a new instance of the processor. | |
LCIOOutputProcessor (const std::string &typeName) | |
C'tor for possible subclasses. | |
virtual | ~LCIOOutputProcessor () |
D'tor for subclasses. | |
virtual void | init () |
Open the LCIO outputfile. | |
virtual void | processRunHeader (LCRunHeader *run) |
Write every run header. | |
virtual void | processEvent (LCEvent *evt) |
Write every event. | |
virtual void | end () |
Close outputfile. | |
void | dropCollections (LCEvent *evt) |
Drops the collections specified in the steering file parameters DropCollectionNames and DropCollectionTypes. | |
Protected Attributes | |
std::string | _lcioOutputFile |
std::string | _lcioWriteMode |
StringVec | _dropCollectionNames |
StringVec | _dropCollectionTypes |
StringVec | _keepCollectionNames |
StringVec | _fullSubsetCollections |
int | _splitFileSizekB |
SubSetVec | _subSets |
LCWriter * | _lcWrt |
int | _nRun |
int | _nEvt |
If active every event is writen to the specified LCIO file. Make sure that the processor is the last one in your list of active processors. You can optionally drop some collections from the event before it gets written to the file, e.g. you can drop all collections of types SimCalorimeterHit and SimTrackerHit. It is the users responsibility to check whether the droped objects are still referenced by other objects (e.g. LCRelations) and drop those collections as well - if needed. If CalorimeterHit and TrackerHit objects are droped then Tracks and clusters will be store w/o pointers to hits.
file containing the LCIO events
LCIOOutputFile | name of outputfile incl. path |
LCIOWriteMode | WRITE_NEW, WRITE_APPEND [optional] |
DropCollectionNames | name of collections to be droped [optional] |
DropCollectionTypes | type of collections to be droped [optional] |
DropCollectionNames | drops the named collections from the event |
DropCollectionTypes | drops all collections of the given type from the event |
LCIOOutputFile | name of output file |
LCIOWriteMode | write mode for output file: WRITE_APPEND or WRITE_NEW |
KeepCollectionNames | names of collections that are to be kept unconditionally |
fullSubsetCollections | optionally write all objects in subset collections to the file |
|
Return a new instance of the processor. Has to be implemented by subclasses. Implements marlin::Processor. |