BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
HoughRecHit Class Reference

#include <HoughRecHit.h>

+ Inheritance diagram for HoughRecHit:

Public Member Functions

 HoughRecHit ()
 
 HoughRecHit (const HoughRecHit &other)
 
HoughRecHitoperator= (const HoughRecHit &other)
 
 HoughRecHit (const MdcDigi *const digi, double disToTrack, double disToCir, int flagLs)
 
 HoughRecHit (const HoughHit &houghhit, double disToTrack, double disToCir, int flagLs)
 
Hough2DgetPtr2D () const
 
double getDisToTrack () const
 
double getDisToCir () const
 
std::pair< double, double > getRet () const
 
double getzPos () const
 
double getsPos () const
 
double getzAmb (int i) const
 
double getsAmb (int i) const
 
double getAmbig () const
 
int getflag () const
 
int getnsol () const
 
void setPtr2D (Hough2D *p_hough2D)
 
void setDisToTrack (double dis)
 
void setDisToCir (double dis)
 
void setRet (std::pair< double, double > theta_l)
 
void setzPos (double zPos)
 
void setsPos (double sPos)
 
void setzAmb (int i, double zPos)
 
void setsAmb (int i, double sPos)
 
void setflag (int i)
 
void setnsol (int i)
 
void setAmb (int i)
 
- Public Member Functions inherited from HoughHit
 HoughHit ()
 
 HoughHit (const MdcDigi *const digi)
 
 HoughHit (const HoughHit &other)
 
HoughHitoperator= (const HoughHit &other)
 
void setTruthInfo (const MdcMcHit *&mcHit)
 
void conformalTrans (double x, double y, double r)
 
double getConformal_u (double, double, double)
 
double getConformal_v (double, double, double)
 
double getConformal_r (double, double, double)
 
void makeCir (int n, double phi_begin, double phi_last, double r)
 
CFCir getCir (int i) const
 
HoughHitType type () const
 
detectorType getDetectorType () const
 
const MdcDigidigi () const
 
double getBunchTime () const
 
HepPoint3D getMidPoint () const
 
HepPoint3D getEastPoint () const
 
HepPoint3D getWestPoint () const
 
double getMidX () const
 
double getMidY () const
 
int getLayerId () const
 
int getWireId () const
 
int getSlayerType () const
 
const MdcLayerlayer () const
 
const MdcSWirewire () const
 
double getCharge () const
 
double getDriftTime () const
 
double getDriftDist () const
 
double getU () const
 
double getV () const
 
double getR () const
 
double getDeltaD () const
 
double getFltLen () const
 
double driftTime () const
 
double driftTime (double tof, double z) const
 
double calDriftDist (double, int, double, double, double) const
 
double calDriftDist (double bunchTime, int ambig) const
 
int slayerType (int layer)
 
double getXTruth () const
 
double getYTruth () const
 
double getZTruth () const
 
double getDriftDistTruth () const
 
int getIdTruth () const
 
int getLrTruth () const
 
double getUTruth () const
 
double getVTruth () const
 
double getRTruth () const
 
HepPoint3D getPointTruth () const
 
void setDeltaD (double d)
 
void setFltLen (double flt)
 
int getCirList () const
 
int getStyle () const
 
void setCirList (int cir)
 
void setStyle (int sty)
 
void print () const
 
void printAll () const
 
void printTruth () const
 

Additional Inherited Members

- Static Public Member Functions inherited from HoughHit
static void setMdcCalibFunSvc (const MdcCalibFunSvc *calibSvc)
 
static void setMdcGeomSvc (MdcGeomSvc *geomSvc)
 
static void setBunchTime (double t0)
 
- Static Public Attributes inherited from HoughHit
static int _npart =360
 

Detailed Description

Definition at line 6 of file HoughRecHit.h.

Constructor & Destructor Documentation

◆ HoughRecHit() [1/4]

HoughRecHit::HoughRecHit ( )

Definition at line 10 of file HoughRecHit.cxx.

10 :HoughHit(){
11 _p_hough2D=NULL;
12}
#define NULL
HoughHit()
Definition: HoughHit.cxx:19

◆ HoughRecHit() [2/4]

HoughRecHit::HoughRecHit ( const HoughRecHit other)

Definition at line 31 of file HoughRecHit.cxx.

31 :HoughHit( other) {
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}
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

◆ HoughRecHit() [3/4]

HoughRecHit::HoughRecHit ( const MdcDigi *const  digi,
double  disToTrack,
double  disToCir,
int  flagLs 
)

Definition at line 45 of file HoughRecHit.cxx.

45 :HoughHit(digi),_disToTrack(disToTrack),_disToCir(disToCir),_flagLS(flagLS) {
46 _p_hough2D=NULL;
47}
const MdcDigi * digi() const
Definition: HoughHit.h:55

◆ HoughRecHit() [4/4]

