LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 <vector>
15 
16 // LArSoft libraries
19 
20 
21 
23 namespace cluster {
24 
36  public:
38 
41  params(new_params) {}
42 
44  virtual ~LazyClusterParamsAlg() = default;
45 
46 
48  virtual void Clear() override {}
49 
50 
59  virtual void SetHits(std::vector<recob::Hit const*> const& hits) override {}
60 
61 
63 
71  virtual Measure_t StartCharge() override;
72  virtual Measure_t EndCharge() override;
74 
76 
91  virtual Measure_t StartAngle() override;
92  virtual Measure_t EndAngle() override;
94 
96 
103  virtual Measure_t StartOpeningAngle() override;
104  virtual Measure_t EndOpeningAngle() override;
106 
107 
110 
117  virtual Measure_t Integral() override;
118 
128  virtual Measure_t IntegralStdDev() override;
129 
137  virtual Measure_t SummedADC() override;
138 
148  virtual Measure_t SummedADCStdDev() override;
149 
151 
152 
154  virtual size_t NHits() override;
155 
156 
166  virtual float MultipleHitDensity() override;
167 
174  virtual float Width() override;
175 
176 
178  cluster_params const& GetParams() const { return params; }
179 
180  protected:
182 
183  }; //class LazyClusterParamsAlg
184 
185 } // namespace cluster
186 
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.
void hits()
Definition: readHits.C:15
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!)