MdcCalRecHit Class Reference

#include <MdcCalRecHit.h>

List of all members.

Public Member Functions

void setRecHit (HitRefVec::iterator it_hit)
void setKalHit (HelixSegRefVec::iterator it_hit)
int getLayid () const
int getCellid () const
int getLR () const
int getStat () const
double getDocaInc () const
double getDocaExc () const
double getDmeas () const
double getErrDmeas () const
double getResiInc () const
double getResiIncLR () const
double getResiExc () const
double getResiExcLR () const
double getTdc () const
double getTdrift () const
double getQhit () const
double getZhit () const
double getEntra () const
double getChisqAdd () const
double getTof () const
double getDr () const
double getFi0 () const
double getCpa () const
double getDz () const
double getTanl () const
HepVector getHelix () const
HepSymMatrix getHelixErr () const

Private Attributes

int m_layid
int m_cellid
int m_lr
int m_stat
double m_docaInc
double m_docaExc
double m_dmeas
double m_errdmeas
double m_resiInc
double m_resilrInc
double m_resiExc
double m_resilrExc
double m_tdc
double m_tdrift
double m_qhit
double m_zhit
double m_entra
double m_chisqadd
double m_tof
double m_Dr
double m_Fi0
double m_Cpa
double m_Dz
double m_Tanl
HepVector m_helix
HepSymMatrix m_helixerr

Static Private Attributes

static const double m_df = 10.0
static const double m_qf = 1.0


Detailed Description

Definition at line 18 of file MdcCalRecHit.h.


Member Function Documentation

int MdcCalRecHit::getCellid (  )  const [inline]

Definition at line 24 of file MdcCalRecHit.h.

References m_cellid.

00024 { return m_cellid; }

double MdcCalRecHit::getChisqAdd ( void   )  const [inline]

Definition at line 45 of file MdcCalRecHit.h.

References m_chisqadd.

Referenced by setRecHit().

00045 { return m_chisqadd; }

double MdcCalRecHit::getCpa (  )  const [inline]

Definition at line 51 of file MdcCalRecHit.h.

References m_Cpa.

00051 { return m_Cpa; }

double MdcCalRecHit::getDmeas (  )  const [inline]

Definition at line 31 of file MdcCalRecHit.h.

References m_dmeas.

00031 { return m_dmeas; }

double MdcCalRecHit::getDocaExc (  )  const [inline]

Definition at line 29 of file MdcCalRecHit.h.

References m_docaExc.

00029 { return m_docaExc; }

double MdcCalRecHit::getDocaInc (  )  const [inline]

Definition at line 28 of file MdcCalRecHit.h.

References m_docaInc.

00028 { return m_docaInc; }

double MdcCalRecHit::getDr (  )  const [inline]

Definition at line 49 of file MdcCalRecHit.h.

References m_Dr.

00049 { return m_Dr; }

double MdcCalRecHit::getDz (  )  const [inline]

Definition at line 52 of file MdcCalRecHit.h.

References m_Dz.

00052 { return m_Dz; }

double MdcCalRecHit::getEntra ( void   )  const [inline]

Definition at line 44 of file MdcCalRecHit.h.

References m_entra.

Referenced by setKalHit(), and setRecHit().

00044 { return m_entra; }

double MdcCalRecHit::getErrDmeas (  )  const [inline]

Definition at line 32 of file MdcCalRecHit.h.

References m_errdmeas.

00032 { return m_errdmeas; }

double MdcCalRecHit::getFi0 (  )  const [inline]

Definition at line 50 of file MdcCalRecHit.h.

References m_Fi0.

00050 { return m_Fi0; }

HepVector MdcCalRecHit::getHelix (  )  const [inline]

Definition at line 54 of file MdcCalRecHit.h.

References m_helix.

00054 { return m_helix; }

HepSymMatrix MdcCalRecHit::getHelixErr (  )  const [inline]

Definition at line 55 of file MdcCalRecHit.h.

References m_helixerr.

00055 { return m_helixerr; }

int MdcCalRecHit::getLayid (  )  const [inline]

Definition at line 23 of file MdcCalRecHit.h.

References m_layid.

Referenced by MdcCalib::getCellTrkPass().

00023 { return m_layid; }

int MdcCalRecHit::getLR (  )  const [inline]

Definition at line 25 of file MdcCalRecHit.h.

References m_lr.

00025 { return m_lr; }

double MdcCalRecHit::getQhit (  )  const [inline]

