EndPointAlg.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file EndPointAlg.h
3 /// \brief algorithm to find 2D endpoints
4 ///
5 /// \author joshua.spitz@yale.edu
6 ////////////////////////////////////////////////////////////////////////
7 
8 #ifndef ENDPOINTALG_H
9 #define ENDPOINTALG_H
10 
13 namespace fhicl { class ParameterSet; }
14 
15 #include <vector>
16 #include <string>
17 
18 namespace recob {
19  class Cluster;
20  class EndPoint2D;
21  class Hit;
22 }
23 
24 namespace cluster {
25 
26  ///Algorithm to find 2D end points
27  class EndPointAlg {
28 
29  public:
30 
31  explicit EndPointAlg(fhicl::ParameterSet const& pset);
32 
33  void reconfigure(fhicl::ParameterSet const& pset);
34 
35  size_t EndPoint(const art::PtrVector<recob::Cluster> & clusIn,
36  std::vector<recob::EndPoint2D> & vtxcol,
38  art::Event const& evt,
39  std::string const& label) const;
40 
41  private:
42 
43  double Gaussian(int x, int y, double sigma) const;
44  double GaussianDerivativeX(int x, int y) const;
45  double GaussianDerivativeY(int x, int y) const;
46  void VSSaveBMPFile(const char *fileName, unsigned char *pix, int dx, int dy) const;
47 
48 
49  int fTimeBins;
51  double fGsigma;
52  int fWindow;
53  double fThreshold;
55  };
56 
57 }
58 
59 
60 
61 #endif // ENDPOINTALG_H
Reconstruction base classes.
std::string string
Definition: nybbler.cc:12
struct vector vector
Cluster finding and building.
fileName
Definition: dumpTree.py:9
virtual void reconfigure(fhicl::ParameterSet const &pset)
Algorithm to find 2D end points.
Definition: EndPointAlg.h:27
list x
Definition: train.py:276
TCEvent evt
Definition: DataStructs.cxx:7