public class CTPClusterer extends AbstractClusterer
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CTPClusterer.TimeComparator |
Modifier and Type | Field and Description |
---|---|
(package private) double |
addEMin |
(package private) Set<Long> |
clusterCenters |
(package private) double |
clusterWindow |
(package private) org.lcsim.geometry.IDDecoder |
dec |
(package private) Map<Long,org.lcsim.event.CalorimeterHit> |
hitMap |
(package private) Map<Long,Double> |
hitSums |
cuts, ecal, neighborMap
Constructor and Description |
---|
CTPClusterer() |
Modifier and Type | Method and Description |
---|---|
void |
conditionsChanged(org.lcsim.conditions.ConditionsEvent event)
Detector setup performed here to get reference to ECAL subdetector and neighbor mapping.
|
private List<org.lcsim.event.Cluster> |
createClusters() |
List<org.lcsim.event.Cluster> |
createClusters(org.lcsim.event.EventHeader event,
List<org.lcsim.event.CalorimeterHit> hits)
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.
|
private void |
sumHits(Collection<org.lcsim.event.CalorimeterHit> hits) |
createBasicCluster, getClusterTypeEncoding, getCuts, getIdentifierHelper
org.lcsim.geometry.IDDecoder dec
double clusterWindow
double addEMin
public void initialize()
AbstractClusterer
startOfData
method of ClusterDriver
.initialize
in interface Clusterer
initialize
in class AbstractClusterer
public void conditionsChanged(org.lcsim.conditions.ConditionsEvent event)
AbstractClusterer
conditionsChanged
in interface org.lcsim.conditions.ConditionsListener
conditionsChanged
in class AbstractClusterer
public List<org.lcsim.event.Cluster> createClusters(org.lcsim.event.EventHeader event, List<org.lcsim.event.CalorimeterHit> hits)
AbstractClusterer
createClusters
in interface Clusterer
createClusters
in class AbstractClusterer
event
- The current LCSim event.hits
- the list of hitsprivate void sumHits(Collection<org.lcsim.event.CalorimeterHit> hits)
private List<org.lcsim.event.Cluster> createClusters()
public ClusterType getClusterType()
AbstractClusterer
getClusterType
in interface Clusterer
getClusterType
in class AbstractClusterer
Copyright © 2019. All rights reserved.