10 #ifndef LAZYCLUSTERPARAMSALG_H 11 #define LAZYCLUSTERPARAMSALG_H 48 virtual void Clear()
override {}
59 virtual void SetHits(std::vector<recob::Hit const*>
const&
hits)
override {}
154 virtual size_t NHits()
override;
174 virtual float Width()
override;
187 #endif // LAZYCLUSTERPARAMSALG_H Algorithm class inheriting cluster parameters.
virtual Measure_t EndAngle() override
Computes the angle of the cluster.
virtual size_t NHits() override
Returns the number of hits in the cluster.
virtual Measure_t SummedADC() override
Computes the total charge of the cluster from Hit::SummedADC()
virtual void SetHits(std::vector< recob::Hit const * > const &hits) override
Sets the list of input hits.
virtual Measure_t StartCharge() override
Computes the charge on the first and last wire of the track.
Cluster finding and building.
cluster_params const & params
the parameters, already computed
virtual Measure_t EndOpeningAngle() override
Computes the opening angle at the start or end of the cluster.
virtual Measure_t Integral() override
Computes the total charge of the cluster from Hit::Integral()
Algorithm collection class computing cluster parameters.
virtual Measure_t EndCharge() override
Computes the charge on the first and last wire of the track.
virtual Measure_t SummedADCStdDev() override
Computes the standard deviation on the charge of the cluster hits.
virtual float MultipleHitDensity() override
Fraction of wires in the cluster with more than one hit.
virtual Measure_t IntegralStdDev() override
Computes the standard deviation on the charge of the cluster hits.
details::Measure_t< float > Measure_t
Type used to return values with errors.
virtual float Width() override
Computes the width of the cluster.
virtual ~LazyClusterParamsAlg()=default
Destructor.
virtual Measure_t StartOpeningAngle() override
Computes the opening angle at the start or end of the cluster.
virtual Measure_t StartAngle() override
Computes the angle of the cluster.
Interface for a algorithm class computing cluster parameters.
cluster_params const & GetParams() const
Returns the original precomputed parameters.
virtual void Clear() override
Restores the class to post-configuration, pre-initialization state; dummy.
LazyClusterParamsAlg(cluster_params const &new_params)
Constructor: references to the parameters (no copy is performed!)