MarlinTrkProcessors  2.4.1
Classes | Public Member Functions | Protected Types | Protected Attributes | List of all members
SplitCollectionByLayer Class Reference

Utility processor that allows to split a collection of Hits into several collections based on the layer information in the cellID word. More...

#include <SplitCollectionByLayer.h>

Inheritance diagram for SplitCollectionByLayer:

Classes

struct  OutColInfo
 helper struct More...
 

Public Member Functions

virtual Processor * newProcessor ()
 
virtual const std::string & name () const
 
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 Types

enum  HitType {
  SimTrackerHitType = 1, TrackerHitType, SimCalorimeterHitType, CalorimeterHitType,
  UnkownType
}
 Enum used for hit types.
 

Protected Attributes

std::string _colName
 
StringVec _outColAndLayers
 Output collections and layers:
 
std::vector< OutColInfo_outCols
 
HitType _type
 
int _nRun
 
int _nEvt
 

Detailed Description

Utility processor that allows to split a collection of Hits into several collections based on the layer information in the cellID word.

Works for all four lcio hit classes.

InputCollection name of the hit collection with (Sim)TrackerHits/(Sim)CalorimeterHits OutputCollections ( ColName StartLayer EndLayer )

Author
F. Gaede, CERN/DESY
Date
30 Oct 2014
Version
Id:

Member Function Documentation

void SplitCollectionByLayer::init ( )
virtual

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

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

References _outColAndLayers.


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