All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
11 namespace art {
12  class Event;
13 }
14 #include "canvas/Persistency/Common/PtrVector.h"
15 namespace fhicl { class ParameterSet; }
16 
17 #include <string>
18 #include <vector>
19 
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,
37  std::vector< art::PtrVector<recob::Hit> > & vtxHitsOut,
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
void reconfigure(fhicl::ParameterSet const &pset)
process_name opflash particleana ie x
process_name cluster
Definition: cheaterreco.fcl:51
Declaration of signal hit object.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
void VSSaveBMPFile(const char *fileName, unsigned char *pix, int dx, int dy) const
Definition: EndPointAlg.cxx:85
process_name opflash particleana ie ie y
EndPointAlg(fhicl::ParameterSet const &pset)
Definition: EndPointAlg.cxx:48
size_t EndPoint(const art::PtrVector< recob::Cluster > &clusIn, std::vector< recob::EndPoint2D > &vtxcol, std::vector< art::PtrVector< recob::Hit > > &vtxHitsOut, art::Event const &evt, std::string const &label) const
Declaration of cluster object.
double GaussianDerivativeY(int x, int y) const
Definition: EndPointAlg.cxx:76
Algorithm to find 2D end points.
Definition: EndPointAlg.h:27
double Gaussian(int x, int y, double sigma) const
Definition: EndPointAlg.cxx:60
double GaussianDerivativeX(int x, int y) const
Definition: EndPointAlg.cxx:68
TCEvent evt
Definition: DataStructs.cxx:8