BOSS 8.0.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 IMdcCalibFunSvc *calibSvc)
static void setMdcGeomSvc (IMdcGeomSvc *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 11 of file HoughRecHit.cxx.

11: HoughHit() { _p_hough2D = NULL; }

Referenced by HoughRecHit(), and operator=().

◆ HoughRecHit() [2/4]

HoughRecHit::HoughRecHit ( const HoughRecHit & other)

Definition at line 34 of file HoughRecHit.cxx.

34 : 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}
Index other(Index i, Index j)

◆ HoughRecHit() [3/4]

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

Definition at line 52 of file HoughRecHit.cxx.

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

◆ HoughRecHit() [4/4]

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

Definition at line 58 of file HoughRecHit.cxx.

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}

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 13 of file HoughRecHit.cxx.

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

◆ setAmb()

void HoughRecHit::setAmb ( int i)

Definition at line 72 of file HoughRecHit.cxx.

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

◆ 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; }

◆ 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; }

◆ 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: