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