14 #ifndef CLUSTERPARAMSALGBASE_H
15 #define CLUSTERPARAMSALGBASE_H
28 class GeometryUtilities;
137 std::vector<recob::Hit const*>
const& hits) = 0;
159 std::vector<recob::Hit const*> hitptrs;
160 hitptrs.reserve(hits.size());
163 std::back_inserter(hitptrs),
314 static std::logic_error
317 return std::logic_error(function_name +
"() not implemented.");
324 #endif // CLUSTERPARAMSALGBASE_H
int verbose
verbosity level: 0 is normal, negative is even quieter
virtual Measure_t EndCharge(util::GeometryUtilities const &gser)
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.
std::pair< float, float > Base_t
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 void SetHits(util::GeometryUtilities const &gser, std::vector< recob::Hit const * > const &hits)=0
Sets the list of input hits.
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 ~ClusterParamsAlgBase()=default
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
virtual Measure_t EndOpeningAngle()
virtual size_t NHits()
Returns the number of hits in the cluster.