|
"MarlinReco"
1.32.0
|
Example processor that does a simple nearest neighbour (NN) clustering on one or more CalorimeterHit collections. More...
#include <NNClusterProcessor.h>
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 | _colNames {} |
| Input collection name. | |
| std::string | _outputColName {} |
| float | _distCut {} |
| float | _eCut {} |
| int | _nThetaPhi {} |
| int | _nRun {} |
| int | _nEvt {} |
Example processor that does a simple nearest neighbour (NN) clustering on one or more CalorimeterHit collections.
It uses a simple euclididan distance cut.
| HitCollections | - Name of the input collection(s) (CalorimeterHit) |
| OutputCollection | - Name of the output collection (Cluster) |
| DistanceCut | - Cut for distance between hits in mm |
| EnergyCut | - Cut for hit energy in GeV |
|
virtual |
Called at the begin of the job before anything is read.
Use to initialize the processor, e.g. book histograms.
1.8.5