CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughZsFit.h
Go to the documentation of this file.
1#ifndef HoughZsFit_H
2#define HoughZsFit_H
3#include "MdcHoughFinder/HoughStereo.h"
4class HoughZsFit
5{
6 public:
7 HoughZsFit(vector<HoughRecHit>* recHitCol);
9// typedef std::pair<double,double> Point;
10 struct Line{
11 double _k;
12 double _b;
13 double _chi;
14 //std::vector<HoughRecHit> _recCol;
15 std::vector<HoughRecHit> _pointCol;
16 std::vector<int> _ambig;
17 std::vector<HoughRecHit*> _clusterCol;
18 };
19 void leastFit(Line &linefit, int N);
20 int leastLine(int ,double x[],double y[],double &,double &,double& );
21 void doit();
22 void initPoint();
23 double getTanl() const {return _tanl;}
24 double getZ0() const {return _z0;}
25 double getPro() const {return _pro_correct;}
26 void sortHit();
27 void print();
28 static int m_debug;
29 static int m_recMethod;
30 static double m_factor;
31 static int m_nPoint3D;
32 int cgemfit();
33 void hough();
34 static void setmethod( int m){m_recMethod = m;}
35 static vector<double> m_cut_deltaZ;
36
37 private:
38 vector<HoughRecHit*> _recStereoHit;
39// Point** _vecPoint;
40 int _hitSize;
41 double _k;
42 double _b;
43 double _chi;
44// int _ambig;
45 double _z0;
46 double _tanl;
47 double _pro_correct;
48 vector<HoughRecHit*> _cgemCluster[3];
49
50};
51bool compare_zsfit(const HoughZsFit::Line& a,const HoughZsFit::Line& b);
52bool layer_in_track(const HoughRecHit* hita,const HoughRecHit* hitb);
53#endif
std::vector< HoughRecHit > recHitCol
bool layer_in_track(const HoughRecHit *hita, const HoughRecHit *hitb)
Definition: HoughZsFit.cxx:448
bool compare_zsfit(const HoughZsFit::Line &a, const HoughZsFit::Line &b)
Definition: HoughZsFit.cxx:416
HoughZsFit(vector< HoughRecHit > *recHitCol)
int leastLine(int, double x[], double y[], double &, double &, double &)
void doit()
void initPoint()
void hough()
void print()
int cgemfit()
void leastFit(Line &linefit, int N)
void sortHit()