30 algo.SetVerbose(level > 0);
43 std::vector<recob::Hit const*>
const& hits)
47 algo.SetHits(pxhitconverter.ToPxHitVector(hits));
54 if (NInputHits() == 0)
return {0.F};
55 return {(float)algo.StartCharge(gser)};
62 if (NInputHits() == 0)
return {0.F};
63 return {(float)algo.EndCharge(gser)};
70 if (NInputHits() < 2)
return {0.F};
87 if (NInputHits() < 3)
return {0.F};
89 algo.RefineDirection();
90 return {(float)algo.GetParams().opening_angle_charge_wgt};
97 if (NInputHits() < 3)
return {0.F};
99 algo.RefineDirection();
100 return {(float)algo.GetParams().closing_angle_charge_wgt};
107 if (NInputHits() == 0)
return {0.F};
110 return {(float)algo.GetParams().sum_charge};
117 if (NInputHits() < 2)
return {0.F};
120 return {(float)algo.GetParams().rms_charge};
127 if (NInputHits() == 0)
return {0.F};
131 double sumADC = algo.GetParams().sum_ADC;
132 return {(float)sumADC, (
float)std::sqrt(sumADC)};
139 if (NInputHits() < 2)
return {0.F};
142 return {(float)algo.GetParams().rms_ADC};
149 if (NInputHits() < 2)
return NInputHits();
152 return (
size_t)algo.GetParams().N_Hits;
159 if (NInputHits() < 2)
return 0.0F;
162 return algo.GetParams().N_Wires ? algo.GetParams().multi_hit_wires / algo.GetParams().N_Wires :
170 if (NInputHits() < 3)
return 0.0F;
172 algo.GetProfileInfo(gser);
173 return algo.GetParams().width;
180 return algo.GetNHits();
Measure_t IntegralStdDev() override
Computes the standard deviation on the charge of the cluster hits.
virtual void SetVerbose(int level=1)
Set the verbosity level.
void SetVerbose(int level=1) override
Set the verbosity level.
Measure_t StartAngle() override
Computes the angle of the cluster.
Measure_t StartOpeningAngle() override
Computes the opening angle at the start or end of the cluster.
Measure_t SummedADCStdDev() override
Computes the standard deviation on the charge of the cluster hits.
constexpr T DegreesToRadians(T angle)
Converts the argument angle from degrees into radians.
float Width(util::GeometryUtilities const &gser) override
Computes the width of the cluster.
Measure_t Integral() override
Computes the total charge of the cluster from Hit::Integral()
void SetHits(util::GeometryUtilities const &gser, std::vector< recob::Hit const * > const &hits) override
Sets the list of input hits.
Measure_t EndCharge(util::GeometryUtilities const &gser) override
Measure_t EndAngle() override
float MultipleHitDensity() override
Fraction of wires in the cluster with more than one hit.
StandardClusterParamsAlg()
Constructor.
Measure_t SummedADC() override
Computes the total charge of the cluster from Hit::SummedADC()
size_t NHits() override
Returns the number of hits in the cluster.
Measure_t EndOpeningAngle() override
void Clear() override
Restores the class to post-configuration, pre-initialization state.
size_t NInputHits() const
Returns the number of input hits.
Interface to class computing cluster parameters.
Collection of Physical constants used in LArSoft.
Measure_t StartCharge(util::GeometryUtilities const &gser) override
Computes the charge on the first and last wire of the track.