Belle II Software  release-05-01-25
PeakFinder.h
1 //-----------------------------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------------------------
4 // Filename : PeakFinder.h
5 // Section : TRG CDC
6 // Owner : Yoshihito Iwasaki
7 // Email : yoshihito.iwasaki@kek.jp
8 //-----------------------------------------------------------------------------
9 // Description : A class to find peaks in Hough Plane
10 //-----------------------------------------------------------------------------
11 // $Log$
12 //-----------------------------------------------------------------------------
13 
14 #ifndef TRGCDCPeakFinder_FLAG_
15 #define TRGCDCPeakFinder_FLAG_
16 
17 #include <string>
18 #include <vector>
19 
20 #ifdef TRGCDC_SHORT_NAMES
21 #define TCPeakFinder TRGCDCPeakFinder
22 #endif
23 
24 namespace Belle2 {
30  class TRGCDCCircle;
31  class TRGCDCHoughPlaneMulti2;
32 
35 
36  public:
37 
39  explicit TRGCDCPeakFinder(const std::string& name);
40 
42  virtual ~TRGCDCPeakFinder();
43 
44  public:
45 
47  std::string name(void) const;
48 
50  std::string version(void) const;
51 
54  const unsigned threshold,
55  const bool centerIsPeak,
56  std::vector<unsigned>& peakSerialIds) const;
57 
60  const unsigned threshold,
61  std::vector<std::vector<unsigned>>& peaks) const;
62 
63  private:
64 
66  void regions(TRGCDCHoughPlane& hp, const unsigned threshold) const;
67 
70  const unsigned threshold,
71  std::vector<std::vector<unsigned>>& peaks) const;
72 
73  private:
74 
76  const std::string _name;
77  };
78 
79 //-----------------------------------------------------------------------------
80 
81  inline
82  std::string
84  {
85  return _name;
86  }
87 
89 } // namespace Belle2
90 
91 #endif
Belle2::TRGCDCPeakFinder::p1p2Methode
void p1p2Methode(TRGCDCHoughPlane &hp, const unsigned threshold, std::vector< std::vector< unsigned >> &peaks) const
Kaiyu's logic. Finds peaks from nested patterns.
Definition: PeakFinder.cc:500
Belle2::TRGCDCHoughPlane
A class to represent a Hough parameter plane.
Definition: HoughPlane.h:31
Belle2::TRGCDCPeakFinder::~TRGCDCPeakFinder
virtual ~TRGCDCPeakFinder()
Destructor.
Definition: PeakFinder.cc:49
Belle2::TRGCDCPeakFinder
A class to find peaks in Hough Plane.
Definition: PeakFinder.h:34
Belle2::TRGCDCPeakFinder::_name
const std::string _name
Name.
Definition: PeakFinder.h:76
Belle2::TRGCDCPeakFinder::name
std::string name(void) const
returns name.
Definition: PeakFinder.h:83
Belle2::TRGCDCHoughPlaneMulti2
A class to represent a Hough parameter plane.
Definition: HoughPlaneMulti2.h:34
Belle2::TRGCDCPeakFinder::findPeaks
void findPeaks(TRGCDCHoughPlaneMulti2 &hp, const unsigned threshold, std::vector< std::vector< unsigned >> &peaks) const
do peak finding. Kaiyu's version using p1p2Methode.
Definition: PeakFinder.cc:479
Belle2::TRGCDCPeakFinder::TRGCDCPeakFinder
TRGCDCPeakFinder(const std::string &name)
Contructor.
Definition: PeakFinder.cc:44
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGCDCPeakFinder::regions
void regions(TRGCDCHoughPlane &hp, const unsigned threshold) const
Makes regions.
Definition: PeakFinder.cc:54
Belle2::TRGCDCPeakFinder::findPeaksTrasan
void findPeaksTrasan(TRGCDCHoughPlaneMulti2 &hp, const unsigned threshold, const bool centerIsPeak, std::vector< unsigned > &peakSerialIds) const
do peak finding. This is a copy from "trasan".
Definition: PeakFinder.cc:361
Belle2::TRGCDCPeakFinder::version
std::string version(void) const
returns version.
Definition: PeakFinder.cc:39