CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughPeak.h
Go to the documentation of this file.
1#ifndef HOUGHPEAK_H
2#define HOUGHPEAK_H
3
4#include <vector>
5#include "MdcHoughFinder/HoughHit.h"
6#include "MdcHoughFinder/HoughHitList.h"
7
8using namespace std;
9
10class HoughPeak{
11 public:
13 HoughPeak(const HoughPeak& other);
15 //HoughPeak(int itheta, int irho , double theta,double rho, vector< const HoughHit* >** mapHitList,bool is);
16 HoughPeak(int itheta, int irho , double theta,double rho, vector< const HoughHit* >** mapHitList,bool is,int peakNum);
17 HoughPeak(int height,int itheta, int irho , double theta,double rho, bool is,int peakNum,int charge);
18 // collect hits
19 vector<const HoughHit*> getHoughHitList() const {return _houghPeakHitList;}
20 int peakHeight() const {return _height;}
21 int getPeakNum() const {return _peakNum;}
22 int getThetaBin() const {return _thetaBin;}
23 int getRhoBin() const {return _rhoBin;}
24 double getTheta() const {return _theta;}
25 double getRho() const {return _rho;}
26 double getRho_reci() const {return 1./_rho;}
27 bool getisCandiTrack() const {return _isCandiTrack;}
28 void setisCandiTrack(bool is) { _isCandiTrack=is;}
29 int getHitNum(int) const ;
30 int getHitNumA(int) const ;
31 int getHitNumS(int) const ;
32 void printAllHit() const;
33 void print();
35 //int collectHits(const HoughHitList& );
37
38 double intersect_cylinder(double r_cylinder, double r_center, double phi_center, int charge);
39 double intersect_cylinder(int charge, double x_center, double y_center, double r_cylinder);
40
41 static double m_dcut1;
42 static double m_dcut2;
43 static bool m_debug;
44 static double m_factor;
45 static vector<double> m_cut_deltaD;
46
47 private:
48 //class member
49 double _theta;
50 double _rho;
51 int _thetaBin;
52 int _rhoBin;
53 vector<const HoughHit*> _houghPeakHitList;
54 bool _isCandiTrack;
55 int _peakNum;
56 int _height;
57 int _charge;
58};
59
60#endif
int getHitNumS(int) const
int getHitNum(int) const
HoughPeak(int itheta, int irho, double theta, double rho, vector< const HoughHit * > **mapHitList, bool is, int peakNum)
double intersect_cylinder(double r_cylinder, double r_center, double phi_center, int charge)
HoughPeak & operator=(const HoughPeak &other)
void printAllHit() const
HoughPeak(const HoughPeak &other)
int getHitNumA(int) const
int collectHits(HoughHitList &)
double intersect_cylinder(int charge, double x_center, double y_center, double r_cylinder)
void print()
HoughPeak(int height, int itheta, int irho, double theta, double rho, bool is, int peakNum, int charge)