MarlinTrkProcessors
2.4.1
|
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>
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 |
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 )
|
virtual |
Called at the begin of the job before anything is read.
Use to initialize the processor, e.g. book histograms.
References _outColAndLayers.