BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcHit Class Reference

#include <MdcHit.h>

Inheritance diagram for MdcHit:

Public Member Functions

 MdcHit (const MdcDigi *&digi, const MdcDetector *&det)
 MdcHit (const MdcHit &)
virtual ~MdcHit ()
MdcHitoperator= (const MdcHit &)
bool operator== (const MdcHit &) const
const MdcDigidigi () const
const MdcLayerlayer () const
const MdcSWirewire () const
const MdcDetectorgeom () const
const IMdcCalibFunSvccalibSvc () const
Identifier mdcId () const
unsigned layernumber () const
unsigned wirenumber () const
unsigned tdcIndex () const
unsigned adcIndex () const
double charge () const
double rawTime () const
double driftTime (double tof, double z) const
double driftDist (double, int, double, double, double) const
double driftDist (double bunchTime, int ambig) const
double sigma (double, int, double, double, double) const
double sigma (double driftdist, int ambig=0) const
int whichView () const
const TrajectoryhitTraj () const
TrkEnums::TrkViewInfo whatView () const
double phi () const
double x () const
double y () const
const double phi (double z) const
double x (double z) const
double y (double z) const
double rMid () const
double zlen () const
unsigned status () const
void setCalibSvc (const IMdcCalibFunSvc *calibSvc)
void setCountPropTime (const bool count)
void setCosmicFit (const bool cosmicfit)
bool isCosmicFit () const
void print (std::ostream &o) const
void printAll (std::ostream &o) const
 MdcHit (const MdcDigi *&digi, const MdcDetector *&det)
 MdcHit (const MdcHit &)
virtual ~MdcHit ()
MdcHitoperator= (const MdcHit &)
bool operator== (const MdcHit &) const
const MdcDigidigi () const
const MdcLayerlayer () const
const MdcSWirewire () const
const MdcDetectorgeom () const
const IMdcCalibFunSvccalibSvc () const
Identifier mdcId () const
unsigned layernumber () const
unsigned wirenumber () const
unsigned tdcIndex () const
unsigned adcIndex () const
double charge () const
double rawTime () const
double driftTime (double tof, double z) const
double driftDist (double, int, double, double, double) const
double driftDist (double bunchTime, int ambig) const
double sigma (double, int, double, double, double) const
double sigma (double driftdist, int ambig=0) const
int whichView () const
const TrajectoryhitTraj () const
TrkEnums::TrkViewInfo whatView () const
double phi () const
double x () const
double y () const
const double phi (double z) const
double x (double z) const
double y (double z) const
double rMid () const
double zlen () const
unsigned status () const
void setCalibSvc (const IMdcCalibFunSvc *calibSvc)
void setCountPropTime (const bool count)
void setCosmicFit (const bool cosmicfit)
bool isCosmicFit () const
void print (std::ostream &o) const
void printAll (std::ostream &o) const
 MdcHit (const MdcDigi *&digi, const MdcDetector *&det)
 MdcHit (const MdcHit &)
virtual ~MdcHit ()
MdcHitoperator= (const MdcHit &)
bool operator== (const MdcHit &) const
const MdcDigidigi () const
const MdcLayerlayer () const
const MdcSWirewire () const
const MdcDetectorgeom () const
const IMdcCalibFunSvccalibSvc () const
Identifier mdcId () const
unsigned layernumber () const
unsigned wirenumber () const
unsigned tdcIndex () const
unsigned adcIndex () const
double charge () const
double rawTime () const
double driftTime (double tof, double z) const
double driftDist (double, int, double, double, double) const
double driftDist (double bunchTime, int ambig) const
double sigma (double, int, double, double, double) const
double sigma (double driftdist, int ambig=0) const
int whichView () const
const TrajectoryhitTraj () const
TrkEnums::TrkViewInfo whatView () const
double phi () const
double x () const
double y () const
const double phi (double z) const
double x (double z) const
double y (double z) const
double rMid () const
double zlen () const
unsigned status () const
void setCalibSvc (const IMdcCalibFunSvc *calibSvc)
void setCountPropTime (const bool count)
void setCosmicFit (const bool cosmicfit)
bool isCosmicFit () const
void print (std::ostream &o) const
void printAll (std::ostream &o) const
Public Member Functions inherited from TrkFundHit
 TrkFundHit ()
