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