14 #ifndef CLUSTERPARAMSALGBASE_H 15 #define CLUSTERPARAMSALGBASE_H 28 class GeometryUtilities;
119 std::vector<recob::Hit const*>
const&
hits) = 0;
140 std::vector<recob::Hit const*> hitptrs;
141 hitptrs.reserve(hits.size());
142 std::transform(hits.begin(),
144 std::back_inserter(hitptrs),
146 SetHitsFromPointers(gser, hitptrs);
159 throw NotImplemented(__func__);
219 virtual size_t NHits() {
throw NotImplemented(__func__); }
244 return std::logic_error(function_name +
"() not implemented.");
251 #endif // CLUSTERPARAMSALGBASE_H 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)
Declaration of signal hit object.
virtual void SetVerbose(int level=1)
Set the verbosity level.
virtual Measure_t StartCharge(util::GeometryUtilities const &)
Computes the charge on the first and last wire of the track.
std::pair< float, float > Base_t
virtual Measure_t EndCharge(util::GeometryUtilities const &)
Computes the charge on the first and last wire of the track.
Cluster finding and building.
virtual void Clear()
Restores the class to post-configuration, pre-initialization state.
virtual Measure_t EndAngle()
Computes the angle at the start or end of the cluster.
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 float MultipleHitDensity()
Fraction of wires in the cluster with more than one hit.
Detector simulation of raw signals on wires.
virtual Measure_t Integral()
Computes the total charge of the cluster from Hit::Integral()
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()
Computes the opening angle at the start or end of the cluster.
virtual size_t NHits()
Returns the number of hits in the cluster.