#include <MdcHit.h>
Inheritance diagram for MdcHit:
Public Types | |
typedef TrkHitOnTrkIter< TrkFundHit > | hot_iterator |
Public Member Functions | |
MdcHit (const MdcDigi *&digi, const MdcDetector *&det) | |
MdcHit (const MdcHit &) | |
virtual | ~MdcHit () |
MdcHit & | operator= (const MdcHit &) |
bool | operator== (const MdcHit &) const |
const MdcDigi * | digi () const |
const MdcLayer * | layer () const |
const MdcSWire * | wire () const |
const MdcDetector * | geom () const |
const MdcCalibFunSvc * | calibSvc () 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 Trajectory * | hitTraj () 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 MdcCalibFunSvc *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 |
int | nUsedHits () const |
bool | usedHit (void) const |
std::pair< TrkFundHit::hot_iterator, TrkFundHit::hot_iterator > | getUsedHits () const |
TrkFundHit::hot_iterator | begin () const |
TrkFundHit::hot_iterator | end () const |
bool | usedOnTrack (const TrkRecoTrk *t) const |
const TrkHitOnTrk * | getHitOnTrack (const TrkRecoTrk *trk) const |
const TrkHitOnTrk * | setUsedHit (const TrkHitOnTrk *hit) |
const TrkHitOnTrk * | setUnusedHit (const TrkHitOnTrk *hit) |
Protected Types | |
typedef std::vector< const TrkHitOnTrk * >::iterator | iterator_implementation |
typedef const TrkHitOnTrk | iterator_value_type |
Protected Attributes | |
std::vector< const TrkHitOnTrk * > | _hitList |
Private Member Functions | |
double | crudeTof () const |
MdcHit () | |
Private Attributes | |
const MdcDigi * | _digiPtr |
const MdcDetector * | _geomPtr |
const MdcLayer * | _layerPtr |
const MdcSWire * | _wirePtr |
const MdcCalibFunSvc * | m_mdcCalibFunSvc |
Identifier | _id |
unsigned | _layer |
unsigned | _wire |
unsigned | _iTdc |
unsigned | _iAdc |
double | _rawTime |
double | _charge |
double | _rmid |
double | _zlen |
double | _phi |
double | _cosphi |
double | _sinphi |
unsigned | _status |
double | _T0Walk |
Static Private Attributes | |
static bool | m_cosmicFit = false |
static bool | m_countPropTime = true |
Friends | |
class | MdcMakeHits |
class | TrkHitOnTrkIter< TrkFundHit > |
Definition at line 44 of file MdcHit.h.
typedef TrkHitOnTrkIter<TrkFundHit> TrkFundHit::hot_iterator [inherited] |
Definition at line 45 of file TrkFundHit.h.
typedef std::vector<const TrkHitOnTrk*>::iterator TrkFundHit::iterator_implementation [protected, inherited] |
Definition at line 94 of file TrkFundHit.h.
typedef const TrkHitOnTrk TrkFundHit::iterator_value_type [protected, inherited] |
Definition at line 95 of file TrkFundHit.h.
MdcHit::MdcHit | ( | const MdcDigi *& | digi, | |
const MdcDetector *& | det | |||
) |
Definition at line 33 of file MdcHit.cxx.
References _charge, _cosphi, _digiPtr, _geomPtr, _iAdc, _id, _iTdc, _layer, _layerPtr, _phi, _rawTime, _rmid, _sinphi, _status, _wire, _wirePtr, _zlen, cos(), RawData::getChargeChannel(), RawData::getTimeChannel(), RawData::identify(), MdcID::layer(), MdcDetector::Layer(), m_mdcCalibFunSvc, RawDataUtil::MdcCharge(), RawDataUtil::MdcTime(), MdcSWire::phi(), MdcSWire::rMid(), sin(), MdcID::wire(), MdcDetector::Wire(), and MdcLayer::zLength().
00033 : 00034 TrkFundHit(), _digiPtr(aDigi), _geomPtr(det) 00035 { 00036 _digiPtr = aDigi; 00037 _geomPtr = det; 00038 assert( _digiPtr != NULL); 00039 assert( _geomPtr != NULL); 00040 _id = aDigi->identify(); 00041 _layerPtr = det->Layer(_id); 00042 _wirePtr = det->Wire(_id); 00043 assert( _layerPtr != NULL); 00044 assert( _wirePtr != NULL); 00045 m_mdcCalibFunSvc = NULL; 00046 _layer = MdcID::layer(_id); 00047 _wire = MdcID::wire (_id); 00048 _iTdc = _digiPtr->getTimeChannel(); 00049 _iAdc = _digiPtr->getChargeChannel(); 00050 _rawTime = RawDataUtil::MdcTime(_iTdc); 00051 _charge = RawDataUtil::MdcCharge(_iAdc); 00052 _rmid = _wirePtr->rMid(); 00053 _zlen = _layerPtr->zLength(); 00054 _phi = _wirePtr->phi(); 00055 _cosphi = cos(_phi); 00056 _sinphi = sin(_phi); 00057 _status = 0; 00058 }
MdcHit::MdcHit | ( | const MdcHit & | ) |
Definition at line 60 of file MdcHit.cxx.
References m_mdcCalibFunSvc, and EvtCyclic3::other().
00060 : 00061 TrkFundHit() , _digiPtr(other._digiPtr), _geomPtr(other._geomPtr), 00062 _layerPtr(other._layerPtr), _wirePtr(other._wirePtr), _id(other._id), 00063 _layer(other._layer), _wire(other._wire), 00064 _iTdc(other._iTdc), _iAdc(other._iAdc), 00065 _rawTime(other._rawTime), _charge(other._charge), 00066 _rmid(other._rmid), _zlen(other._zlen), 00067 _phi(other._phi), _cosphi(other._cosphi), _sinphi(other._sinphi), 00068 _status(other._status), _T0Walk(other._T0Walk) 00069 { 00070 m_mdcCalibFunSvc = other.m_mdcCalibFunSvc; 00071 }
MdcHit::~MdcHit | ( | ) | [virtual] |
Definition at line 102 of file MdcHit.cxx.
References TrkFundHit::_hitList, count, and TrkFundHit::nUsedHits().
00102 { 00103 // This is ugly and inefficient. This, along with the rest of 00104 // the hitList mess, should be cleaned up by handling the 00105 // association in an external map 00106 00107 // Not written as a loop because removeHit() modifies TrkFundHit::_hitList 00108 short count = 0; 00109 while (nUsedHits() > count) { 00110 bool removed = _hitList[count]->parentTrack()->hits()->removeHit(this); 00111 if (!removed) count++; 00112 } 00113 }
MdcHit::MdcHit | ( | ) | [private] |
unsigned MdcHit::adcIndex | ( | ) | const [inline] |
TrkFundHit::hot_iterator TrkFundHit::begin | ( | ) | const [inline, inherited] |
Definition at line 113 of file TrkFundHit.h.
References TrkFundHit::_hitList.
Referenced by TrkFundHit::getHitOnTrack(), and TrkFundHit::getUsedHits().
00114 { 00115 return TrkFundHit::hot_iterator(const_cast<std::vector<const TrkHitOnTrk*>&>(_hitList).begin()); 00116 }
const MdcCalibFunSvc* MdcHit::calibSvc | ( | ) | const [inline] |
Definition at line 59 of file MdcHit.h.
References m_mdcCalibFunSvc.
Referenced by setCalibSvc().
00059 { return m_mdcCalibFunSvc; }
double MdcHit::charge | ( | ) | const [inline] |
Definition at line 65 of file MdcHit.h.
References _charge.
Referenced by MdcHitOnTrack::charge().
00065 { return _charge; }
double MdcHit::crudeTof | ( | ) | const [inline, private] |
Definition at line 98 of file MdcHit.h.
References _rmid, and Constants::c.
Referenced by driftDist().
00098 { return _rmid/Constants::c; }
const MdcDigi* MdcHit::digi | ( | ) | const [inline] |
Definition at line 55 of file MdcHit.h.
References _digiPtr.
Referenced by MdcTrackList::pickHits().
00055 { return _digiPtr; }
double MdcHit::driftDist | ( | double | bunchTime, | |
int | ambig | |||
) | const |
double MdcHit::driftDist | ( | double | , | |
int | , | |||
double | , | |||
double | , | |||
double | ||||
) | const |
Definition at line 156 of file MdcHit.cxx.
References _layer, _wire, abs, driftTime(), MdcCalibFunSvc::driftTimeToDist(), Constants::epsilon, and m_mdcCalibFunSvc.
Referenced by MdcHoughFinder::digiToHots(), HoughValidUpdate::digiToHots(), MdcHoughFinder::digiToHots2(), HoughValidUpdate::digiToHots2(), driftDist(), MdcHitOnTrack::driftVelocity(), MdcxCosmicSewer::execute(), MdcTrackList::pickHits(), MdcSegFinder::tryPatterns(), MdcHitOnTrack::updateCorrections(), MdcSegInfoSterO::zPosition(), and HoughValidUpdate::zPosition().
00158 { 00159 double driftD; 00160 //drift time ns, layer id begin with 0, entrance angle rads, 00161 //lr ambig: wire ambig 1,-1,0 -> Calib 0,1,2 00162 int lrCalib=2; 00163 if (ambig==1) lrCalib = 0; 00164 else if (ambig==-1) lrCalib = 1; 00165 00166 // tof in s, driftDist in cm, dirftTime in ns 00167 if (fabs(z)>150. || fabs(driftTime(tof,z))>1500.){ 00168 return 9999.; 00169 } 00170 driftD = 0.1 * m_mdcCalibFunSvc->driftTimeToDist(driftTime(tof,z),_layer,_wire,lrCalib,entranceAngle);//to cm 00171 //std::cout<<"driftDist "<<"("<<_layer <<","<<_wire <<") dd "<<driftD<<" dt "<<driftTime(tof,z) <<" lr "<<lrCalib <<" eAng "<<entranceAngle <<" tof "<<tof*1.e9<<" z "<<z <<" t0walk "<<_T0Walk<<" rawT "<<_rawTime <<" tprop "<< _rawTime - driftTime(tof,z)- _T0Walk-1.e9*tof<<std::endl; 00172 00173 if (abs(driftD)<Constants::epsilon) driftD = 0.00001; 00174 return driftD; 00175 }
double MdcHit::driftTime | ( | double | tof, | |
double | z | |||
) | const |
Definition at line 142 of file MdcHit.cxx.
References _layer, _rawTime, _T0Walk, MdcCalibFunSvc::getTprop(), m_countPropTime, and m_mdcCalibFunSvc.
Referenced by MdcHoughFinder::digiToHots(), HoughValidUpdate::digiToHots(), MdcHoughFinder::digiToHots2(), HoughValidUpdate::digiToHots2(), driftDist(), and MdcHitOnTrack::updateCorrections().
00142 { 00143 // t prop 00144 double tprop = 0.; 00145 if (m_countPropTime){ tprop = m_mdcCalibFunSvc->getTprop(_layer,z*10.); } 00146 00147 //tof in s, driftTime in ns, _T0Walk in ns 00148 double driftT = _rawTime - _T0Walk -1.e9*tof - tprop; 00149 00150 //if(driftT >10000) 00151 //std::cout<< "driftTime ("<<_layer<<","<<_wire<<") dt "<<driftT<<" rawTime "<<_rawTime<<" z "<<z<<" tprop "<<tprop <<" t0walk "<<_T0Walk<<" tof "<<1.e9*tof<< std::endl;//yzhang debug 00152 return driftT; 00153 }
TrkFundHit::hot_iterator TrkFundHit::end | ( | ) | const [inline, inherited] |
Definition at line 119 of file TrkFundHit.h.
References TrkFundHit::_hitList.
Referenced by TrkFundHit::getHitOnTrack(), and TrkFundHit::getUsedHits().
00120 { 00121 return TrkFundHit::hot_iterator(const_cast<std::vector<const TrkHitOnTrk*>&>(_hitList).end()); 00122 }
const MdcDetector* MdcHit::geom | ( | ) | const [inline] |
const TrkHitOnTrk * TrkFundHit::getHitOnTrack | ( | const TrkRecoTrk * | trk | ) | const [inherited] |
Definition at line 95 of file TrkFundHit.cxx.
References TrkFundHit::begin(), TrkFundHit::end(), and genRecEmupikp::i.
Referenced by MdcTrackList::pickHits(), and TrkFundHit::usedOnTrack().
00096 { 00097 hot_iterator i = std::find_if(begin(), end(), 00098 std::bind2nd(TrkBase::Predicates::isHotOnTrack(),trk)); 00099 return (i==end()?0:i.get()); 00100 }
std::pair<TrkFundHit::hot_iterator, TrkFundHit::hot_iterator > TrkFundHit::getUsedHits | ( | ) | const [inline, inherited] |
Definition at line 60 of file TrkFundHit.h.
References TrkFundHit::begin(), and TrkFundHit::end().
00060 { 00061 return std::pair<TrkFundHit::hot_iterator,TrkFundHit::hot_iterator >(begin(),end()); 00062 }
const Trajectory * MdcHit::hitTraj | ( | ) | const |
Definition at line 231 of file MdcHit.cxx.
References layer(), MdcLayer::makeHitTrajInGlobalCoords(), and wirenumber().
00231 { 00232 return layer()->makeHitTrajInGlobalCoords(wirenumber(),0.0); 00233 }
bool MdcHit::isCosmicFit | ( | ) | const [inline] |
const MdcLayer* MdcHit::layer | ( | void | ) | const [inline] |
Definition at line 56 of file MdcHit.h.
References _layerPtr.
Referenced by hitTraj(), MdcHitOnTrack::layer(), MdcHitOnTrack::MdcHitOnTrack(), MdcTrackList::pickHits(), and MdcSegFinder::tryPatterns().
00056 { return _layerPtr; }
unsigned MdcHit::layernumber | ( | ) | const [inline] |
Definition at line 61 of file MdcHit.h.
References _layer.
Referenced by MdcHitMapGuts::addHit(), MdcSegGrouper::calcParByHits(), MdcHitOnTrack::layernumber(), MdcTrackList::pickHits(), MdcSeg::testCombSeg(), MdcSeg::testCombSegAmbig(), MdcSeg::testCombSegPhi(), MdcSeg::testCombSegPt(), MdcSeg::testCombSegTheta(), MdcSegFinder::tryPatterns(), and MdcSegInfoSterO::zPosition().
00061 { return _layer; }
Identifier MdcHit::mdcId | ( | ) | const [inline] |
int TrkFundHit::nUsedHits | ( | ) | const [inherited] |
Definition at line 89 of file TrkFundHit.cxx.
References TrkFundHit::_hitList.
Referenced by ~MdcHit().
00090 { 00091 return _hitList.size(); 00092 }
Definition at line 74 of file MdcHit.cxx.
References _charge, _cosphi, _digiPtr, _geomPtr, _iAdc, _id, _iTdc, _layer, _layerPtr, _phi, _rawTime, _rmid, _sinphi, _status, _T0Walk, _wire, _wirePtr, _zlen, m_mdcCalibFunSvc, and EvtCyclic3::other().
00074 { 00075 if(&other != this){ 00076 _digiPtr = other._digiPtr; 00077 _geomPtr = other._geomPtr; 00078 _layerPtr = other._layerPtr; 00079 _wirePtr = other._wirePtr; 00080 m_mdcCalibFunSvc = other.m_mdcCalibFunSvc; 00081 _id = other._id; 00082 _layer = other._layer; 00083 _wire = other._wire; 00084 _iTdc = other._iTdc; 00085 _iAdc = other._iAdc; 00086 _rawTime = other._rawTime; 00087 _charge = other._charge; 00088 _digiPtr = other._digiPtr; 00089 _rmid = other._rmid; 00090 _zlen = other._zlen; 00091 _phi = other._phi; 00092 _cosphi = other._cosphi; 00093 _sinphi = other._sinphi; 00094 _status = other._status; 00095 _T0Walk = other._T0Walk; 00096 } 00097 return *this; 00098 }
const double MdcHit::phi | ( | double | z | ) | const [inline] |
double MdcHit::phi | ( | void | ) | const [inline] |
Definition at line 75 of file MdcHit.h.
References _phi.
Referenced by MdcHitOnTrack::entranceAngle(), MdcxCosmicSewer::execute(), MdcTrackList::pickHits(), and MdcSegFinder::tryPatterns().
00075 { return _phi;} // phi at chamber center
void MdcHit::print | ( | std::ostream & | o | ) | const |
void MdcHit::printAll | ( | std::ostream & | o | ) | const [virtual] |
Reimplemented from TrkFundHit.
double MdcHit::rawTime | ( | ) | const [inline] |
Definition at line 66 of file MdcHit.h.
References _rawTime.
Referenced by MdcHoughFinder::digiToHots(), HoughValidUpdate::digiToHots(), MdcHoughFinder::digiToHots2(), HoughValidUpdate::digiToHots2(), MdcHitOnTrack::rawTime(), and MdcHitOnTrack::setT0().
00066 { return _rawTime; }
double MdcHit::rMid | ( | ) | const [inline] |
void MdcHit::setCalibSvc | ( | const MdcCalibFunSvc * | calibSvc | ) |
Definition at line 136 of file MdcHit.cxx.
References _iAdc, _layer, _T0Walk, _wire, calibSvc(), MdcCalibFunSvc::getT0(), MdcCalibFunSvc::getTimeWalk(), and m_mdcCalibFunSvc.
Referenced by MdcHoughFinder::digiToHots(), HoughValidUpdate::digiToHots(), MdcHoughFinder::digiToHots2(), HoughValidUpdate::digiToHots2(), MdcxCosmicSewer::execute(), MdcMakeHits::execute(), HoughValidUpdate::execute(), MdcxTrackFinder::MdcxHitsToHots(), and MdcxCosmicSewer::MdcxHitsToHots().
00136 { 00137 m_mdcCalibFunSvc = calibSvc; 00138 _T0Walk = m_mdcCalibFunSvc->getT0(_layer,_wire) + m_mdcCalibFunSvc->getTimeWalk(_layer, _iAdc); 00139 }
void MdcHit::setCosmicFit | ( | const bool | cosmicfit | ) | [inline] |
Definition at line 87 of file MdcHit.h.
References m_cosmicFit.
Referenced by MdcxCosmicSewer::execute(), MdcMakeHits::execute(), and MdcxCosmicSewer::MdcxHitsToHots().
00087 { m_cosmicFit = cosmicfit; }
void MdcHit::setCountPropTime | ( | const bool | count | ) | [inline] |
Definition at line 86 of file MdcHit.h.
References m_countPropTime.
Referenced by MdcHoughFinder::digiToHots(), HoughValidUpdate::digiToHots(), MdcHoughFinder::digiToHots2(), HoughValidUpdate::digiToHots2(), MdcxCosmicSewer::execute(), MdcMakeHits::execute(), HoughValidUpdate::execute(), MdcxTrackFinder::MdcxHitsToHots(), and MdcxCosmicSewer::MdcxHitsToHots().
00086 { m_countPropTime = count;}
const TrkHitOnTrk * TrkFundHit::setUnusedHit | ( | const TrkHitOnTrk * | hit | ) | [inherited] |
Definition at line 75 of file TrkFundHit.cxx.
References TrkFundHit::_hitList, and genRecEmupikp::i.
Referenced by TrkHitOnTrk::setUnusedHit().
00076 { 00077 //std::cout << " @ setUnusedHit() : " << debug_nHit << " addr: " << this << std::endl; 00078 if (_hitList.empty()) return 0; 00079 std::vector<const TrkHitOnTrk*>::iterator i=std::find(_hitList.begin(),_hitList.end(),hit); 00080 if (i==_hitList.end()) return 0; 00081 assert(*i==hit); 00082 // std::cout << "TrkFundHit setUnusedHit "<<((MdcHit*)(hit->hit()))->layernumber()<<" "<<((MdcHit*)(hit->hit()))->wirenumber()<<endl; 00083 //this->printAll(std::cout);//yzhang debug 00084 _hitList.erase(i); 00085 return hit; 00086 }
const TrkHitOnTrk * TrkFundHit::setUsedHit | ( | const TrkHitOnTrk * | hit | ) | [inherited] |
Definition at line 58 of file TrkFundHit.cxx.
References TrkFundHit::_hitList.
Referenced by TrkHitOnTrk::setUsedHit().
00059 { 00060 // if (hitList->contains(hit)) { 00061 // return; 00062 // } 00063 //FIXME: check hot corresponds to this hit?? 00064 // std::cout << "TrkFundHit setUsedHit "<<((MdcHit*)(hit->hit()))->layernumber()<<" "<<((MdcHit*)(hit->hit()))->wirenumber()<<endl; 00065 // this->printAll(std::cout);//yzhang debug 00066 _hitList.push_back(hit); 00067 // std::cout << "after push_bak " << std::endl;//yzhang debug 00068 // printAll(std::cout);//yzhang debug 00069 00070 return hit; 00071 }
double MdcHit::sigma | ( | double | driftdist, | |
int | ambig = 0 | |||
) | const |
Definition at line 226 of file MdcHit.cxx.
References sigma().
00226 { 00227 return sigma(driftdist, ambig, 0., 0., 0.);// cm 00228 }
double MdcHit::sigma | ( | double | , | |
int | , | |||
double | , | |||
double | , | |||
double | ||||
) | const |
Definition at line 184 of file MdcHit.cxx.
References _iAdc, _layer, Constants::epsilon, m_mdcCalibFunSvc, and tan().
Referenced by MdcxCosmicSewer::execute(), MdcTrackList::pickHits(), sigma(), MdcSegFinder::tryPatterns(), MdcHitOnTrack::updateCorrections(), and MdcSegInfoSterO::zPosition().
00185 { 00186 double sig = 9999.; 00187 00188 #ifdef MDCPATREC_RESLAYER 00189 if (_layer == m_resLayer){ 00190 //give a huge sigma to skip this layer when fit track 00191 return 9999.; 00192 } 00193 #endif 00194 //if(fabs(z)>150. || driftdist==9999. ) { 00195 // return 9999.; 00196 //} 00197 if ( m_mdcCalibFunSvc ) { 00198 //layid begin with 0, entrance angle in rads, 00199 //distance: cm ->Calib mm //z: cm -> Calib mm 00200 //Q: MonteCalo eV -> Calib fC FIXME 00201 //lr ambig: wire ambig 1,-1,0 -> Calib 0,1,2 00202 int lrCalib=2; 00203 if (ambig==1) lrCalib = 0; 00204 else if (ambig==-1) lrCalib = 1; 00205 00206 //std::cout<<"layer "<<_layer<< " lrCalib "<< lrCalib<< " driftdist "<< driftdist << " eAngle "<<entranceAngle 00207 //<<" tan(dipAngle) "<<tan(dipAngle)<< " z "<<z <<" iAdc "<<_iAdc<<std::endl; 00208 sig = 0.1 * m_mdcCalibFunSvc->getSigma(_layer,lrCalib,driftdist*10.,entranceAngle, 00209 tan(dipAngle),z*10.,_iAdc); //Calib special resolution mm -> cm 00210 00211 if(fabs(sig)<Constants::epsilon){ 00212 sig = 999.; 00213 } 00214 //if(sig<=0){ 00215 //std::cout<<__FILE__<<" "<<__LINE__ <<" sigma "<<sig 00216 //<<" layer "<<_layer <<" lrCalib "<<lrCalib <<" driftdist "<<driftdist*10 00217 //<<" eAngle "<<entranceAngle<<" dipAngle "<<(dipAngle) <<" tanl "<<tan(dipAngle) 00218 //<<" z "<<z <<" iAdc "<<_iAdc <<std::endl; 00219 //} 00220 } 00221 //if (_layer<4) sig /=5.;//yzhang TEST 2011-05-27 00222 return sig; 00223 }
unsigned MdcHit::status | ( | void | ) | const [inline] |
Definition at line 83 of file MdcHit.h.
References _status.
Referenced by MdcRecoHitOnTrack::status().
00083 { return _status;}// status
unsigned MdcHit::tdcIndex | ( | ) | const [inline] |
Definition at line 63 of file MdcHit.h.
References _iTdc.
Referenced by MdcRecoHitOnTrack::tdcIndex().
00063 { return _iTdc; }
bool TrkFundHit::usedHit | ( | void | ) | const [inline, inherited] |
Definition at line 57 of file TrkFundHit.h.
References TrkFundHit::_hitList.
Referenced by MdcTrackList::pickHits().
00057 {return !_hitList.empty();}
bool TrkFundHit::usedOnTrack | ( | const TrkRecoTrk * | t | ) | const [inline, inherited] |
Definition at line 67 of file TrkFundHit.h.
References TrkFundHit::getHitOnTrack(), and t().
Referenced by TrkHitList::appendHit(), TrkHitList::appendHot(), and TrkHitList::removeHit().
00067 {return getHitOnTrack(t) != 0;}
TrkEnums::TrkViewInfo MdcHit::whatView | ( | ) | const [inline, virtual] |
Implements TrkFundHit.
Definition at line 74 of file MdcHit.h.
References TrkEnums::bothView, whichView(), and TrkEnums::xyView.
Referenced by MdcHitOnTrack::whatView().
00074 { return whichView()==0?TrkEnums::xyView:TrkEnums::bothView; }
int MdcHit::whichView | ( | ) | const [inline] |
Definition at line 72 of file MdcHit.h.
References _layerPtr, and MdcLayer::view().
Referenced by whatView(), and MdcHitOnTrack::whichView().
const MdcSWire* MdcHit::wire | ( | void | ) | const [inline] |
Definition at line 57 of file MdcHit.h.
References _wirePtr.
Referenced by phi(), x(), y(), MdcSegInfoSterO::zPosition(), and HoughValidUpdate::zPosition().
00057 { return _wirePtr; }
unsigned MdcHit::wirenumber | ( | ) | const [inline] |
Definition at line 62 of file MdcHit.h.
References _wire.
Referenced by MdcHitMapGuts::addHit(), MdcSegGrouper::calcParByHits(), hitTraj(), MdcTrackList::pickHits(), MdcSegFinder::tryPatterns(), MdcHitOnTrack::wire(), and MdcSegInfoSterO::zPosition().
00062 { return _wire; }
double MdcHit::x | ( | double | z | ) | const [inline] |
double MdcHit::x | ( | void | ) | const [inline] |
double MdcHit::y | ( | double | z | ) | const [inline] |
double MdcHit::y | ( | void | ) | const [inline] |
double MdcHit::zlen | ( | ) | const [inline] |
friend class MdcMakeHits [friend] |
friend class TrkHitOnTrkIter< TrkFundHit > [friend, inherited] |
Definition at line 92 of file TrkFundHit.h.
double MdcHit::_charge [private] |
double MdcHit::_cosphi [private] |
const MdcDigi* MdcHit::_digiPtr [private] |
const MdcDetector* MdcHit::_geomPtr [private] |
std::vector<const TrkHitOnTrk*> TrkFundHit::_hitList [protected, inherited] |
Definition at line 97 of file TrkFundHit.h.
Referenced by TrkFundHit::begin(), TrkFundHit::end(), TrkFundHit::nUsedHits(), TrkFundHit::operator=(), TrkFundHit::setUnusedHit(), TrkFundHit::setUsedHit(), TrkFundHit::TrkFundHit(), TrkFundHit::usedHit(), and ~MdcHit().
unsigned MdcHit::_iAdc [private] |
Definition at line 114 of file MdcHit.h.
Referenced by adcIndex(), MdcHit(), operator=(), setCalibSvc(), and sigma().
Identifier MdcHit::_id [private] |
unsigned MdcHit::_iTdc [private] |
unsigned MdcHit::_layer [private] |
Definition at line 111 of file MdcHit.h.
Referenced by driftDist(), driftTime(), layernumber(), MdcHit(), operator=(), setCalibSvc(), and sigma().
const MdcLayer* MdcHit::_layerPtr [private] |
Definition at line 107 of file MdcHit.h.
Referenced by layer(), MdcHit(), operator=(), and whichView().
double MdcHit::_phi [private] |
double MdcHit::_rawTime [private] |
Definition at line 115 of file MdcHit.h.
Referenced by driftTime(), MdcHit(), operator=(), and rawTime().
double MdcHit::_rmid [private] |
Definition at line 117 of file MdcHit.h.
Referenced by crudeTof(), MdcHit(), operator=(), rMid(), x(), and y().
double MdcHit::_sinphi [private] |
unsigned MdcHit::_status [private] |
double MdcHit::_T0Walk [private] |
unsigned MdcHit::_wire [private] |
Definition at line 112 of file MdcHit.h.
Referenced by driftDist(), MdcHit(), operator=(), setCalibSvc(), and wirenumber().
const MdcSWire* MdcHit::_wirePtr [private] |
double MdcHit::_zlen [private] |
bool MdcHit::m_cosmicFit = false [static, private] |
bool MdcHit::m_countPropTime = true [static, private] |
const MdcCalibFunSvc* MdcHit::m_mdcCalibFunSvc [private] |
Definition at line 109 of file MdcHit.h.
Referenced by calibSvc(), driftDist(), driftTime(), MdcHit(), operator=(), setCalibSvc(), and sigma().