virtual ~TrkFundHit ()
int nUsedHits () const
bool usedHit (void) const
std::pair< TrkFundHit::hot_iterator, TrkFundHit::hot_iteratorgetUsedHits () const
TrkFundHit::hot_iterator begin () const
TrkFundHit::hot_iterator end () const
bool usedOnTrack (const TrkRecoTrk *t) const
const TrkHitOnTrkgetHitOnTrack (const TrkRecoTrk *trk) const
const TrkHitOnTrksetUsedHit (const TrkHitOnTrk *hit)
const TrkHitOnTrksetUnusedHit (const TrkHitOnTrk *hit)
 TrkFundHit ()
virtual ~TrkFundHit ()
int nUsedHits () const
bool usedHit (void) const
std::pair< TrkFundHit::hot_iterator, TrkFundHit::hot_iteratorgetUsedHits () const
TrkFundHit::hot_iterator begin () const
TrkFundHit::hot_iterator end () const
bool usedOnTrack (const TrkRecoTrk *t) const
const TrkHitOnTrkgetHitOnTrack (const TrkRecoTrk *trk) const
const TrkHitOnTrksetUsedHit (const TrkHitOnTrk *hit)
const TrkHitOnTrksetUnusedHit (const TrkHitOnTrk *hit)
 TrkFundHit ()
virtual ~TrkFundHit ()
int nUsedHits () const
bool usedHit (void) const
std::pair< TrkFundHit::hot_iterator, TrkFundHit::hot_iteratorgetUsedHits () const
TrkFundHit::hot_iterator begin () const
TrkFundHit::hot_iterator end () const
bool usedOnTrack (const TrkRecoTrk *t) const
const TrkHitOnTrkgetHitOnTrack (const TrkRecoTrk *trk) const
const TrkHitOnTrksetUsedHit (const TrkHitOnTrk *hit)
const TrkHitOnTrksetUnusedHit (const TrkHitOnTrk *hit)

Friends

class MdcMakeHits

Additional Inherited Members

Public Types inherited from TrkFundHit
typedef TrkHitOnTrkIter< TrkFundHithot_iterator
typedef TrkHitOnTrkIter< TrkFundHithot_iterator
typedef TrkHitOnTrkIter< TrkFundHithot_iterator
Protected Types inherited from TrkFundHit
typedef std::vector< constTrkHitOnTrk * >::iterator iterator_implementation
typedef const TrkHitOnTrk iterator_value_type
typedef std::vector< constTrkHitOnTrk * >::iterator iterator_implementation
typedef const TrkHitOnTrk iterator_value_type
typedef std::vector< constTrkHitOnTrk * >::iterator iterator_implementation
typedef const TrkHitOnTrk iterator_value_type
Protected Member Functions inherited from TrkFundHit
TrkFundHitoperator= (const TrkFundHit &)
TrkFundHitoperator= (const TrkFundHit &)
TrkFundHitoperator= (const TrkFundHit &)
Protected Attributes inherited from TrkFundHit
std::vector< const TrkHitOnTrk * > _hitList

Detailed Description

Constructor & Destructor Documentation

◆ MdcHit() [1/6]

MdcHit::MdcHit ( const MdcDigi *& digi,
const MdcDetector *& det )

Definition at line 33 of file MdcHit.cxx.

34 : TrkFundHit(), _digiPtr( aDigi ), _geomPtr( det ) {
35 _digiPtr = aDigi;
36 _geomPtr = det;
37 assert( _digiPtr != NULL );
38 assert( _geomPtr != NULL );
39 _id = aDigi->identify();
40 _layerPtr = det->Layer( _id );
41 _wirePtr = det->Wire( _id );
42 assert( _layerPtr != NULL );
43 assert( _wirePtr != NULL );
44 m_mdcCalibFunSvc = NULL;
45 _layer = MdcID::layer( _id );
46 _wire = MdcID::wire( _id );
47 _iTdc = _digiPtr->getTimeChannel();
48 _iAdc = _digiPtr->getChargeChannel();
49 _rawTime = RawDataUtil::MdcTime( _iTdc );
50 _charge = RawDataUtil::MdcCharge( _iAdc );
51 _rmid = _wirePtr->rMid();
52 _zlen = _layerPtr->zLength();
53 _phi = _wirePtr->phi();
54 _cosphi = cos( _phi );
55 _sinphi = sin( _phi );
56 _status = 0;
57}
static int layer(const Identifier &id)
Values of different levels (failure returns 0).
Definition MdcID.cxx:47
static int wire(const Identifier &id)
Definition MdcID.cxx:52
static double MdcTime(int timeChannel)
static double MdcCharge(int chargeChannel)

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

◆ MdcHit() [2/6]

MdcHit::MdcHit ( const MdcHit & other)

Definition at line 59 of file MdcHit.cxx.

60 : TrkFundHit()
61 , _digiPtr( other._digiPtr )
62 , _geomPtr( other._geomPtr )
63 , _layerPtr( other._layerPtr )
64 , _wirePtr( other._wirePtr )
65 , _id( other._id )
66 , _layer( other._layer )
67 , _wire( other._wire )
68 , _iTdc( other._iTdc )
69 , _iAdc( other._iAdc )
70 , _rawTime( other._rawTime )
71 , _charge( other._charge )
72 , _rmid( other._rmid )
73 , _zlen( other._zlen )
74 , _phi( other._phi )
75 , _cosphi( other._cosphi )
76 , _sinphi( other._sinphi )
77 , _status( other._status )
78 , _T0Walk( other._T0Walk ) {
79 m_mdcCalibFunSvc = other.m_mdcCalibFunSvc;
80}
Index other(Index i, Index j)

◆ ~MdcHit() [1/3]

MdcHit::~MdcHit ( )
virtual

Definition at line 110 of file MdcHit.cxx.

110 {
111 // This is ugly and inefficient. This, along with the rest of
112 // the hitList mess, should be cleaned up by handling the
113 // association in an external map
114
115 // Not written as a loop because removeHit() modifies TrkFundHit::_hitList
116 short count = 0;
117 while ( nUsedHits() > count )
118 {
119 bool removed = _hitList[count]->parentTrack()->hits()->removeHit( this );
120 if ( !removed ) count++;
121 }
122}
DOUBLE_PRECISION count[3]
int nUsedHits() const

◆ MdcHit() [3/6]

MdcHit::MdcHit ( const MdcDigi *& digi,
const MdcDetector *& det )

◆ MdcHit() [4/6]

MdcHit::MdcHit ( const MdcHit & )

◆ ~MdcHit() [2/3]

virtual MdcHit::~MdcHit ( )
virtual

◆ MdcHit() [5/6]

MdcHit::MdcHit ( const MdcDigi *& digi,
const MdcDetector *& det )

◆ MdcHit() [6/6]

MdcHit::MdcHit ( const MdcHit & )

◆ ~MdcHit() [3/3]

virtual MdcHit::~MdcHit ( )
virtual

Member Function Documentation

◆ adcIndex() [1/3]

unsigned MdcHit::adcIndex ( ) const
inline

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

62{ return _iAdc; }

Referenced by MdcTrack::storeTrack().

◆ adcIndex() [2/3]

unsigned MdcHit::adcIndex ( ) const
inline

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

62{ return _iAdc; }

◆ adcIndex() [3/3]

unsigned MdcHit::adcIndex ( ) const
inline

Definition at line 62 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

62{ return _iAdc; }

◆ calibSvc() [1/3]

const IMdcCalibFunSvc * MdcHit::calibSvc ( ) const
inline

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

57{ return m_mdcCalibFunSvc; }

Referenced by setCalibSvc().

◆ calibSvc() [2/3]

const IMdcCalibFunSvc * MdcHit::calibSvc ( ) const
inline

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

57{ return m_mdcCalibFunSvc; }

◆ calibSvc() [3/3]

const IMdcCalibFunSvc * MdcHit::calibSvc ( ) const
inline

Definition at line 57 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

57{ return m_mdcCalibFunSvc; }

◆ charge() [1/3]

double MdcHit::charge ( ) const
inline

Definition at line 63 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

63{ return _charge; }

Referenced by MdcTrkRecon::fillTrackList().

◆ charge() [2/3]

double MdcHit::charge ( ) const
inline

Definition at line 63 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

63{ return _charge; }

◆ charge() [3/3]

double MdcHit::charge ( ) const
inline

Definition at line 63 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

63{ return _charge; }

◆ digi() [1/3]

const MdcDigi * MdcHit::digi ( ) const
inline

Definition at line 53 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

53{ return _digiPtr; }

