Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

marlin::LCIOOutputProcessor Class Reference

Default output processor. More...

#include <LCIOOutputProcessor.h>

Inheritance diagram for marlin::LCIOOutputProcessor:

marlin::Processor List of all members.

Public Member Functions

virtual ProcessornewProcessor ()
 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

Detailed Description

Default output processor.

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.

Output

file containing the LCIO events

Parameters:
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
Author:
F. Gaede, DESY
Version:
Id
LCIOOutputProcessor.h,v 1.8 2008/04/15 10:14:24 gaede Exp


Member Function Documentation

virtual Processor* marlin::LCIOOutputProcessor::newProcessor  )  [inline, virtual]
 

Return a new instance of the processor.

Has to be implemented by subclasses.

Implements marlin::Processor.


The documentation for this class was generated from the following files:
Generated on Mon Jan 12 09:48:56 2009 for Marlin by doxygen 1.3.5