Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MdcHit Class Reference

#include <MdcHit.h>

Inheritance diagram for MdcHit:

TrkFundHit TrkFundHit ContainedObject ContainedObject ContainedObject ContainedObject List of all members.

Public Types

typedef TrkHitOnTrkIter< TrkFundHithot_iterator
typedef TrkHitOnTrkIter< TrkFundHithot_iterator

Public Member Functions

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

Protected Types

typedef std::vector< const
TrkHitOnTrk * >::iterator 
iterator_implementation
typedef std::vector< const
TrkHitOnTrk * >::iterator 
iterator_implementation
typedef const TrkHitOnTrk iterator_value_type
typedef const TrkHitOnTrk iterator_value_type

Protected Attributes

std::vector< const TrkHitOnTrk * > _hitList
std::vector< const TrkHitOnTrk * > _hitList

Private Member Functions

double crudeTof () const
double crudeTof () const
 MdcHit ()
 MdcHit ()

Private Attributes

double _charge
double _cosphi
const MdcDigi_digiPtr
const MdcDigi_digiPtr
const MdcDetector_geomPtr
const MdcDetector_geomPtr
unsigned _iAdc
Identifier _id
unsigned _iTdc
unsigned _layer
const MdcLayer_layerPtr
const MdcLayer_layerPtr
double _phi
double _rawTime
double _rmid
double _sinphi
unsigned _status
double _T0Walk
unsigned _wire
const MdcSWire_wirePtr
const MdcSWire_wirePtr
double _zlen
const MdcCalibFunSvcm_mdcCalibFunSvc
const MdcCalibFunSvcm_mdcCalibFunSvc

Static Private Attributes

bool m_cosmicFit = false
bool m_countPropTime = true

Friends

class MdcMakeHits
class TrkHitOnTrkIter<TrkFundHit>

Member Typedef Documentation

typedef TrkHitOnTrkIter<TrkFundHit> TrkFundHit::hot_iterator [inherited]
 

typedef TrkHitOnTrkIter<TrkFundHit> TrkFundHit::hot_iterator [inherited]
 

typedef std::vector<const TrkHitOnTrk*>::iterator TrkFundHit::iterator_implementation [protected, inherited]
 

typedef std::vector<const TrkHitOnTrk*>::iterator TrkFundHit::iterator_implementation [protected, inherited]
 

typedef const TrkHitOnTrk TrkFundHit::iterator_value_type [protected, inherited]
 

typedef const TrkHitOnTrk TrkFundHit::iterator_value_type [protected, inherited]
 


Constructor & Destructor Documentation

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

00034                                                              :
00035   TrkFundHit(), _digiPtr(aDigi), _geomPtr(det)
00036 { 
00037   _digiPtr  = aDigi;
00038   _geomPtr  = det;
00039   assert( _digiPtr != NULL);
00040   assert( _geomPtr != NULL);
00041   _id       = aDigi->identify();
00042   _layerPtr = det->Layer(_id);
00043   _wirePtr  = det->Wire(_id);
00044   assert( _layerPtr != NULL);
00045   assert( _wirePtr  != NULL);
00046   m_mdcCalibFunSvc = NULL;
00047   _layer    = MdcID::layer(_id); 
00048   _wire     = MdcID::wire (_id); 
00049   _iTdc     = _digiPtr->getTimeChannel();
00050   _iAdc     = _digiPtr->getChargeChannel();
00051   _rawTime  = RawDataUtil::MdcTime(_iTdc);
00052   _charge   = RawDataUtil::MdcCharge(_iAdc);
00053   _rmid     = _wirePtr->rMid();
00054   _zlen     = _layerPtr->zLength();   
00055   _phi      = _wirePtr->phi();
00056   _cosphi   = cos(_phi);
00057   _sinphi   = sin(_phi);
00058   _status   = 0;
00059 }

MdcHit::MdcHit const MdcHit  ) 
 

MdcHit::~MdcHit  )  [virtual]
 

00103                 {
00104   // This is ugly and inefficient.  This, along with the rest of 
00105   //  the hitList mess, should be cleaned up by handling the 
00106   //  association in an external map
00107 
00108   // Not written as a loop because removeHit() modifies TrkFundHit::_hitList
00109   short count = 0;
00110   while (nUsedHits() > count) {
00111     bool removed = _hitList[count]->parentTrack()->hits()->removeHit(this);
00112     if (!removed) count++;
00113   }
00114 }

MdcHit::MdcHit  )  [private]
 

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

MdcHit::MdcHit const MdcHit  ) 
 

virtual MdcHit::~MdcHit  )  [virtual]
 