Referenced by MdcHit(), MdcTrackList::pickHits(), and MdcTrack::storeTrack().

◆ digi() [2/3]

const MdcDigi * MdcHit::digi ( ) const
inline

Definition at line 53 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

53{ return _digiPtr; }

◆ digi() [3/3]

const MdcDigi * MdcHit::digi ( ) const
inline

Definition at line 53 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

53{ return _digiPtr; }

◆ driftDist() [1/6]

double MdcHit::driftDist ( double bunchTime,
int ambig ) const

Definition at line 179 of file MdcHit.cxx.

179 {
180 return driftDist( bunchTime + crudeTof(), ambig, 0., 0., 0. );
181}
double driftDist(double, int, double, double, double) const
Definition MdcHit.cxx:157

◆ driftDist() [2/6]

double MdcHit::driftDist ( double bunchTime,
int ambig ) const

◆ driftDist() [3/6]

double MdcHit::driftDist ( double bunchTime,
int ambig ) const

◆ driftDist() [4/6]

double MdcHit::driftDist ( double tof,
int ambig,
double entranceAngle,
double ,
double z ) const

Definition at line 157 of file MdcHit.cxx.

158 {
159 double driftD;
160 // drift time ns, layer id begin with 0, entrance angle rads,
161 // lr ambig: wire ambig 1,-1,0 -> Calib 0,1,2
162 int lrCalib = 2;
163 if ( ambig == 1 ) lrCalib = 0;
164 else if ( ambig == -1 ) lrCalib = 1;
165
166 // tof in s, driftDist in cm, dirftTime in ns
167 if ( fabs( z ) > 150. || fabs( driftTime( tof, z ) ) > 1500. ) { return 9999.; }
168 driftD = 0.1 * m_mdcCalibFunSvc->driftTimeToDist( driftTime( tof, z ), _layer, _wire,
169 lrCalib, entranceAngle ); // to cm
170 // std::cout<<"driftDist "<<"("<<_layer <<","<<_wire <<") dd "<<driftD<<" dt
171 // "<<driftTime(tof,z) <<" lr "<<lrCalib <<" eAng "<<entranceAngle <<" tof "<<tof*1.e9<<" z
172 // "<<z <<" t0walk "<<_T0Walk<<" rawT "<<_rawTime <<" tprop "<< _rawTime - driftTime(tof,z)-
173 // _T0Walk-1.e9*tof<<std::endl;
174
175 if ( abs( driftD ) < Constants::epsilon ) driftD = 0.00001;
176 return driftD;
177}
double driftTime(double tof, double z) const
Definition MdcHit.cxx:142

Referenced by driftDist(), MdcxCosmicSewer::execute(), Hough2D::fit(), Hough3D::fit(), MdcTrackList::pickHits(), and MdcSegInfoSterO::zPosition().

◆ driftDist() [5/6]

double MdcHit::driftDist ( double ,
int ,
double ,
double ,
double  ) const

◆ driftDist() [6/6]

double MdcHit::driftDist ( double ,
int ,
double ,
double ,
double  ) const

◆ driftTime() [1/3]

double MdcHit::driftTime ( double tof,
double z ) const

Definition at line 142 of file MdcHit.cxx.

142 {
143 // t prop
144 double tprop = 0.;
145 if ( m_countPropTime ) { tprop = m_mdcCalibFunSvc->getTprop( _layer, z * 10. ); }
146
147 // tof in s, driftTime in ns, _T0Walk in ns
148 double driftT = _rawTime - _T0Walk - 1.e9 * tof - tprop;
149
150 // if(driftT >10000)
151 // std::cout<< "driftTime ("<<_layer<<","<<_wire<<") dt "<<driftT<<" rawTime "<<_rawTime<<" z
152 // "<<z<<" tprop "<<tprop
153 // <<" t0walk "<<_T0Walk<<" tof "<<1.e9*tof<< std::endl;//yzhang debug
154 return driftT;
155}

Referenced by driftDist(), MdcTrackList::dropMultiHotInLayer(), MdcTrkRecon::fillTrackList(), Hough2D::fit(), Hough3D::fit(), and MdcTrack::storeTrack().

◆ driftTime() [2/3]

double MdcHit::driftTime ( double tof,
double z ) const

◆ driftTime() [3/3]

double MdcHit::driftTime ( double tof,
double z ) const

