BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
HoughZsFit.h
Go to the documentation of this file.
1#ifndef HoughZsFit_H
2#define HoughZsFit_H
3#include "HoughStereo.h"
4class HoughZsFit {
5public:
6 HoughZsFit( vector<HoughRecHit>* recHitCol );
8 // typedef std::pair<double,double> Point;
9 struct Line {
10 double _k;
11 double _b;
12 double _chi;
13 // std::vector<HoughRecHit> _recCol;
14 std::vector<HoughRecHit> _pointCol;
15 std::vector<int> _ambig;
16 };
17 void leastFit( Line& linefit, int N );
18 int leastLine( int, double x[], double y[], double&, double&, double& );
19 void doit();
20 void initPoint();
21 double getTanl() const { return _tanl; }
22 double getZ0() const { return _z0; }
23 double getPro() const { return _pro_correct; }
24 void sortHit();
25 void print();
26 static int m_debug;
27
28private:
29 vector<HoughRecHit*> _recStereoHit;
30 // Point** _vecPoint;
31 int _hitSize;
32 double _k;
33 double _b;
34 double _chi;
35 // int _ambig;
36 double _z0;
37 double _tanl;
38 double _pro_correct;
39};
40bool compare_zsfit( const HoughZsFit::Line& a, const HoughZsFit::Line& b );
41bool layer_in_track( const HoughRecHit* hita, const HoughRecHit* hitb );
42#endif
std::vector< HoughRecHit > recHitCol
Definition Hough2D.h:22
bool layer_in_track(const HoughRecHit *hita, const HoughRecHit *hitb)
bool compare_zsfit(const HoughZsFit::Line &a, const HoughZsFit::Line &b)
HoughZsFit(vector< HoughRecHit > *recHitCol)
int leastLine(int, double x[], double y[], double &, double &, double &)
void doit()
double getPro() const
Definition HoughZsFit.h:23
void initPoint()
double getTanl() const
Definition HoughZsFit.h:21
double getZ0() const
Definition HoughZsFit.h:22
static int m_debug
Definition HoughZsFit.h:26
void leastFit(Line &linefit, int N)
void sortHit()
std::vector< int > _ambig
Definition HoughZsFit.h:15
std::vector< HoughRecHit > _pointCol
Definition HoughZsFit.h:14