HoughRecHit::HoughRecHit ( const HoughHit houghhit,
double  disToTrack,
double  disToCir,
int  flagLs 
)

Definition at line 49 of file HoughRecHit.cxx.

49 :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}

Member Function Documentation

◆ getAmbig()

double HoughRecHit::getAmbig ( ) const
inline

Definition at line 22 of file HoughRecHit.h.

22{return _ambig;}

◆ getDisToCir()

double HoughRecHit::getDisToCir ( ) const
inline

Definition at line 16 of file HoughRecHit.h.

16{return _disToCir;}

◆ getDisToTrack()

double HoughRecHit::getDisToTrack ( ) const
inline

Definition at line 15 of file HoughRecHit.h.

15{return _disToTrack;}

◆ getflag()

int HoughRecHit::getflag ( ) const
inline

Definition at line 23 of file HoughRecHit.h.

23{return _flagLS;}

Referenced by HoughTrack::find_stereo_hit().

◆ getnsol()

int HoughRecHit::getnsol ( ) const
inline

Definition at line 24 of file HoughRecHit.h.

24{return _n_sol;}

◆ getPtr2D()

Hough2D * HoughRecHit::getPtr2D ( ) const
inline

Definition at line 14 of file HoughRecHit.h.

14{return _p_hough2D;}

◆ getRet()

std::pair< double, double > HoughRecHit::getRet ( ) const
inline

Definition at line 17 of file HoughRecHit.h.

17{ return _theta_l; }

◆ getsAmb()

double HoughRecHit::getsAmb ( int  i) const
inline

Definition at line 21 of file HoughRecHit.h.

21{return _sAmb[i];}

◆ getsPos()

double HoughRecHit::getsPos ( ) const
inline

Definition at line 19 of file HoughRecHit.h.

19{return _sPos;}

◆ getzAmb()

double HoughRecHit::getzAmb ( int  i) const
inline

Definition at line 20 of file HoughRecHit.h.

20{return _zAmb[i];}

◆ getzPos()

double HoughRecHit::getzPos ( ) const
inline

Definition at line 18 of file HoughRecHit.h.

18{return _zPos;}

◆ operator=()

HoughRecHit & HoughRecHit::operator= ( const HoughRecHit other)

Definition at line 14 of file HoughRecHit.cxx.

14 {
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}
HoughHit & operator=(const HoughHit &other)
Definition: HoughHit.cxx:79

◆ setAmb()

void HoughRecHit::setAmb ( int  i)

Definition at line 57 of file HoughRecHit.cxx.

57 {
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}

◆ setDisToCir()

void HoughRecHit::setDisToCir ( double  dis)
inline

Definition at line 28 of file HoughRecHit.h.

28{_disToCir= dis;}

Referenced by HoughTrack::find_stereo_hit().

◆ setDisToTrack()

void HoughRecHit::setDisToTrack ( double  dis)
inline

Definition at line 27 of file HoughRecHit.h.

27{_disToTrack= dis;}

Referenced by HoughTrack::find_stereo_hit().

◆ setflag()

void HoughRecHit::setflag ( int  i)
inline

Definition at line 34 of file HoughRecHit.h.

34{_flagLS=i;}

Referenced by HoughTrack::find_stereo_hit(), and HoughTrack::HoughTrack().

◆ setnsol()

void HoughRecHit::setnsol ( int  i)
inline

Definition at line 35 of file HoughRecHit.h.

35{_n_sol=i;}

◆ setPtr2D()

void HoughRecHit::setPtr2D ( Hough2D p_hough2D)
inline

Definition at line 26 of file HoughRecHit.h.

26{_p_hough2D=p_hough2D;}

Referenced by HoughTrack::find_pair_hit(), HoughTrack::find_stereo_hit(), and HoughTrack::HoughTrack().

◆ setRet()

void HoughRecHit::setRet ( std::pair< double, double >  theta_l)
inline

Definition at line 29 of file HoughRecHit.h.

29{_theta_l=theta_l;}

Referenced by HoughTrack::find_stereo_hit().

◆ setsAmb()

void HoughRecHit::setsAmb ( int  i,
double  sPos 
)
inline

Definition at line 33 of file HoughRecHit.h.

33{_sAmb[i]=sPos;}

Referenced by HoughStereo::setRecHit().

◆ setsPos()

void HoughRecHit::setsPos ( double  sPos)
inline

Definition at line 31 of file HoughRecHit.h.

31{_sPos=sPos;}

◆ setzAmb()

void HoughRecHit::setzAmb ( int  i,
double  zPos 
)
inline

Definition at line 32 of file HoughRecHit.h.

32{_zAmb[i]=zPos;}

Referenced by HoughStereo::setRecHit().

◆ setzPos()

void HoughRecHit::setzPos ( double  zPos)
inline

Definition at line 30 of file HoughRecHit.h.

30{_zPos=zPos;}

The documentation for this class was generated from the following files: