14 #ifndef CLUSTERPARAMSALGBASE_H 15 #define CLUSTERPARAMSALGBASE_H 118 virtual void SetHits(std::vector<recob::Hit const*>
const&
hits) = 0;
137 virtual void SetHits(std::vector<recob::Hit>
const& hits)
139 std::vector<recob::Hit const*> hitptrs;
140 hitptrs.reserve(hits.size());
141 std::transform(hits.begin(), hits.end(), std::back_inserter(hitptrs),
217 virtual size_t NHits() {
throw NotImplemented(__func__); }
236 virtual float Width() {
throw NotImplemented(__func__); }
244 {
return std::logic_error(function_name +
"() not implemented."); }
250 #endif // CLUSTERPARAMSALGBASE_H virtual Measure_t EndCharge()
Computes the charge on the first and last wire of the track.
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 float Width()
Computes the width of the cluster.
virtual Measure_t StartCharge()
Computes the charge on the first and last wire of the track.
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()
Computes the angle at the start or end of the cluster.
Algorithm collection class computing cluster parameters.
virtual ~ClusterParamsAlgBase()
Virtual destructor. Override freely.
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 void SetHits(std::vector< recob::Hit > const &hits)
Sets the list of input hits.
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 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()
Computes the opening angle at the start or end of the cluster.
virtual size_t NHits()
Returns the number of hits in the cluster.