32 return {(float)params.end_charge};
53 return {(float)params.opening_angle_charge_wgt};
60 return {(float)params.closing_angle_charge_wgt};
67 return {(float)params.sum_charge};
74 return {(float)params.rms_charge};
81 const double sumADC = params.sum_ADC;
82 return {(float)sumADC, (
float)std::sqrt(sumADC)};
89 return {(float)params.rms_ADC};
96 return (
size_t)params.N_Hits;
103 return params.N_Wires ? params.multi_hit_wires / params.N_Wires : 0.;
Algorithm class inheriting pre-computed results.
Measure_t EndAngle() override
size_t NHits() override
Returns the number of hits in the cluster.
double start_charge
Charge at the start of the cluster.
Measure_t SummedADC() override
Computes the total charge of the cluster from Hit::SummedADC()
cluster_params const & params
the parameters, already computed
Measure_t EndOpeningAngle() override
Measure_t Integral() override
Computes the total charge of the cluster from Hit::Integral()
constexpr T DegreesToRadians(T angle)
Converts the argument angle from degrees into radians.
Type for a simple measurement: value and error.
Measure_t SummedADCStdDev() override
Computes the standard deviation on the charge of the cluster hits.
float MultipleHitDensity() override
Fraction of wires in the cluster with more than one hit.
Measure_t IntegralStdDev() override
Computes the standard deviation on the charge of the cluster hits.
Measure_t StartOpeningAngle() override
Computes the opening angle at the start or end of the cluster.
Measure_t StartAngle() override
Computes the angle of the cluster.
Measure_t StartCharge(util::GeometryUtilities const &gser) override
Computes the charge on the first and last wire of the track.
Measure_t EndCharge(util::GeometryUtilities const &gser) override
Collection of Physical constants used in LArSoft.
float Width(util::GeometryUtilities const &) override
Computes the width of the cluster.