eic / EICrecon

EIC Reconstruction - JANA based
https://eic.github.io/EICrecon
GNU Lesser General Public License v3.0
5 stars 26 forks source link

Calculate direction of a cluster in the calorimeter #1462

Closed sebouh137 closed 1 month ago

sebouh137 commented 2 months ago

Is your feature request related to a problem? Please describe. The direction of a cluster's axis is not written out in CalorimeterClusterRecoCoG

Describe the solution you'd like Define the cluster axis to be the unit direction of the eigenvector with the largest eignvalue of the moments matrix for the cluster. Include the x, y and z values of this vector in the shapeParameters

Describe alternatives you've considered An alternative is to store these values as intrinsicTheta and intrinsicPhi, however these values are already being calculated as the direction from the origin to the centroid of the cluster.

Additional context N/A