LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
StandardClusterParamsAlg.h
Go to the documentation of this file.
1 
14 #ifndef STANDARDCLUSTERPARAMSALG_H
15 #define STANDARDCLUSTERPARAMSALG_H
16 
17 // C/C++ standard library
18 #include <vector>
19 
20 // LArSoft libraries
23 
25 namespace cluster {
26 
35  public:
37 
40 
42  virtual ~StandardClusterParamsAlg() = default;
43 
45  void Clear() override;
46 
59  std::vector<recob::Hit const*> const& hits) override;
60 
67  void SetHits(util::GeometryUtilities const& gser, std::vector<recob::Hit> const& hits) override
68  {
70  }
71 
73  void SetVerbose(int level = 1) override;
74 
76 
84  Measure_t StartCharge(util::GeometryUtilities const& gser) override;
85  Measure_t EndCharge(util::GeometryUtilities const& gser) override;
87 
89 
104  Measure_t StartAngle() override;
105  Measure_t EndAngle() override;
107 
109 
116  Measure_t StartOpeningAngle() override;
117  Measure_t EndOpeningAngle() override;
119 
122 
129  Measure_t Integral() override;
130 
140  Measure_t IntegralStdDev() override;
141 
149  Measure_t SummedADC() override;
150 
160  Measure_t SummedADCStdDev() override;
161 
163 
165  size_t NHits() override;
166 
176  float MultipleHitDensity() override;
177 
184  float Width(util::GeometryUtilities const& gser) override;
185 
187  size_t NInputHits() const;
188 
189  protected:
191 
192  }; //class StandardClusterParamsAlg
193 
194 } // namespace cluster
195 
196 #endif // STANDARDCLUSTERPARAMSALG_H
virtual ~StandardClusterParamsAlg()=default
Destructor.
Measure_t IntegralStdDev() override
Computes the standard deviation on the charge of the cluster hits.
void SetVerbose(int level=1) override
Set the verbosity level.
Measure_t StartAngle() override
Computes the angle of the cluster.
Algorithm collection class computing cluster parameters.
Cluster finding and building.
Measure_t StartOpeningAngle() override
Computes the opening 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.
Measure_t SummedADCStdDev() override
Computes the standard deviation on the charge of the cluster hits.
void hits()
Definition: readHits.C:15
void SetHitsFromPointers(util::GeometryUtilities const &gser, std::vector< recob::Hit const * > const &hits) override
Sets the list of input hits.
float Width(util::GeometryUtilities const &gser) override
Computes the width of the cluster.
ClusterParamsAlg algo
the actual algorithm class
Measure_t Integral() override
Computes the total charge of the cluster from Hit::Integral()
Measure_t EndCharge(util::GeometryUtilities const &gser) override
Computes the charge on the first and last wire of the track.
Measure_t EndAngle() override
Computes the angle of the cluster.
details::Measure_t< float > Measure_t
Type used to return values with errors.
void SetHits(util::GeometryUtilities const &gser, std::vector< recob::Hit > const &hits) override
Sets the list of input hits.
float MultipleHitDensity() override
Fraction of wires in the cluster with more than one hit.
Interface for a algorithm class computing cluster parameters.
Measure_t SummedADC() override
Computes the total charge of the cluster from Hit::SummedADC()
size_t NHits() override
Returns the number of hits in the cluster.
Measure_t EndOpeningAngle() override
Computes the opening angle at the start or end of the cluster.
void Clear() override
Restores the class to post-configuration, pre-initialization state.
size_t NInputHits() const
Returns the number of input hits.
Measure_t StartCharge(util::GeometryUtilities const &gser) override
Computes the charge on the first and last wire of the track.