◆ geom() [1/3]

const MdcDetector * MdcHit::geom ( ) const
inline

Definition at line 56 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

56{ return _geomPtr; }

◆ geom() [2/3]

const MdcDetector * MdcHit::geom ( ) const
inline

Definition at line 56 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

56{ return _geomPtr; }

◆ geom() [3/3]

const MdcDetector * MdcHit::geom ( ) const
inline

Definition at line 56 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

56{ return _geomPtr; }

◆ hitTraj() [1/3]

const Trajectory * MdcHit::hitTraj ( ) const

Definition at line 230 of file MdcHit.cxx.

230 {
231 return layer()->makeHitTrajInGlobalCoords( wirenumber(), 0.0 );
232}
const Trajectory * makeHitTrajInGlobalCoords(int wire, double z=0) const
Definition MdcLayer.cxx:90

◆ hitTraj() [2/3]

const Trajectory * MdcHit::hitTraj ( ) const

◆ hitTraj() [3/3]

const Trajectory * MdcHit::hitTraj ( ) const

◆ isCosmicFit() [1/3]

bool MdcHit::isCosmicFit ( ) const
inline

Definition at line 88 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

88{ return m_cosmicFit; }

◆ isCosmicFit() [2/3]

bool MdcHit::isCosmicFit ( ) const
inline

Definition at line 88 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

88{ return m_cosmicFit; }

◆ isCosmicFit() [3/3]

bool MdcHit::isCosmicFit ( ) const
inline

Definition at line 88 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

88{ return m_cosmicFit; }

◆ layer() [1/3]

const MdcLayer * MdcHit::layer ( ) const
inline

◆ layer() [2/3]

const MdcLayer * MdcHit::layer ( ) const
inline

Definition at line 54 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

54{ return _layerPtr; }

◆ layer() [3/3]

const MdcLayer * MdcHit::layer ( ) const
inline

Definition at line 54 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

54{ return _layerPtr; }

◆ layernumber() [1/3]

◆ layernumber() [2/3]

unsigned MdcHit::layernumber ( ) const
inline

Definition at line 59 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

59{ return _layer; }

◆ layernumber() [3/3]

unsigned MdcHit::layernumber ( ) const
inline

Definition at line 59 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

59{ return _layer; }

◆ mdcId() [1/3]

Identifier MdcHit::mdcId ( ) const
inline

Definition at line 58 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

58{ return _id; }

◆ mdcId() [2/3]

Identifier MdcHit::mdcId ( ) const
inline

Definition at line 58 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

58{ return _id; }

◆ mdcId() [3/3]

Identifier MdcHit::mdcId ( ) const
inline

Definition at line 58 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

58{ return _id; }

◆ operator=() [1/3]

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

Definition at line 82 of file MdcHit.cxx.

82 {
83 if ( &other != this )
84 {
85 _digiPtr = other._digiPtr;
86 _geomPtr = other._geomPtr;
87 _layerPtr = other._layerPtr;
88 _wirePtr = other._wirePtr;
89 m_mdcCalibFunSvc = other.m_mdcCalibFunSvc;
90 _id = other._id;
91 _layer = other._layer;
92 _wire = other._wire;
93 _iTdc = other._iTdc;
94 _iAdc = other._iAdc;
95 _rawTime = other._rawTime;
96 _charge = other._charge;
97 _digiPtr = other._digiPtr;
98 _rmid = other._rmid;
99 _zlen = other._zlen;
100 _phi = other._phi;
101 _cosphi = other._cosphi;
102 _sinphi = other._sinphi;
103 _status = other._status;
104 _T0Walk = other._T0Walk;
105 }
106 return *this;
107}

◆ operator=() [2/3]

MdcHit & MdcHit::operator= ( const MdcHit & )

◆ operator=() [3/3]

MdcHit & MdcHit::operator= ( const MdcHit & )

◆ operator==() [1/3]

bool MdcHit::operator== ( const MdcHit & rhs) const

Definition at line 124 of file MdcHit.cxx.

124{ return ( this == &rhs ); }

◆ operator==() [2/3]

bool MdcHit::operator== ( const MdcHit & ) const

◆ operator==() [3/3]

bool MdcHit::operator== ( const MdcHit & ) const

◆ phi() [1/6]

double MdcHit::phi ( ) const
inline

Definition at line 75 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

75{ return _phi; } // phi at chamber center

Referenced by MdcxCosmicSewer::execute(), and MdcTrackList::pickHits().

◆ phi() [2/6]

double MdcHit::phi ( ) const
inline

Definition at line 75 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

75{ return _phi; } // phi at chamber center

◆ phi() [3/6]

double MdcHit::phi ( ) const
inline

Definition at line 75 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

75{ return _phi; } // phi at chamber center

◆ phi() [4/6]

const double MdcHit::phi ( double z) const
inline

Definition at line 78 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

78{ return wire()->phiDC( z ); } // phi at z

◆ phi() [5/6]

const double MdcHit::phi ( double z) const
inline

Definition at line 78 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

78{ return wire()->phiDC( z ); } // phi at z

◆ phi() [6/6]

const double MdcHit::phi ( double z) const
inline

Definition at line 78 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

78{ return wire()->phiDC( z ); } // phi at z

◆ print() [1/3]

◆ print() [2/3]

void MdcHit::print ( std::ostream & o) const

◆ print() [3/3]

void MdcHit::print ( std::ostream & o) const

◆ printAll() [1/3]

void MdcHit::printAll ( std::ostream & o) const
virtual

Reimplemented from TrkFundHit.

◆ printAll() [2/3]

void MdcHit::printAll ( std::ostream & o) const
virtual

Reimplemented from TrkFundHit.

◆ printAll() [3/3]

void MdcHit::printAll ( std::ostream & o) const
virtual

Reimplemented from TrkFundHit.

◆ rawTime() [1/3]

double MdcHit::rawTime ( ) const
inline

Definition at line 64 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

64{ return _rawTime; }

Referenced by Hough2D::fit(), and Hough3D::fit().

◆ rawTime() [2/3]

double MdcHit::rawTime ( ) const
inline

Definition at line 64 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

64{ return _rawTime; }

◆ rawTime() [3/3]

double MdcHit::rawTime ( ) const
inline

Definition at line 64 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

64{ return _rawTime; }

◆ rMid() [1/3]

double MdcHit::rMid ( ) const
inline

Definition at line 81 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

81{ return _rmid; } // R at chamber center

◆ rMid() [2/3]

double MdcHit::rMid ( ) const
inline

Definition at line 81 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

81{ return _rmid; } // R at chamber center

◆ rMid() [3/3]

double MdcHit::rMid ( ) const
inline

Definition at line 81 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

81{ return _rmid; } // R at chamber center

◆ setCalibSvc() [1/3]

void MdcHit::setCalibSvc ( const IMdcCalibFunSvc * calibSvc)

Definition at line 136 of file MdcHit.cxx.

136 {
137 m_mdcCalibFunSvc = calibSvc;
138 _T0Walk = m_mdcCalibFunSvc->getT0( _layer, _wire ) +
139 m_mdcCalibFunSvc->getTimeWalk( _layer, _iAdc );
140}
const IMdcCalibFunSvc * calibSvc() const

Referenced by MdcMakeHits::execute(), MdcxCosmicSewer::execute(), Hough2D::fit(), Hough3D::fit(), and MdcxCosmicSewer::MdcxHitsToHots().

◆ setCalibSvc() [2/3]

void MdcHit::setCalibSvc ( const IMdcCalibFunSvc * calibSvc)

◆ setCalibSvc() [3/3]

void MdcHit::setCalibSvc ( const IMdcCalibFunSvc * calibSvc)

◆ setCosmicFit() [1/3]

void MdcHit::setCosmicFit ( const bool cosmicfit)
inline

◆ setCosmicFit() [2/3]

void MdcHit::setCosmicFit ( const bool cosmicfit)
inline

Definition at line 87 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

87{ m_cosmicFit = cosmicfit; }

◆ setCosmicFit() [3/3]

void MdcHit::setCosmicFit ( const bool cosmicfit)
inline

Definition at line 87 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

87{ m_cosmicFit = cosmicfit; }

◆ setCountPropTime() [1/3]

void MdcHit::setCountPropTime ( const bool count)
inline

◆ setCountPropTime() [2/3]

void MdcHit::setCountPropTime ( const bool count)
inline

Definition at line 86 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

86{ m_countPropTime = count; }

◆ setCountPropTime() [3/3]

void MdcHit::setCountPropTime ( const bool count)
inline

Definition at line 86 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

86{ m_countPropTime = count; }

◆ sigma() [1/6]

double MdcHit::sigma ( double driftdist,
int ambig = 0 ) const

Definition at line 226 of file MdcHit.cxx.

226 {
227 return sigma( driftdist, ambig, 0., 0., 0. ); // cm
228}
double sigma(double, int, double, double, double) const
Definition MdcHit.cxx:183

◆ sigma() [2/6]

double MdcHit::sigma ( double driftdist,
int ambig = 0 ) const

◆ sigma() [3/6]

double MdcHit::sigma ( double driftdist,
int ambig = 0 ) const

◆ sigma() [4/6]

double MdcHit::sigma ( double driftdist,
int ambig,
double entranceAngle,
double dipAngle,
double z ) const

Definition at line 183 of file MdcHit.cxx.

184 {
185 double sig = 9999.;
186
187#ifdef MDCPATREC_RESLAYER
188 if ( _layer == m_resLayer )
189 {
190 // give a huge sigma to skip this layer when fit track
191 return 9999.;
192 }
193#endif
194 // if(fabs(z)>150. || driftdist==9999. ) {
195 // return 9999.;
196 // }
197 if ( m_mdcCalibFunSvc )
198 {
199 // layid begin with 0, entrance angle in rads,
200 // distance: cm ->Calib mm //z: cm -> Calib mm
201 // Q: MonteCalo eV -> Calib fC FIXME
202 // lr ambig: wire ambig 1,-1,0 -> Calib 0,1,2
203 int lrCalib = 2;
204 if ( ambig == 1 ) lrCalib = 0;
205 else if ( ambig == -1 ) lrCalib = 1;
206
207 // std::cout<<"layer "<<_layer<< " lrCalib "<< lrCalib<< " driftdist "<< driftdist << "
208 // eAngle "<<entranceAngle
209 //<<" tan(dipAngle) "<<tan(dipAngle)<< " z "<<z <<" iAdc "<<_iAdc<<std::endl;
210 sig = 0.1 * m_mdcCalibFunSvc->getSigma( _layer, lrCalib, driftdist * 10., entranceAngle,
211 tan( dipAngle ), z * 10.,
212 _iAdc ); // Calib special resolution mm -> cm
213
214 if ( fabs( sig ) < Constants::epsilon ) { sig = 999.; }
215 // if(sig<=0){
216 // std::cout<<__FILE__<<" "<<__LINE__ <<" sigma "<<sig
217 //<<" layer "<<_layer <<" lrCalib "<<lrCalib <<" driftdist "<<driftdist*10
218 //<<" eAngle "<<entranceAngle<<" dipAngle "<<(dipAngle) <<" tanl "<<tan(dipAngle)
219 //<<" z "<<z <<" iAdc "<<_iAdc <<std::endl;
220 // }
221 }
222 // if (_layer<4) sig /=5.;//yzhang TEST 2011-05-27
223 return sig;
224}

Referenced by MdcxCosmicSewer::execute(), MdcTrackList::pickHits(), sigma(), and MdcSegInfoSterO::zPosition().

◆ sigma() [5/6]

double MdcHit::sigma ( double ,
int ,
double ,
double ,
double  ) const

◆ sigma() [6/6]

double MdcHit::sigma ( double ,
int ,
double ,
double ,
double  ) const

◆ status() [1/3]

unsigned MdcHit::status ( ) const
inline

Definition at line 83 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

83{ return _status; } // status

Referenced by MdcRecoHitOnTrack::status().

◆ status() [2/3]

unsigned MdcHit::status ( ) const
inline

Definition at line 83 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

83{ return _status; } // status

◆ status() [3/3]

unsigned MdcHit::status ( ) const
inline

Definition at line 83 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

83{ return _status; } // status

◆ tdcIndex() [1/3]

unsigned MdcHit::tdcIndex ( ) const
inline

◆ tdcIndex() [2/3]

unsigned MdcHit::tdcIndex ( ) const
inline

Definition at line 61 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

61{ return _iTdc; }

◆ tdcIndex() [3/3]

unsigned MdcHit::tdcIndex ( ) const
inline

Definition at line 61 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

61{ return _iTdc; }

◆ whatView() [1/3]

◆ whatView() [2/3]

TrkEnums::TrkViewInfo MdcHit::whatView ( ) const
inlinevirtual

Implements TrkFundHit.

Definition at line 72 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

72 {
74 }

◆ whatView() [3/3]

TrkEnums::TrkViewInfo MdcHit::whatView ( ) const
inlinevirtual

Implements TrkFundHit.

Definition at line 72 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

72 {
74 }

◆ whichView() [1/3]

int MdcHit::whichView ( ) const
inline

Definition at line 70 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

70{ return _layerPtr->view(); }

Referenced by whatView().

◆ whichView() [2/3]

int MdcHit::whichView ( ) const
inline

Definition at line 70 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

70{ return _layerPtr->view(); }

◆ whichView() [3/3]

int MdcHit::whichView ( ) const
inline

Definition at line 70 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

70{ return _layerPtr->view(); }

◆ wire() [1/3]

const MdcSWire * MdcHit::wire ( ) const
inline

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

55{ return _wirePtr; }

Referenced by phi(), x(), y(), and MdcSegInfoSterO::zPosition().

◆ wire() [2/3]

const MdcSWire * MdcHit::wire ( ) const
inline

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

55{ return _wirePtr; }

◆ wire() [3/3]

const MdcSWire * MdcHit::wire ( ) const
inline

Definition at line 55 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

55{ return _wirePtr; }

◆ wirenumber() [1/3]

◆ wirenumber() [2/3]

unsigned MdcHit::wirenumber ( ) const
inline

Definition at line 60 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

60{ return _wire; }

◆ wirenumber() [3/3]

unsigned MdcHit::wirenumber ( ) const
inline

Definition at line 60 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

60{ return _wire; }

◆ x() [1/6]

double MdcHit::x ( ) const
inline

Definition at line 76 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

76{ return _rmid * _cosphi; } // x at chamber center

Referenced by MdcTrackList::pickHits().

◆ x() [2/6]

double MdcHit::x ( ) const
inline

Definition at line 76 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

76{ return _rmid * _cosphi; } // x at chamber center

◆ x() [3/6]

double MdcHit::x ( ) const
inline

Definition at line 76 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

76{ return _rmid * _cosphi; } // x at chamber center

◆ x() [4/6]

double MdcHit::x ( double z) const
inline

Definition at line 79 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

79{ return wire()->xWireDC( z ); } // x at global z

◆ x() [5/6]

double MdcHit::x ( double z) const
inline

Definition at line 79 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

79{ return wire()->xWireDC( z ); } // x at global z

◆ x() [6/6]

double MdcHit::x ( double z) const
inline

Definition at line 79 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

79{ return wire()->xWireDC( z ); } // x at global z

◆ y() [1/6]

double MdcHit::y ( ) const
inline

Definition at line 77 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

77{ return _rmid * _sinphi; } // y at chamber center

Referenced by MdcTrackList::pickHits(), and MdcSegGrouper::transferHits().

◆ y() [2/6]

double MdcHit::y ( ) const
inline

Definition at line 77 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

77{ return _rmid * _sinphi; } // y at chamber center

◆ y() [3/6]

double MdcHit::y ( ) const
inline

Definition at line 77 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

77{ return _rmid * _sinphi; } // y at chamber center

◆ y() [4/6]

double MdcHit::y ( double z) const
inline

Definition at line 80 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

80{ return wire()->yWireDC( z ); } // y at global z

◆ y() [5/6]

double MdcHit::y ( double z) const
inline

Definition at line 80 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

80{ return wire()->yWireDC( z ); } // y at global z

◆ y() [6/6]

double MdcHit::y ( double z) const
inline

Definition at line 80 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

80{ return wire()->yWireDC( z ); } // y at global z

◆ zlen() [1/3]

double MdcHit::zlen ( ) const
inline

Definition at line 82 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcData/MdcHit.h.

82{ return _zlen; } // chamber extent in z

◆ zlen() [2/3]

double MdcHit::zlen ( ) const
inline

Definition at line 82 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcData/MdcHit.h.

82{ return _zlen; } // chamber extent in z

◆ zlen() [3/3]

double MdcHit::zlen ( ) const
inline

Definition at line 82 of file Reconstruction/MdcPatRec/MdcData/include/MdcData/MdcHit.h.

82{ return _zlen; } // chamber extent in z

◆ MdcMakeHits

MdcMakeHits
friend

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