14 #ifndef CLUSTERPARAMSALGBASE_H 15 #define CLUSTERPARAMSALGBASE_H 26 class GeometryUtilities;
135 std::vector<recob::Hit const*>
const& hits) = 0;
157 std::vector<recob::Hit const*> hitptrs;
158 hitptrs.reserve(hits.size());
159 std::transform(hits.begin(),
161 std::back_inserter(hitptrs),
163 SetHits(gser, hitptrs);
181 throw NotImplemented(__func__);
186 throw NotImplemented(__func__);
198 throw NotImplemented(__func__);
203 throw NotImplemented(__func__);
215 throw NotImplemented(__func__);
220 throw NotImplemented(__func__);
234 throw NotImplemented(__func__);
247 throw NotImplemented(__func__);
258 throw NotImplemented(__func__);
271 throw NotImplemented(__func__);
280 throw NotImplemented(__func__);
295 throw NotImplemented(__func__);
306 throw NotImplemented(__func__);
312 static std::logic_error
315 return std::logic_error(function_name +
"() not implemented.");
322 #endif // CLUSTERPARAMSALGBASE_H virtual Measure_t EndCharge(util::GeometryUtilities const &gser)
Namespace for general, non-LArSoft-specific utilities.
virtual Measure_t IntegralStdDev()
Computes the standard deviation on the charge of the cluster hits.
static std::logic_error NotImplemented(std::string function_name)
virtual void SetVerbose(int level=1)
Set the verbosity level.
std::pair< float, float > Base_t
Cluster finding and building.
virtual void Clear()
Restores the class to post-configuration, pre-initialization state.
virtual Measure_t EndAngle()
virtual void SetHits(util::GeometryUtilities const &gser, std::vector< recob::Hit > const &hits)
Sets the list of input hits.
Algorithm collection class computing cluster parameters.
virtual Measure_t SummedADCStdDev()
Computes the standard deviation on the charge of the cluster hits.
Measure_t()
Default constructor: initializes to 0.
virtual Measure_t StartOpeningAngle()
Computes the opening angle at the start or end of the cluster.
Type for a simple measurement: value and error.
virtual Measure_t StartAngle()
Computes the angle at the start or end of the cluster.
virtual Measure_t StartCharge(util::GeometryUtilities const &gser)
Computes the charge on the first and last wire of the track.
details::Measure_t< float > Measure_t
Type used to return values with errors.
virtual float MultipleHitDensity()
Fraction of wires in the cluster with more than one hit.
virtual Measure_t Integral()
Computes the total charge of the cluster from Hit::Integral()
Declaration of signal hit object.
virtual float Width(util::GeometryUtilities const &)
Computes the width of the cluster.
virtual Measure_t SummedADC()
Computes the total charge of the cluster from Hit::SummedADC()
Measure_t(Data_t value)
Constructor: initializes to the specified value, error is 0.
Measure_t(Data_t value, Data_t error)
Constructor: initializes to the specified value and error.
2D representation of charge deposited in the TDC/wire plane
second_as<> second
Type of time stored in seconds, in double precision.
virtual Measure_t EndOpeningAngle()
virtual size_t NHits()
Returns the number of hits in the cluster.