LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 
24 
25 
27 namespace cluster {
28 
37  public:
39 
42 
44  virtual ~StandardClusterParamsAlg() = default;
45 
46 
48  virtual void Clear() override;
49 
50 
62  virtual void SetHits(std::vector<recob::Hit const*> const& hits) override;
63 
64 
71  virtual void SetHits(std::vector<recob::Hit> const& hits) override
73 
74 
76  virtual void SetVerbose(int level = 1) override;
77 
78 
80 
88  virtual Measure_t StartCharge() override;
89  virtual Measure_t EndCharge() override;
91 
93 
108  virtual Measure_t StartAngle() override;
109  virtual Measure_t EndAngle() override;
111 
113 
120  virtual Measure_t StartOpeningAngle() override;
121  virtual Measure_t EndOpeningAngle() override;
123 
124 
127 
134  virtual Measure_t Integral() override;
135 
145  virtual Measure_t IntegralStdDev() override;
146 
154  virtual Measure_t SummedADC() override;
155 
165  virtual Measure_t SummedADCStdDev() override;
166 
168 
169 
171  virtual size_t NHits() override;
172 
173 
183  virtual float MultipleHitDensity() override;
184 
191  virtual float Width() override;
192 
193 
195  size_t NInputHits() const;
196 
197  protected:
199 
200 
201  }; //class StandardClusterParamsAlg
202 
203 } // namespace cluster
204 
205 #endif // STANDARDCLUSTERPARAMSALG_H
virtual ~StandardClusterParamsAlg()=default
Destructor.
virtual Measure_t IntegralStdDev() override
Computes the standard deviation on the charge of the cluster hits.
virtual void SetVerbose(int level=1) override
Set the verbosity level.
virtual Measure_t StartAngle() override
Computes the angle of the cluster.
virtual Measure_t StartCharge() override
Computes the charge on the first and last wire of the track.
Algorithm collection class computing cluster parameters.
Cluster finding and building.
virtual Measure_t StartOpeningAngle() override
Computes the opening angle at the start or end of the cluster.
Algorithm collection class computing cluster parameters.
virtual Measure_t SummedADCStdDev() override
Computes the standard deviation on the charge of the cluster hits.
void hits()
Definition: readHits.C:15
ClusterParamsAlg algo
the actual algorithm class
virtual Measure_t Integral() override
Computes the total charge of the cluster from Hit::Integral()
virtual Measure_t EndCharge() override
Computes the charge on the first and last wire of the track.
virtual Measure_t EndAngle() override
Computes the angle of the cluster.
details::Measure_t< float > Measure_t
Type used to return values with errors.
virtual float MultipleHitDensity() override
Fraction of wires in the cluster with more than one hit.
virtual void SetHits(std::vector< recob::Hit > const &hits) override
Sets the list of input hits.
Interface for a algorithm class computing cluster parameters.
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 size_t NHits() override
Returns the number of hits in the cluster.
virtual Measure_t EndOpeningAngle() override
Computes the opening angle at the start or end of the cluster.
virtual void Clear() override
Restores the class to post-configuration, pre-initialization state.
virtual float Width() override
Computes the width of the cluster.
size_t NInputHits() const
Returns the number of input hits.
virtual void SetHits(std::vector< recob::Hit const * > const &hits)=0
Sets the list of input hits.