Algorithm collection class computing cluster parameters. More...
#include <StandardClusterParamsAlg.h>
Public Types | |
using | Measure_t = ClusterParamsAlgBase::Measure_t |
Public Types inherited from cluster::ClusterParamsAlgBase | |
using | Measure_t = details::Measure_t< float > |
Type used to return values with errors. More... | |
Public Member Functions | |
StandardClusterParamsAlg () | |
Constructor. More... | |
virtual | ~StandardClusterParamsAlg ()=default |
Destructor. More... | |
void | Clear () override |
Restores the class to post-configuration, pre-initialization state. More... | |
void | SetHits (util::GeometryUtilities const &gser, std::vector< recob::Hit const * > const &hits) override |
Sets the list of input hits. More... | |
void | SetHits (util::GeometryUtilities const &gser, std::vector< recob::Hit > const &hits) override |
Sets the list of input hits. More... | |
void | SetVerbose (int level=1) override |
Set the verbosity level. More... | |
size_t | NHits () override |
Returns the number of hits in the cluster. More... | |
float | MultipleHitDensity () override |
Fraction of wires in the cluster with more than one hit. More... | |
float | Width (util::GeometryUtilities const &gser) override |
Computes the width of the cluster. More... | |
size_t | NInputHits () const |
Returns the number of input hits. More... | |
Measure_t | StartCharge (util::GeometryUtilities const &gser) override |
Computes the charge on the first and last wire of the track. More... | |
Measure_t | EndCharge (util::GeometryUtilities const &gser) override |
Measure_t | StartAngle () override |
Computes the angle of the cluster. More... | |
Measure_t | EndAngle () override |
Measure_t | StartOpeningAngle () override |
Computes the opening angle at the start or end of the cluster. More... | |
Measure_t | EndOpeningAngle () override |
Cluster charge | |
Measure_t | Integral () override |
Computes the total charge of the cluster from Hit::Integral() More... | |
Measure_t | IntegralStdDev () override |
Computes the standard deviation on the charge of the cluster hits. More... | |
Measure_t | SummedADC () override |
Computes the total charge of the cluster from Hit::SummedADC() More... | |
Measure_t | SummedADCStdDev () override |
Computes the standard deviation on the charge of the cluster hits. More... | |
Public Member Functions inherited from cluster::ClusterParamsAlgBase | |
virtual | ~ClusterParamsAlgBase ()=default |
Protected Attributes | |
ClusterParamsAlg | algo |
the actual algorithm class More... | |
Protected Attributes inherited from cluster::ClusterParamsAlgBase | |
int | verbose = 0 |
verbosity level: 0 is normal, negative is even quieter More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from cluster::ClusterParamsAlgBase | |
static std::logic_error | NotImplemented (std::string function_name) |
Algorithm collection class computing cluster parameters.
This class wraps ClusterParamsAlg class, designed in the context of shower reconstruction, to expose a standard ClusterParamsBaseAlg interface.
Definition at line 34 of file StandardClusterParamsAlg.h.
Definition at line 36 of file StandardClusterParamsAlg.h.
cluster::StandardClusterParamsAlg::StandardClusterParamsAlg | ( | ) |
Constructor.
Definition at line 20 of file StandardClusterParamsAlg.cxx.
|
virtualdefault |
Destructor.
|
overridevirtual |
Restores the class to post-configuration, pre-initialization state.
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 35 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 78 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 60 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 95 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Computes the total charge of the cluster from Hit::Integral()
ClusterParamsAlg computes the sum from all hits.
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 105 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Computes the standard deviation on the charge of the cluster hits.
ClusterParamsAlg computes the standard deviation of the sample of charges from all hits. Hit charge is obtained by recob::Hit::Integral().
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 115 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Fraction of wires in the cluster with more than one hit.
Returns a quantity defined as NMultiHitWires / NWires, where NWires is the number of wires hosting at least one hit of this cluster, and NMultiHitWires is the number of wires which have more than just one hit.
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 157 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Returns the number of hits in the cluster.
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 147 of file StandardClusterParamsAlg.cxx.
size_t cluster::StandardClusterParamsAlg::NInputHits | ( | ) | const |
Returns the number of input hits.
Definition at line 178 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Sets the list of input hits.
hits | list of hits |
undefined | in case of error, this method can throw (anything) |
Hits are translated into our own internal format. The original hits are not used afterward, and their distruction will not affect this object. This method calls Clear() at the beginning (although the protocol does not requires it).
Implements cluster::ClusterParamsAlgBase.
Definition at line 42 of file StandardClusterParamsAlg.cxx.
|
inlineoverridevirtual |
Sets the list of input hits.
hits | list of hits (hits will not be modified) |
undefined | in case of error, this method can throw (anything) |
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 68 of file StandardClusterParamsAlg.h.
|
overridevirtual |
Set the verbosity level.
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 27 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Computes the angle of the cluster.
Uses the coordinates from the hits, weighted by charge (Hit::Integral()) to compute a slope in the homogenized wire x time space. The homogenized space has both wires and ticks converted into a distance (by using detector parameters: wire pitch and drift velocity).
The angle is in the range, with 0 corresponding to a cluster parallel to the wire plane and to a cluster orthogonal to the wire plane, going farther from it.
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 68 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Computes the charge on the first and last wire of the track.
The implementation in ClusterParamsAlg provides an estimation of the charge collected in the first or last 1 cm of the cluster, using a linear fit on the deposited charge to reduce fluctuations.
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 52 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Computes the opening angle at the start or end of the cluster.
This algorithm returns an opening angle after weighting the hits by their charge (as defined bu Hit::Integral());
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 85 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Computes the total charge of the cluster from Hit::SummedADC()
ClusterParamsAlg computes the sum from all hits.
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 125 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Computes the standard deviation on the charge of the cluster hits.
ClusterParamsAlg computes the standard deviation of the sample of charges from all hits. Hit charge is obtained by recob::Hit::SummedADC().
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 137 of file StandardClusterParamsAlg.cxx.
|
overridevirtual |
Computes the width of the cluster.
Reimplemented from cluster::ClusterParamsAlgBase.
Definition at line 168 of file StandardClusterParamsAlg.cxx.
|
protected |
the actual algorithm class
Definition at line 191 of file StandardClusterParamsAlg.h.