MdcHit::MdcHit  )  [private]
 


Member Function Documentation

unsigned MdcHit::adcIndex  )  const [inline]
 

00064 { return _iAdc; }

unsigned MdcHit::adcIndex  )  const [inline]
 

00064 { return _iAdc; }

TrkFundHit::hot_iterator TrkFundHit::begin  )  const [inline, inherited]
 

TrkFundHit::hot_iterator TrkFundHit::begin  )  const [inline, inherited]
 

00114 {
00115         return TrkFundHit::hot_iterator(const_cast<std::vector<const TrkHitOnTrk*>&>(_hitList).begin());
00116 }

const MdcCalibFunSvc* MdcHit::calibSvc  )  const [inline]
 

00059 { return m_mdcCalibFunSvc; }

const MdcCalibFunSvc* MdcHit::calibSvc  )  const [inline]
 

00059 { return m_mdcCalibFunSvc; }

double MdcHit::charge void   )  const [inline]
 

00065 { return _charge; } 

double MdcHit::charge  )  const [inline]
 

00065 { return _charge; } 

double MdcHit::crudeTof  )  const [inline, private]
 

00098 { return  _rmid/Constants::c; }

double MdcHit::crudeTof  )  const [inline, private]
 

00098 { return  _rmid/Constants::c; }

const MdcDigi* MdcHit::digi  )  const [inline]
 

00055 { return _digiPtr;  }

const MdcDigi* MdcHit::digi  )  const [inline]
 

00055 { return _digiPtr;  }

double MdcHit::driftDist double  bunchTime,
int  ambig
const
 

double MdcHit::driftDist double  ,
int  ,
double  ,
double  ,
double 
const
 

double MdcHit::driftDist double  bunchTime,
int  ambig
const
 

00184                                                     {
00185   return driftDist(bunchTime+crudeTof(), ambig, 0., 0., 0. );
00186 }

double MdcHit::driftDist double  ,
int  ,
double  ,
double  ,
double 
const
 

00160 { 
00161   double driftD;
00162   //drift time ns, layer id begin with 0, entrance angle rads,
00163   //lr ambig: wire ambig 1,-1,0 -> Calib 0,1,2
00164   int lrCalib=2;
00165   if (ambig==1) lrCalib = 0;
00166   else if (ambig==-1) lrCalib = 1;
00167   double eAngle = EntranceAngle(entranceAngle);
00168 
00169   // tof in s, driftDist in cm, dirftTime in ns
00170   driftD = 0.1 * m_mdcCalibFunSvc->driftTimeToDist(driftTime(tof,z),_layer,_wire,lrCalib,eAngle);//to cm
00171   
00172   //if(driftD >10000){
00173   //  std::cout<<__FILE__<<"("<<_layer <<","<<_wire 
00174   //    <<") lrCalib "<<lrCalib <<" dd "<<driftTime(tof,z) 
00175   //    <<" tof "<<tof <<" z "<<z <<" eAngle "<<eAngle
00176   //    <<std::endl;
00177   //}
00178   
00179   if (driftD<0.00001) driftD = 0.001;
00180   return driftD;
00181 }

double MdcHit::driftTime double  tof,
double  z
const
 

double MdcHit::driftTime double  tof,
double  z
const
 

00143                                             {
00144   // t prop
00145   double tprop = 0.;
00146   if (m_countPropTime){ tprop = m_mdcCalibFunSvc->getTprop(_layer,z*10.); }
00147 
00148   //yzhang FIXME use fabs() of drift time
00149   //tof in s, driftTime in ns, _T0Walk in ns
00150   double driftT;
00151   driftT = fabs(_rawTime - _T0Walk -1.e9*tof - tprop);
00152 
00153   //if(driftT >10000)std::cout<< "lay "<<_layer<<" cell "<<_wire<<"_rawTime "<<_rawTime<<" zhit "<<z<<" tprop "<<tprop <<" t0walk"<<_T0Walk<<" tof "<<tof<< std::endl;//yzhang debug
00154   return driftT; 
00155 }  

TrkFundHit::hot_iterator TrkFundHit::end  )  const [inline, inherited]
 

TrkFundHit::hot_iterator TrkFundHit::end  )  const [inline, inherited]
 

00120 {
00121         return TrkFundHit::hot_iterator(const_cast<std::vector<const TrkHitOnTrk*>&>(_hitList).end());
00122 }

const MdcDetector* MdcHit::geom  )  const [inline]
 

00058 { return _geomPtr;  }

const MdcDetector* MdcHit::geom  )  const [inline]
 

00058 { return _geomPtr;  }

