BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MdcHoughFinder/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
11 public:
12 HoughPeak();
13 HoughPeak(const HoughPeak& other);
14 ~HoughPeak();
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();
34 HoughPeak& operator=(const HoughPeak& other);
35 int collectHits(const HoughHitList& );
36
37 static double m_dcut1;
38 static double m_dcut2;
39
40 private:
41 //class member
42 double _theta;
43 double _rho;
44 int _thetaBin;
45 int _rhoBin;
46 vector<const HoughHit*> _houghPeakHitList;
47 bool _isCandiTrack;
48 int _peakNum;
49 int _height;
50 int _charge;
51};
52
53#endif
int getHitNumS(int) const
Definition: HoughPeak.cxx:153
int getHitNum(int) const
Definition: HoughPeak.cxx:103
HoughPeak(int itheta, int irho, double theta, double rho, vector< const HoughHit * > **mapHitList, bool is, int peakNum)
~HoughPeak()
Definition: HoughPeak.cxx:7
HoughPeak & operator=(const HoughPeak &other)
Definition: HoughPeak.cxx:15
void printAllHit() const
Definition: HoughPeak.cxx:91
int collectHits(const HoughHitList &)
Definition: HoughPeak.cxx:179
vector< const HoughHit * > getHoughHitList() const
int getHitNumA(int) const
Definition: HoughPeak.cxx:128
void print()