BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
HoughRecHit.cxx
Go to the documentation of this file.
1#include "MdcHoughFinder/HoughRecHit.h"
2//HoughRecHit::HoughRecHit():HoughHit(digi){
3//}
4//HoughRecHit::HoughRecHit(const MdcDigi*& digi):HoughHit(digi){
5//// _flagLS=true;
6//}
7//HoughRecHit::HoughRecHit(const MdcDigi*& digi,double disToTrack):HoughHit(digi),_disToTrack(disToTrack) {
8// // _flagLS=true;
9//}
11 _p_hough2D=NULL;
12}
13
16 if(this==&other) return *this;
17 _p_hough2D=other._p_hough2D;
18 _disToTrack=(other._disToTrack);
19 _disToCir=(other._disToCir);
20 _theta_l=(other._theta_l);
21 _ambig=(other._ambig);
22 _zPos=(other._zPos); _sPos=(other._sPos);
23 _zAmb[0]=(other._zAmb[0]); _zAmb[1]=(other._zAmb[1]);
24 _sAmb[0]=(other._sAmb[0]); _sAmb[1]=(other._sAmb[1]);
25 _flagLS=(other._flagLS);
26 _n_sol=(other._n_sol);
27 // cout<<"in rechit ambig truth copy ("<<this->getLayerId()<<","<<this->getWireId()<<") " <<this->getLrTruth()<<endl;
28 return *this;
29}
30
32 _p_hough2D=other._p_hough2D;
33 _disToTrack=(other._disToTrack);
34 _disToCir=(other._disToCir);
35 _theta_l=(other._theta_l);
36 _ambig=(other._ambig);
37 _zPos=(other._zPos); _sPos=(other._sPos);
38 _zAmb[0]=(other._zAmb[0]); _zAmb[1]=(other._zAmb[1]);
39 _sAmb[0]=(other._sAmb[0]); _sAmb[1]=(other._sAmb[1]);
40 _flagLS=(other._flagLS);
41 _n_sol=(other._n_sol);
42// cout<<"in rechit ambig truth = ("<<this->getLayerId()<<","<<this->getWireId()<<") " <<this->getLrTruth()<<endl;
43}
44
45HoughRecHit::HoughRecHit(const MdcDigi* const digi,double disToTrack,double disToCir,int flagLS):HoughHit(digi),_disToTrack(disToTrack),_disToCir(disToCir),_flagLS(flagLS) {
46 _p_hough2D=NULL;
47}
48
49HoughRecHit::HoughRecHit(const HoughHit& houghhit,double disToTrack,double disToCir,int flagLS):HoughHit(houghhit),_disToTrack(disToTrack),_disToCir(disToCir),_flagLS(flagLS) {
50 //this->_cirlist= houghhit.getCirList();
51 //this->_style= houghhit.getStyle();
52 _p_hough2D=NULL;
53 _ambig=-999;
54 _zPos=-999;
55 _sPos=-999;
56}
58 _ambig=i;
59 if( 0 == i) {
60 _zPos=_zAmb[0];
61 _sPos=_sAmb[0];
62 }
63 if( 1 == i) {
64 _zPos=_zAmb[1];
65 _sPos=_sAmb[1];
66 }
67 if( -999 == i) {
68 _zPos=-999;
69 _sPos=-999;
70 }
71}
HoughHit & operator=(const HoughHit &other)
Definition: HoughHit.cxx:79
HoughRecHit & operator=(const HoughRecHit &other)
Definition: HoughRecHit.cxx:14
void setAmb(int i)
Definition: HoughRecHit.cxx:57