|
LDMX Software
|
Computes the weight (distance) between two Hcal clusters. More...
#include <MyClusterWeight.h>
Public Types | |
| using | ClusterType = recon::WorkingCluster<ldmx::HcalHit> |
Public Member Functions | |
| double | operator() (const ClusterType &a, const ClusterType &b) |
| Compute the weight between two clusters. | |
Computes the weight (distance) between two Hcal clusters.
The weight is used by TemplatedClusterFinder to decide which clusters to merge. Smaller weights indicate clusters that should be merged first. The weight is based on both transverse and longitudinal separation.
Definition at line 23 of file MyClusterWeight.h.
Definition at line 25 of file MyClusterWeight.h.
|
inline |
Compute the weight between two clusters.
| a | First cluster |
| b | Second cluster |
Definition at line 34 of file MyClusterWeight.h.
References recon::WorkingCluster< HitType >::centroidX(), recon::WorkingCluster< HitType >::centroidY(), recon::WorkingCluster< HitType >::centroidZ(), and recon::WorkingCluster< HitType >::energy().