BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-13/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 };
18 void leastFit(Line &linefit, int N);
19 int leastLine(int ,double x[],double y[],double &,double &,double& );
20 void doit();
21 void initPoint();
22 double getTanl() const {return _tanl;}
23 double getZ0() const {return _z0;}
24 double getPro() const {return _pro_correct;}
25 void sortHit();
26 void print();
27 static int m_debug;
28
29 private:
30 vector<HoughRecHit*> _recStereoHit;
31// Point** _vecPoint;
32 int _hitSize;
33 double _k;
34 double _b;
35 double _chi;
36// int _ambig;
37 double _z0;
38 double _tanl;
39 double _pro_correct;
40};
41bool compare_zsfit(const HoughZsFit::Line& a,const HoughZsFit::Line& b);
42bool layer_in_track(const HoughRecHit* hita,const HoughRecHit* hitb);
43#endif
std::vector< HoughRecHit > recHitCol
bool layer_in_track(const HoughRecHit *hita, const HoughRecHit *hitb)
Definition: HoughZsFit.cxx:364
bool compare_zsfit(const HoughZsFit::Line &a, const HoughZsFit::Line &b)
Definition: HoughZsFit.cxx:332
HoughZsFit(vector< HoughRecHit > *recHitCol)
int leastLine(int, double x[], double y[], double &, double &, double &)
void doit()
void initPoint()
void print()
void leastFit(Line &linefit, int N)
void sortHit()