LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
LazyClusterParamsAlg.h
Go to the documentation of this file.
1 
10 #ifndef LAZYCLUSTERPARAMSALG_H
11 #define LAZYCLUSTERPARAMSALG_H
12 
13 // C/C++ standard library
14 #include <cstddef>
15 #include <vector>
16 
17 // LArSoft libraries
19 namespace recob {
20  class Hit;
21 }
22 
24 namespace cluster {
25 
26  class cluster_params;
27 
39  public:
41 
43  LazyClusterParamsAlg(cluster_params const& new_params) : params(new_params) {}
44 
46  void Clear() override {}
47 
57  std::vector<recob::Hit const*> const& /* hits */) override
58  {}
59 
61 
69  Measure_t StartCharge(util::GeometryUtilities const& gser) override;
70  Measure_t EndCharge(util::GeometryUtilities const& gser) override;
72 
74 
89  Measure_t StartAngle() override;
90  Measure_t EndAngle() override;
92 
94 
101  Measure_t StartOpeningAngle() override;
102  Measure_t EndOpeningAngle() override;
104 
107 
114  Measure_t Integral() override;
115 
125  Measure_t IntegralStdDev() override;
126 
134  Measure_t SummedADC() override;
135 
145  Measure_t SummedADCStdDev() override;
146 
148 
150  size_t NHits() override;
151 
161  float MultipleHitDensity() override;
162 
169  float Width(util::GeometryUtilities const&) override;
170 
172  cluster_params const& GetParams() const { return params; }
173 
174  protected:
176 
177  }; //class LazyClusterParamsAlg
178 
179 } // namespace cluster
180 
181 #endif // LAZYCLUSTERPARAMSALG_H
Algorithm class inheriting cluster parameters.
Reconstruction base classes.
Cluster finding and building.
cluster_params const & params
the parameters, already computed
Algorithm collection class computing cluster parameters.
void SetHitsFromPointers(util::GeometryUtilities const &, std::vector< recob::Hit const * > const &) override
Sets the list of input hits.
Interface for a algorithm class computing cluster parameters.
cluster_params const & GetParams() const
Returns the original precomputed parameters.
LazyClusterParamsAlg(cluster_params const &new_params)
Constructor: references to the parameters (no copy is performed!)
void Clear() override
Restores the class to post-configuration, pre-initialization state; dummy.