const TrkHitOnTrk* TrkFundHit::getHitOnTrack const TrkRecoTrk trk  )  const [inherited]
 

const TrkHitOnTrk * TrkFundHit::getHitOnTrack const TrkRecoTrk trk  )  const [inherited]
 

00087 {
00088   hot_iterator i = std::find_if(begin(), end(),
00089                                 std::bind2nd(TrkBase::Predicates::isHotOnTrack(),trk));
00090   return (i==end()?0:i.get());
00091 }

std::pair<TrkFundHit::hot_iterator, TrkFundHit::hot_iterator > TrkFundHit::getUsedHits  )  const [inline, inherited]
 

00060                                                          {
00061         return std::pair<TrkFundHit::hot_iterator,TrkFundHit::hot_iterator >(begin(),end());
00062   }

std::pair<TrkFundHit::hot_iterator, TrkFundHit::hot_iterator > TrkFundHit::getUsedHits  )  const [inline, inherited]
 

00060                                                          {
00061         return std::pair<TrkFundHit::hot_iterator,TrkFundHit::hot_iterator >(begin(),end());
00062   }

const Trajectory* MdcHit::hitTraj  )  const
 

const Trajectory * MdcHit::hitTraj  )  const
 

00232                       {
00233   return layer()->makeHitTrajInGlobalCoords(wirenumber(),0.0);
00234 }

bool MdcHit::isCosmicFit  )  const [inline]
 

00088 { return m_cosmicFit; }

bool MdcHit::isCosmicFit  )  const [inline]
 

00088 { return m_cosmicFit; }

const MdcLayer* MdcHit::layer void   )  const [inline]
 

00056 { return _layerPtr; }

const MdcLayer* MdcHit::layer void   )  const [inline]
 

00056 { return _layerPtr; }

unsigned MdcHit::layernumber  )  const [inline]
 

00061 { return _layer; }

unsigned MdcHit::layernumber  )  const [inline]
 

00061 { return _layer; }

Identifier MdcHit::mdcId  )  const [inline]
 

00060 { return _id; }

Identifier MdcHit::mdcId  )  const [inline]
 

00060 { return _id; }

int TrkFundHit::nUsedHits  )  const [inherited]
 

int TrkFundHit::nUsedHits  )  const [inherited]
 

00081 {
00082   return _hitList.size();
00083 }

MdcHit& MdcHit::operator= const MdcHit  ) 
 

MdcHit & MdcHit::operator= const MdcHit  ) 
 

00075                                        {
00076   if(&other != this){
00077     _digiPtr     = other._digiPtr;
00078     _geomPtr     = other._geomPtr;
00079     _layerPtr    = other._layerPtr;
00080     _wirePtr     = other._wirePtr;
00081     m_mdcCalibFunSvc = other.m_mdcCalibFunSvc;
00082     _id          = other._id;
00083     _layer       = other._layer;
00084     _wire        = other._wire;
00085     _iTdc        = other._iTdc;
00086     _iAdc        = other._iAdc;
00087     _rawTime     = other._rawTime;
00088     _charge      = other._charge;
00089     _digiPtr     = other._digiPtr;
00090     _rmid        = other._rmid;
00091     _zlen        = other._zlen;
00092     _phi         = other._phi;
00093     _cosphi      = other._cosphi;
00094     _sinphi      = other._sinphi;
00095     _status      = other._status;
00096     _T0Walk      = other._T0Walk;
00097   }
00098   return *this;
00099 }

bool MdcHit::operator== const MdcHit  )  const
 

bool MdcHit::operator== const MdcHit  )  const
 

00117                                             {
00118   return (this == &rhs);
00119 }

const double MdcHit::phi double  z  )  const [inline]
 

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

double MdcHit::phi void   )  const [inline]
 

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

const double MdcHit::phi double  z  )  const [inline]
 

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

double MdcHit::phi void   )  const [inline]
 

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

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

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

00122                                 {
00123   o << "(" <<setw(2)<<  _layer << ","<<setw(3) << _wire <<")";
00124 }

void MdcHit::printAll std::ostream o  )  const [virtual]
 

Reimplemented from TrkFundHit.

void MdcHit::printAll std::ostream o  )  const [virtual]
 

Reimplemented from TrkFundHit.

00127                                    {
00128   o << "Hit:(" <<  _layer << "," << _wire 
00129     << ") x:" << x() << " y:" << y()
00130     << " rt:" << rawTime()
00131     << " dt:" <<driftTime(0.0,0)
00132     << " dd:" <<driftDist(0.0,1)
00133     << endl;
00134 }

double MdcHit::rawTime  )  const [inline]
 

00066 { return _rawTime; }

double MdcHit::rawTime  )  const [inline]
 

00066 { return _rawTime; }

double MdcHit::rMid void   )  const [inline]
 

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

double MdcHit::rMid  )  const [inline]
 

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

void MdcHit::setCalibSvc const MdcCalibFunSvc calibSvc  ) 
 

void MdcHit::setCalibSvc const MdcCalibFunSvc calibSvc  ) 
 

00137                                                   { 
00138   m_mdcCalibFunSvc = calibSvc;  
00139   _T0Walk = m_mdcCalibFunSvc->getT0(_layer,_wire) +  m_mdcCalibFunSvc->getTimeWalk(_layer, _iAdc);
00140 }

void MdcHit::setCosmicFit const bool  cosmicfit  )  [inline]
 

00087 { m_cosmicFit = cosmicfit; }

void MdcHit::setCosmicFit const bool  cosmicfit  )  [inline]
 

00087 { m_cosmicFit = cosmicfit; }

void MdcHit::setCountPropTime const bool  count  )  [inline]
 

00086 { m_countPropTime = count;}

void MdcHit::setCountPropTime const bool  count  )  [inline]
 

00086 { m_countPropTime = count;}

const TrkHitOnTrk* TrkFundHit::setUnusedHit const TrkHitOnTrk hit  )  [inherited]
 

const TrkHitOnTrk * TrkFundHit::setUnusedHit const TrkHitOnTrk hit  )  [inherited]
 

00068 {
00069   if (_hitList.empty()) return 0;
00070   std::vector<const TrkHitOnTrk*>::iterator i=std::find(_hitList.begin(),_hitList.end(),hit);
00071   if (i==_hitList.end()) return 0;
00072   assert(*i==hit);
00073 //  std::cout << "TrkFundHit setUnusedHit "<<((MdcHit*)(hit->hit()))->layernumber()<<" "<<((MdcHit*)(hit->hit()))->wirenumber()<<endl;
00074 //this->printAll(std::cout);//yzhang debug
00075   _hitList.erase(i);
00076   return hit;
00077 }

const TrkHitOnTrk* TrkFundHit::setUsedHit const TrkHitOnTrk hit  )  [inherited]
 

const TrkHitOnTrk * TrkFundHit::setUsedHit const TrkHitOnTrk hit  )  [inherited]
 

00051 {
00052   //  if (hitList->contains(hit)) {
00053   //    return;
00054   //  }
00055   //FIXME: check hot corresponds to this hit??
00056 //      std::cout << "TrkFundHit setUsedHit "<<((MdcHit*)(hit->hit()))->layernumber()<<" "<<((MdcHit*)(hit->hit()))->wirenumber()<<endl;
00057 //      this->printAll(std::cout);//yzhang debug
00058   _hitList.push_back(hit);
00059 //        std::cout << "after push_bak " << std::endl;//yzhang debug
00060 //        printAll(std::cout);//yzhang debug
00061           
00062   return hit;
00063 }

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

double MdcHit::sigma double  ,
int  ,
double  ,
double  ,
double 
const
 

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

00227                                                {
00228   return sigma(driftdist, ambig, 0., 0., 0.);// cm
00229 }

double MdcHit::sigma double  ,
int  ,
double  ,
double  ,
double 
const
 

00191                                      {
00192   double sig = 9999.;
00193 
00194 #ifdef MDCPATREC_RESLAYER
00195   if (_layer == m_resLayer){
00196     //give a huge sigma to skip this layer when fit track
00197     return 9999.;
00198   }
00199 #endif 
00200   if ( m_mdcCalibFunSvc ) {
00201     //layid begin with 0, entrance angle in rads,
00202     //distance: cm ->Calib mm //z: cm -> Calib mm
00203     //Q: MonteCalo eV -> Calib fC FIXME
00204     //lr ambig: wire ambig 1,-1,0 -> Calib 0,1,2 
00205     int lrCalib=2;
00206     if (ambig==1) lrCalib = 0;
00207     else if (ambig==-1) lrCalib = 1;
00208 
00209     double eAngle = EntranceAngle(entranceAngle);
00210     sig = 0.1 * m_mdcCalibFunSvc->getSigma(_layer,lrCalib,driftdist*10.,eAngle,
00211         tan(dipAngle),z*10.,_iAdc); //Calib special resolution mm -> cm
00212 
00213     if(sig<Constants::epsilon){
00214       sig = 999.;
00215     }
00216     //if(sig<=0){
00217       //std::cout<<__FILE__<<"   "<<__LINE__ <<" sigma "<<sig
00218         //<<" layer "<<_layer <<" lrCalib "<<lrCalib <<" driftdist "<<driftdist*10
00219         //<<" eAngle "<<eAngle <<" dipAngle "<<(dipAngle) <<" tanl "<<tan(dipAngle)
00220         //<<" z "<<z <<" iAdc "<<_iAdc <<std::endl;
00221     //}
00222   }
00223   return sig;
00224 }

unsigned MdcHit::status void   )  const [inline]
 

00083 { return _status;}// status

unsigned MdcHit::status void   )  const [inline]
 

00083 { return _status;}// status

unsigned MdcHit::tdcIndex  )  const [inline]
 

00063 { return _iTdc; }

unsigned MdcHit::tdcIndex  )  const [inline]
 

00063 { return _iTdc; }

bool TrkFundHit::usedHit void   )  const [inline, inherited]
 

00057 {return !_hitList.empty();}

bool TrkFundHit::usedHit void   )  const [inline, inherited]
 

00057 {return !_hitList.empty();}

bool TrkFundHit::usedOnTrack const TrkRecoTrk t  )  const [inline, inherited]
 

00067 {return getHitOnTrack(t) != 0;}

bool TrkFundHit::usedOnTrack const TrkRecoTrk t  )  const [inline, inherited]
 

00067 {return getHitOnTrack(t) != 0;}

TrkEnums::TrkViewInfo MdcHit::whatView  )  const [inline, virtual]
 

Implements TrkFundHit.

00074 { return whichView()==0?TrkEnums::xyView:TrkEnums::bothView; }

TrkEnums::TrkViewInfo MdcHit::whatView  )  const [inline, virtual]
 

Implements TrkFundHit.

00074 { return whichView()==0?TrkEnums::xyView:TrkEnums::bothView; }

int MdcHit::whichView void   )  const [inline]
 

00072 { return _layerPtr->view(); } 

int MdcHit::whichView  )  const [inline]
 

00072 { return _layerPtr->view(); } 

const MdcSWire* MdcHit::wire void   )  const [inline]
 

00057 { return _wirePtr;  }

const MdcSWire* MdcHit::wire void   )  const [inline]
 

00057 { return _wirePtr;  }

unsigned MdcHit::wirenumber  )  const [inline]
 

00062 { return _wire; }

unsigned MdcHit::wirenumber  )  const [inline]
 

00062 { return _wire; }

double MdcHit::x double  z  )  const [inline]
 

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

double MdcHit::x void   )  const [inline]
 

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

double MdcHit::x double  z  )  const [inline]
 

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

double MdcHit::x void   )  const [inline]
 

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

double MdcHit::y double  z  )  const [inline]
 

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

double MdcHit::y void   )  const [inline]
 

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

double MdcHit::y double  z  )  const [inline]
 

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

double MdcHit::y void   )  const [inline]
 

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

double MdcHit::zlen  )  const [inline]
 

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

double MdcHit::zlen  )  const [inline]
 

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


Friends And Related Function Documentation

MdcMakeHits [friend]
 

TrkHitOnTrkIter<TrkFundHit> [friend, inherited]
 


Member Data Documentation

double MdcHit::_charge [private]
 

double MdcHit::_cosphi [private]
 

const MdcDigi* MdcHit::_digiPtr [private]
 

const MdcDigi* MdcHit::_digiPtr [private]
 

const MdcDetector* MdcHit::_geomPtr [private]
 

const MdcDetector* MdcHit::_geomPtr [private]
 

std::vector<const TrkHitOnTrk*> TrkFundHit::_hitList [protected, inherited]
 

std::vector<const TrkHitOnTrk*> TrkFundHit::_hitList [protected, inherited]
 

unsigned MdcHit::_iAdc [private]
 

Identifier MdcHit::_id [private]
 

unsigned MdcHit::_iTdc [private]
 

unsigned MdcHit::_layer [private]
 

const MdcLayer* MdcHit::_layerPtr [private]
 

const MdcLayer* MdcHit::_layerPtr [private]
 

double MdcHit::_phi [private]
 

double MdcHit::_rawTime [private]
 

double MdcHit::_rmid [private]
 

double MdcHit::_sinphi [private]
 

unsigned MdcHit::_status [private]
 

double MdcHit::_T0Walk [private]
 

unsigned MdcHit::_wire [private]
 

const MdcSWire* MdcHit::_wirePtr [private]
 

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]
 

const MdcCalibFunSvc* MdcHit::m_mdcCalibFunSvc [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:26:00 2011 for BOSS6.5.5 by  doxygen 1.3.9.1