public class SimpleReconClusterer extends AbstractClusterer
This clustering algorithm creates clusters from an input CalorimeterHit collection.
It uses the basic Inner Calorimeter (IC) clustering algorithm as described in CLAS Note 2004-040.
Hits are assigned to a cluster with the largest seed hit energy. Time information is not used, and multiple hits in the same crystal are not handled correctly so an exception is throw if this occurs. An optional cut can be applied to discard hits with a time that is too far from t0.
Modifier and Type | Field and Description |
---|---|
(package private) double |
minEnergy |
(package private) double |
minTime |
(package private) double |
timeWindow |
(package private) boolean |
useTimeCut |
cuts, ecal, neighborMap
Constructor and Description |
---|
SimpleReconClusterer()
Initialize the algorithm with default cuts.
|
Modifier and Type | Method and Description |
---|---|
List<org.lcsim.event.Cluster> |
createClusters(org.lcsim.event.EventHeader event,
List<org.lcsim.event.CalorimeterHit> hitCollection)
This is the primary method for sub-classes to implement their clustering algorithm.
|
ClusterType |
getClusterType()
Get the type code for the clusters produced by this algorithm.
|
void |
initialize()
By default nothing is done in this method, but start of job initialization can happen here like reading
cut settings into instance variables for convenience.
|
void |
setUseTimeCut(boolean useTimeCut) |
conditionsChanged, createBasicCluster, getClusterTypeEncoding, getCuts, getIdentifierHelper
double minEnergy
double minTime
double timeWindow
boolean useTimeCut
SimpleReconClusterer()
public void initialize()
AbstractClusterer
startOfData
method of ClusterDriver
.initialize
in interface Clusterer
initialize
in class AbstractClusterer
public List<org.lcsim.event.Cluster> createClusters(org.lcsim.event.EventHeader event, List<org.lcsim.event.CalorimeterHit> hitCollection)
AbstractClusterer
createClusters
in interface Clusterer
createClusters
in class AbstractClusterer
event
- The current LCSim event.hitCollection
- the list of hitspublic ClusterType getClusterType()
AbstractClusterer
getClusterType
in interface Clusterer
getClusterType
in class AbstractClusterer
public void setUseTimeCut(boolean useTimeCut)
Copyright © 2019. All rights reserved.