BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MdcHoughFinder/MdcHoughFinder/Hough2D.h
Go to the documentation of this file.
1#ifndef Hough2D_H
2#define Hough2D_H
3
4#include <vector>
5#include "MdcData/MdcHit.h"
6#include "MdcHoughFinder/HoughHit.h"
7#include "MdcHoughFinder/HoughHitList.h"
8#include "MdcHoughFinder/HoughRecHit.h"
9#include "MdcHoughFinder/HoughGlobal.h"
10#include "MdcData/MdcRecoHitOnTrack.h"
11
12#include "TrkFitter/TrkContextEv.h"
13#include "BField/BField.h"
14#include "MdcGeom/MdcDetector.h"
15#include "TrkBase/TrkFit.h"
16#include "TrkBase/TrkHitList.h"
17#include "TrkBase/TrkExchangePar.h"
18#include "TrkFitter/TrkHelixMaker.h"
19#include "TrkFitter/TrkCircleMaker.h"
20#include "TrkFitter/TrkLineMaker.h"
21//typedef std::vector<const HoughHit*> HitPtrCol;
22typedef std::vector<HoughRecHit> recHitCol;
23
24class Hough2D{
25 public:
26 Hough2D();
27// ~Hough2D();
28 Hough2D(const Hough2D& other);
29// Hough2D(double d0,double phi0,double omega,recHitCol recHitVec);
30 //Hough2D(HitPtrCol hitCol,double bunchtime);
31 Hough2D(recHitCol hitCol,double bunchtime);
32 TrkRecoTrk* getTrk() const {return newTrack;}
33 double getCirX() const {return _circleX;}
34 double getCirY() const {return _circleY;}
35 double getCirR() const {return _circleR;}
36 double getD0() const {return _d0;}
37 double getPhi0() const {return _phi0;}
38 double getOmega() const {return _omega;}
39 int getCharge() const {return _charge;}
40// vector<MdcHit*>& getVecForClean() {return vec_for_clean;}
41
42 void setCharge(int charge) {_charge=charge;}
43 void setCirX(double cirx ) {_circleX=cirx;}
44 void setCirY(double ciry ) {_circleY=ciry;}
45 void setCirR(double cirr ) {_circleR=cirr;}
46
47 void setD0(double d0) {_d0=d0;}
48 void setPhi0(double phi0) {_phi0=phi0;}
49 void setOmega(double omega) {_omega=omega;}
50 void setPt(double pt) {_pt=pt;}
51
52 void setBunchT0(double bunchT0) {_bunchT0=bunchT0;}
53 void setRecHit(const recHitCol& rechit) {_recHitVec=rechit;}
54 static void setContext(TrkContextEv* context) {_context=context;}
55 static void setCalib(const MdcCalibFunSvc *mdcCalibFunSvc) {_mdcCalibFunSvc=mdcCalibFunSvc;}
56
57 int fitLeast();
58 virtual int fit();
59 //virtual int digiToHots(TrkRecoTrk *newTrack);
60 void print();
61 void printRecHit() const;
62 double getNfit() const {return _nfit;}
63 double getChi2_2D() const {return _chi2_aver2D;}
64 //int initial_det();
65 double getPt() const {return _pt;}
66 static int m_debug;
69
70 //fit status
71 static int m_qualityFactor;
72 static double m_dropTrkChi2Cut;
73 static double m_dropTrkDrCut;
74 static double m_dropTrkDzCut;
75 static double m_dropTrkNhitCut;
76 static double m_dropTrkChi2NdfCut;
77
78 private:
79 double _circleR_least;
80 double _circleX_least;
81 double _circleY_least;
82 double _pt_least;
83
84 double _circleR;
85 double _circleX;
86 double _circleY;
87
88 int _charge;
89 double _d0;
90 double _phi0;
91 double _omega;
92
93 double _pt;
94 double _nfit;
95 double _chi2_aver2D;
96
97 double _bunchT0;
98// const MdcDetector* _m_gm;
99 recHitCol _recHitVec;
100 TrkRecoTrk* newTrack;
101 vector<MdcHit*> _MdcHitCol;
102
103};
104
105#endif
std::vector< HoughRecHit > recHitCol
static void setContext(TrkContextEv *context)
int fitLeast()
Definition: Hough2D.cxx:68
void printRecHit() const
Hough2D()
Definition: Hough2D.cxx:14
void print()
Definition: Hough2D.cxx:341
virtual int fit()
Definition: Hough2D.cxx:136
static void setCalib(const MdcCalibFunSvc *mdcCalibFunSvc)
float charge