Package org.jlab.rec.dc.cluster
Class ClusterCleanerUtilities
java.lang.Object
org.jlab.rec.dc.cluster.ClusterCleanerUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyLayerListSorter
(List<Hit> DCHits, int sector, int superlyr) ClusterCleaner
(FittedCluster clus, ClusterFitter cf, DCGeant4Factory DcDetector) ClusterSplitter
(FittedCluster clus, int nextClsStartIndex, ClusterFitter cf) Pattern Recognition step for identifying clusters in a clump: Find the points that are consistent with belonging to the same cluster.ClusterSticher
(Cluster thisclus, Cluster nextclus, int cid) int
count_nlayers_hit
(Hit[] hits_inlayer) HitListPruner
(List<Hit> hits) Prunes the input hit list to remove noise candidates; the algorithm finds contiguous hits in a layer (column) and removes hits according to the number (Nc) of such contiguous hits in a given layer.If Nc=3, keep only the middle hit If Nc=4, keep only the first and last hit in that column; if Nc > 4, keep the first 2 and last 2 hits in that column, if Nc > 10 remove all hits in that column.boolean
isExceptionalCluster
(List hitsInClus) Wrapper for checking if a cluster of Hit objects is exceptional.boolean
isExceptionalFittedCluster
(List hitsInClus) Wrapper for checking if a cluster of FittedHit objects is exceptional.LRAmbiguityResolver
(DataEvent event, FittedCluster fClus, ClusterFitter cf, IndexedTable tab, DCGeant4Factory DcDetector, TimeToDistanceEstimator tde) void
outOfTimersRemover
(FittedCluster fClus, boolean removeHit) OverlappingClusterResolver
(FittedCluster thisclus, List<FittedCluster> clusters) A method to select the largest cluster among a set of clusters with 4 or more of overlaping hitsSecondariesRemover
(DataEvent event, FittedCluster clus, ClusterFitter cf, IndexedTable tab, DCGeant4Factory DcDetector, TimeToDistanceEstimator tde)
-
Constructor Details
-
ClusterCleanerUtilities
public ClusterCleanerUtilities()
-
-
Method Details
-
ClusterSplitter
public List<FittedCluster> ClusterSplitter(FittedCluster clus, int nextClsStartIndex, ClusterFitter cf) Pattern Recognition step for identifying clusters in a clump: Find the points that are consistent with belonging to the same cluster. This step precedes the initial estimates of the track segments which require further refining. The method employed is that of Hough Transforms. Define the dimension of the r-theta accumulator array used for pattern recognition of (rho, phi) points.- Parameters:
clus
- the fitted cluster. This cluster is examined for overlaps and // tracks.nextClsStartIndex
- the index of the next cluster in the splitted cluster.cf
-- Returns:
- a list of fitted clusters
-
byLayerListSorter
-
count_nlayers_hit
- Parameters:
hits_inlayer
- the hits in a given layer- Returns:
- the number of layers hit at a certain wire coordinate
-
LRAmbiguityResolver
public FittedCluster LRAmbiguityResolver(DataEvent event, FittedCluster fClus, ClusterFitter cf, IndexedTable tab, DCGeant4Factory DcDetector, TimeToDistanceEstimator tde) -
SecondariesRemover
public FittedCluster SecondariesRemover(DataEvent event, FittedCluster clus, ClusterFitter cf, IndexedTable tab, DCGeant4Factory DcDetector, TimeToDistanceEstimator tde) -
OverlappingClusterResolver
public FittedCluster OverlappingClusterResolver(FittedCluster thisclus, List<FittedCluster> clusters) A method to select the largest cluster among a set of clusters with 4 or more of overlaping hits- Parameters:
thisclus
- the cluster to be compared to a list of other clustersclusters
- the list of clusters- Returns:
- the selected cluster
-
HitListPruner
Prunes the input hit list to remove noise candidates; the algorithm finds contiguous hits in a layer (column) and removes hits according to the number (Nc) of such contiguous hits in a given layer.If Nc=3, keep only the middle hit If Nc=4, keep only the first and last hit in that column; if Nc > 4, keep the first 2 and last 2 hits in that column, if Nc > 10 remove all hits in that column.- Parameters:
hits
- the unfitted hits- Returns:
-
IsolatedHitsPruner
- Parameters:
clus
-- Returns:
- a new cluster that is contiguous
-
outOfTimersRemover
-
ClusterCleaner
public FittedCluster ClusterCleaner(FittedCluster clus, ClusterFitter cf, DCGeant4Factory DcDetector) -
isExceptionalCluster
Wrapper for checking if a cluster of Hit objects is exceptional. -
isExceptionalFittedCluster
Wrapper for checking if a cluster of FittedHit objects is exceptional. -
ClusterSticher
-