Definition at line 42 of file MdcCalRecHit.h.

References m_qhit.

00042 { return m_qhit; }

double MdcCalRecHit::getResiExc (  )  const [inline]

Definition at line 37 of file MdcCalRecHit.h.

References m_resiExc.

00037 { return m_resiExc; }

double MdcCalRecHit::getResiExcLR (  )  const [inline]

Definition at line 38 of file MdcCalRecHit.h.

References m_resilrExc.

00038 { return m_resilrExc; }

double MdcCalRecHit::getResiInc (  )  const [inline]

Definition at line 34 of file MdcCalRecHit.h.

References m_resiInc.

00034 { return m_resiInc; }

double MdcCalRecHit::getResiIncLR (  )  const [inline]

Definition at line 35 of file MdcCalRecHit.h.

References m_resilrInc.

00035 { return m_resilrInc; }

int MdcCalRecHit::getStat ( void   )  const [inline]

Definition at line 26 of file MdcCalRecHit.h.

References m_stat.

Referenced by setRecHit().

00026 { return m_stat; }

double MdcCalRecHit::getTanl (  )  const [inline]

Definition at line 53 of file MdcCalRecHit.h.

References m_Tanl.

00053 { return m_Tanl; }

double MdcCalRecHit::getTdc ( void   )  const [inline]

Definition at line 40 of file MdcCalRecHit.h.

References m_tdc.

Referenced by setKalHit(), and setRecHit().

00040 { return m_tdc; }

double MdcCalRecHit::getTdrift (  )  const [inline]

Definition at line 41 of file MdcCalRecHit.h.

References m_tdrift.

00041 { return m_tdrift; } 

double MdcCalRecHit::getTof ( void   )  const [inline]

Definition at line 47 of file MdcCalRecHit.h.

References m_tof.

Referenced by setKalHit().

00047 { return m_tof; }

double MdcCalRecHit::getZhit ( void   )  const [inline]

Definition at line 43 of file MdcCalRecHit.h.

References m_zhit.

Referenced by setKalHit(), and setRecHit().

00043 { return m_zhit; }

void MdcCalRecHit::setKalHit ( HelixSegRefVec::iterator  it_hit  ) 

Definition at line 75 of file MdcCalRecHit.cxx.

References Bes_Common::DEBUG, getEntra(), getTdc(), getTof(), getZhit(), MdcID::layer(), m_cellid, m_chisqadd, m_Cpa, m_df, m_dmeas, m_docaExc, m_docaInc, m_Dr, m_Dz, m_entra, m_errdmeas, m_Fi0, m_helix, m_helixerr, m_layid, m_lr, m_qf, m_qhit, m_resiExc, m_resiInc, m_resilrExc, m_resilrInc, m_stat, m_Tanl, m_tdc, m_tdrift, m_tof, m_zhit, msgSvc(), and MdcID::wire().

Referenced by MdcCalRecTrk::setKalTrk().

00075                                                          {
00076      IMessageSvc *msgSvc;
00077      Gaudi::svcLocator()->service("MessageSvc", msgSvc);
00078      MsgStream log(msgSvc, "MdcCalRecHit");
00079      log << MSG::DEBUG << "MdcCalRecHit::setKalHit()" << endreq;
00080 
00081      Identifier identifier;
00082      MdcID mdcid;
00083 
00084      identifier = (*it_hit) -> getMdcId();
00085      m_layid = mdcid.layer(identifier);
00086      m_cellid = mdcid.wire(identifier);
00087      m_stat = 1;
00088 
00089      m_lr = (*it_hit) -> getFlagLR();
00090      if(-1 == m_lr) m_lr = 0;   // definition not same as MdcRecHit
00091 
00092      m_docaInc = (*it_hit) -> getDocaIncl();
00093      m_docaExc = (*it_hit) -> getDocaExcl();
00094      if(1 == m_lr){
00095           m_docaInc *= -1.0;
00096           m_docaExc *= -1.0;
00097      }
00098 
00099      m_dmeas = (*it_hit) -> getDD();
00100      m_errdmeas = 0.013;
00101 
00102      m_tdc = (*it_hit) -> getTdc();
00103      m_tdrift = (*it_hit) -> getDT();
00104 
00105      m_qhit = (*it_hit) -> getAdc();
00106      m_zhit = (*it_hit) -> getZhit();
00107      m_entra = (*it_hit) -> getEntra();
00108      m_chisqadd = 0.0;
00109      m_tof = (*it_hit) -> getTof();
00110 
00111      m_Dr = (*it_hit) -> getDrExcl();
00112      m_Fi0 = (*it_hit) -> getFi0Excl();
00113      m_Cpa = (*it_hit) -> getCpaExcl();
00114      m_Dz = (*it_hit) -> getDzExcl();
00115      m_Tanl = (*it_hit) -> getTanlExcl();
00116      m_helix = (*it_hit)->getHelixExcl();
00117      m_helixerr = (*it_hit)->getErrorExcl();
00118 
00119      // the following is for cm to mm
00120      m_docaInc *= m_df;
00121      m_docaExc *= m_df;
00122      m_dmeas *= m_df;
00123      m_errdmeas *= m_df;
00124      m_zhit *= m_df;
00125      m_qhit *= m_qf;
00126 
00127      m_resiInc = fabs(m_dmeas) - fabs(m_docaInc);
00128      if( 0 == m_lr )   m_resilrInc = -1.0 * m_resiInc;
00129      else              m_resilrInc = m_resiInc;
00130 
00131      m_resiExc = fabs(m_dmeas) - fabs(m_docaExc);
00132      if( 0 == m_lr )   m_resilrExc = -1.0 * m_resiExc;
00133      else              m_resilrExc = m_resiExc;
00134 
00135 }

void MdcCalRecHit::setRecHit ( HitRefVec::iterator  it_hit  ) 

Definition at line 16 of file MdcCalRecHit.cxx.

References Bes_Common::DEBUG, getChisqAdd(), Alignment::getDoca(), getEntra(), getStat(), getTdc(), getZhit(), MdcID::layer(), m_cellid, m_chisqadd, m_df, m_dmeas, m_docaExc, m_docaInc, m_entra, m_errdmeas, m_layid, m_lr, m_qf, m_qhit, m_resiExc, m_resiInc, m_resilrExc, m_resilrInc, m_stat, m_tdc, m_tdrift, m_tof, m_zhit, msgSvc(), and MdcID::wire().

Referenced by MdcCalRecTrk::setRecTrk().

00016                                                     {
00017      IMessageSvc *msgSvc;
00018      Gaudi::svcLocator()->service("MessageSvc", msgSvc);
00019      MsgStream log(msgSvc, "MdcCalRecHit");
00020      log << MSG::DEBUG << "MdcCalRecHit::setRecHit()" << endreq;
00021 
00022      Identifier identifier;
00023      MdcID mdcid;
00024 
00025 //      log << MSG::DEBUG << "hit Id: " << (*it_hit)->getId()
00026 //             << "  hits drift time " << (*it_hit)->getDriftT()
00027 //               << "  hits doca " << (*it_hit)->getDoca()
00028 //             << endreq;
00029 
00030      identifier = (*it_hit)->getMdcId();
00031      m_layid = mdcid.layer(identifier);
00032      m_cellid = mdcid.wire(identifier);
00033      m_lr = (*it_hit) -> getFlagLR();
00034      m_stat = (*it_hit) -> getStat();
00035 
00036      m_docaInc = (*it_hit) -> getDoca();
00037      m_docaExc = m_docaInc;
00038 
00039      if( 0 == m_lr ){
00040           m_dmeas = (*it_hit) -> getDriftDistLeft();
00041           m_errdmeas = (*it_hit) -> getErrDriftDistLeft();
00042      }else{
00043           m_dmeas = (*it_hit) -> getDriftDistRight();
00044           m_errdmeas = (*it_hit) -> getErrDriftDistRight();
00045      }
00046 
00047      m_tdc = (*it_hit) -> getTdc();
00048      m_tdrift = (*it_hit) -> getDriftT();
00049 
00050      m_qhit = (*it_hit) -> getAdc();
00051      m_zhit = (*it_hit) -> getZhit();
00052      m_entra = (*it_hit) -> getEntra();
00053      m_chisqadd = (*it_hit) -> getChisqAdd();
00054 
00055      double flen = (*it_hit) -> getFltLen(); // cm
00056      m_tof = flen / 30.0;
00057 
00058      // the following is for cm to mm
00059      m_docaInc *= m_df;
00060      m_docaExc *= m_df;
00061      m_dmeas *= m_df;
00062      m_errdmeas *= m_df;
00063      m_zhit *= m_df;
00064      m_qhit *= m_qf;
00065 
00066      m_resiInc = fabs(m_dmeas) - fabs(m_docaInc);
00067      if( 0 == m_lr )   m_resilrInc = -1.0 * m_resiInc;
00068      else              m_resilrInc = m_resiInc;
00069 
00070      m_resiExc = fabs(m_dmeas) - fabs(m_docaExc);
00071      if( 0 == m_lr )   m_resilrExc = -1.0 * m_resiExc;
00072      else              m_resilrExc = m_resiExc;
00073 }


Member Data Documentation

int MdcCalRecHit::m_cellid [private]

Definition at line 59 of file MdcCalRecHit.h.

Referenced by getCellid(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_chisqadd [private]

Definition at line 80 of file MdcCalRecHit.h.

Referenced by getChisqAdd(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_Cpa [private]

Definition at line 86 of file MdcCalRecHit.h.

Referenced by getCpa(), and setKalHit().

const double MdcCalRecHit::m_df = 10.0 [static, private]

Definition at line 92 of file MdcCalRecHit.h.

Referenced by setKalHit(), and setRecHit().

double MdcCalRecHit::m_dmeas [private]

Definition at line 66 of file MdcCalRecHit.h.

Referenced by getDmeas(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_docaExc [private]

Definition at line 64 of file MdcCalRecHit.h.

Referenced by getDocaExc(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_docaInc [private]

Definition at line 63 of file MdcCalRecHit.h.

Referenced by getDocaInc(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_Dr [private]

Definition at line 84 of file MdcCalRecHit.h.

Referenced by getDr(), and setKalHit().

double MdcCalRecHit::m_Dz [private]

Definition at line 87 of file MdcCalRecHit.h.

Referenced by getDz(), and setKalHit().

double MdcCalRecHit::m_entra [private]

Definition at line 79 of file MdcCalRecHit.h.

Referenced by getEntra(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_errdmeas [private]

Definition at line 67 of file MdcCalRecHit.h.

Referenced by getErrDmeas(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_Fi0 [private]

Definition at line 85 of file MdcCalRecHit.h.

Referenced by getFi0(), and setKalHit().

HepVector MdcCalRecHit::m_helix [private]

Definition at line 89 of file MdcCalRecHit.h.

Referenced by getHelix(), and setKalHit().

HepSymMatrix MdcCalRecHit::m_helixerr [private]

Definition at line 90 of file MdcCalRecHit.h.

Referenced by getHelixErr(), and setKalHit().

int MdcCalRecHit::m_layid [private]

Definition at line 58 of file MdcCalRecHit.h.

Referenced by getLayid(), setKalHit(), and setRecHit().

int MdcCalRecHit::m_lr [private]

Definition at line 60 of file MdcCalRecHit.h.

Referenced by getLR(), setKalHit(), and setRecHit().

const double MdcCalRecHit::m_qf = 1.0 [static, private]

Definition at line 93 of file MdcCalRecHit.h.

Referenced by setKalHit(), and setRecHit().

double MdcCalRecHit::m_qhit [private]

Definition at line 77 of file MdcCalRecHit.h.

Referenced by getQhit(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_resiExc [private]

Definition at line 72 of file MdcCalRecHit.h.

Referenced by getResiExc(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_resiInc [private]

Definition at line 69 of file MdcCalRecHit.h.

Referenced by getResiInc(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_resilrExc [private]

Definition at line 73 of file MdcCalRecHit.h.

Referenced by getResiExcLR(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_resilrInc [private]

Definition at line 70 of file MdcCalRecHit.h.

Referenced by getResiIncLR(), setKalHit(), and setRecHit().

int MdcCalRecHit::m_stat [private]

Definition at line 61 of file MdcCalRecHit.h.

Referenced by getStat(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_Tanl [private]

Definition at line 88 of file MdcCalRecHit.h.

Referenced by getTanl(), and setKalHit().

double MdcCalRecHit::m_tdc [private]

Definition at line 75 of file MdcCalRecHit.h.

Referenced by getTdc(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_tdrift [private]

Definition at line 76 of file MdcCalRecHit.h.

Referenced by getTdrift(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_tof [private]

Definition at line 82 of file MdcCalRecHit.h.

Referenced by getTof(), setKalHit(), and setRecHit().

double MdcCalRecHit::m_zhit [private]

Definition at line 78 of file MdcCalRecHit.h.

Referenced by getZhit(), setKalHit(), and setRecHit().


Generated on Tue Nov 29 23:20:09 2016 for BOSS_7.0.2 by  doxygen 1.4.7