LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
EndPointAlg.h
Go to the documentation of this file.
1 
8 #ifndef ENDPOINTALG_H
9 #define ENDPOINTALG_H
10 
12 #include "fhiclcpp/ParameterSet.h"
15 #include "TMath.h"
16 #include <vector>
17 #include <string>
18 
19 namespace recob {
20  class Cluster;
21  class EndPoint2D;
22  class Hit;
23 }
24 
25 namespace cluster {
26 
28  class EndPointAlg {
29 
30  public:
31 
32  explicit EndPointAlg(fhicl::ParameterSet const& pset);
33  virtual ~EndPointAlg();
34 
35  void reconfigure(fhicl::ParameterSet const& pset);
36 
37  size_t EndPoint(const art::PtrVector<recob::Cluster> & clusIn,
38  std::vector<recob::EndPoint2D> & vtxcol,
40  art::Event const& evt,
41  std::string const& label);
42 
43  private:
44 
45  double Gaussian(int x, int y, double sigma);
46  double GaussianDerivativeX(int x, int y);
47  double GaussianDerivativeY(int x, int y);
48  void VSSaveBMPFile(const char *fileName, unsigned char *pix, int dx, int dy);
49 
50 
51  int fTimeBins;
53  double fGsigma;
54  int fWindow;
55  double fThreshold;
57  };
58 
59 }
60 
61 
62 
63 #endif // ENDPOINTALG_H
Float_t x
Definition: compare.C:6
Reconstruction base classes.
const std::string label
Float_t y
Definition: compare.C:6
Cluster finding and building.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
Algorithm to find 2D end points.
Definition: EndPointAlg.h:28