ant
A2 ant: class-based analysis framework
ant::analysis::utils::ClusterTools Struct Reference

#include <ClusterTools.h>

+ Collaboration diagram for ant::analysis::utils::ClusterTools:

Classes

struct  det_t
 

Public Member Functions

 ClusterTools ()
 
double LateralMoment (const ant::TCluster &cluster) const
 Calculate the Lateral Moment of a cluster. More...
 
double EffectiveRadius (const ant::TCluster &cluster) const
 Calculate the Effective Radius of a cluster. More...
 

Protected Attributes

std::map< Detector_t::Type_t, det_tcluster_detectors
 

Constructor & Destructor Documentation

◆ ClusterTools()

ClusterTools::ClusterTools ( )

Member Function Documentation

◆ EffectiveRadius()

double ClusterTools::EffectiveRadius ( const ant::TCluster cluster) const

Calculate the Effective Radius of a cluster.

Parameters
cluster
Returns

\[ eff = \sqrt{\frac{\sum_{i=0}^{n} E_i (\Delta r_i)^2 }{ (\sum_{i=0}^{n} E_i) }} \]

where $ \Delta r_i $ is the opening angle (in degrees) between the cluster direction and the crystal axis.

In contrast to the lateral moment, the two highest energetic crystals are weighted the same as every other crystal.

◆ LateralMoment()

double ClusterTools::LateralMoment ( const ant::TCluster cluster) const

Calculate the Lateral Moment of a cluster.

Parameters
cluster
Returns

\[ lat = \frac{\sum_{i=2}^{n} E_i r_i^2 }{ (\sum_{i=2}^{n} E_i r_i^2 + r_0^0 E_0 + r_0^2 E_1) } \]

where $ E_{0} $ and $ E_{1} $ are the two hits highest energies.

Reimplemented after BaBar

Member Data Documentation

◆ cluster_detectors

std::map<Detector_t::Type_t, det_t> ant::analysis::utils::ClusterTools::cluster_detectors
protected

The documentation for this struct was generated from the following files: