#include <MdcAliRecHit.h>
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 | getRawTime () 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 |
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_rawtime |
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 |
Static Private Attributes | |
static const double | m_df = 10.0 |
static const double | m_qf = 1.0 |
Definition at line 15 of file MdcAliRecHit.h.
int MdcAliRecHit::getCellid | ( | ) | const [inline] |
Definition at line 21 of file MdcAliRecHit.h.
References m_cellid.
Referenced by ResiAlign::fillHist().
00021 { return m_cellid; }
double MdcAliRecHit::getChisqAdd | ( | void | ) | const [inline] |
Definition at line 41 of file MdcAliRecHit.h.
References m_chisqadd.
Referenced by setRecHit().
00041 { return m_chisqadd; }
double MdcAliRecHit::getCpa | ( | ) | const [inline] |
double MdcAliRecHit::getDmeas | ( | ) | const [inline] |
double MdcAliRecHit::getDocaExc | ( | ) | const [inline] |
double MdcAliRecHit::getDocaInc | ( | ) | const [inline] |
Definition at line 24 of file MdcAliRecHit.h.
References m_docaInc.
Referenced by MilleAlign::fillHist().
00024 { return m_docaInc; }
double MdcAliRecHit::getDr | ( | ) | const [inline] |
double MdcAliRecHit::getDz | ( | ) | const [inline] |
double MdcAliRecHit::getEntra | ( | void | ) | const [inline] |
Definition at line 40 of file MdcAliRecHit.h.
References m_entra.
Referenced by setKalHit(), and setRecHit().
00040 { return m_entra; }
double MdcAliRecHit::getErrDmeas | ( | ) | const [inline] |
double MdcAliRecHit::getFi0 | ( | ) | const [inline] |
int MdcAliRecHit::getLayid | ( | ) | const [inline] |
Definition at line 20 of file MdcAliRecHit.h.
References m_layid.
Referenced by ResiAlign::fillHist().
00020 { return m_layid; }
int MdcAliRecHit::getLR | ( | ) | const [inline] |
Definition at line 22 of file MdcAliRecHit.h.
References m_lr.
Referenced by ResiAlign::fillHist(), and MilleAlign::fillHist().
00022 { return m_lr; }
double MdcAliRecHit::getQhit | ( | ) | const [inline] |
double MdcAliRecHit::getRawTime | ( | ) | const [inline] |
Definition at line 36 of file MdcAliRecHit.h.
References m_rawtime.
00036 { return m_rawtime; } /* excluding TOF */
double MdcAliRecHit::getResiExc | ( | ) | const [inline] |
double MdcAliRecHit::getResiExcLR | ( | ) | const [inline] |
Definition at line 34 of file MdcAliRecHit.h.
References m_resilrExc.
Referenced by ResiAlign::fillHist().
00034 { return m_resilrExc; }
double MdcAliRecHit::getResiInc | ( | ) | const [inline] |
double MdcAliRecHit::getResiIncLR | ( | ) | const [inline] |
Definition at line 31 of file MdcAliRecHit.h.
References m_resilrInc.
Referenced by ResiAlign::fillHist().
00031 { return m_resilrInc; }
int MdcAliRecHit::getStat | ( | void | ) | const [inline] |
Definition at line 23 of file MdcAliRecHit.h.
References m_stat.
Referenced by setRecHit().
00023 { return m_stat; }
double MdcAliRecHit::getTanl | ( | ) | const [inline] |
double MdcAliRecHit::getTdrift | ( | ) | const [inline] |
double MdcAliRecHit::getTof | ( | void | ) | const [inline] |
Definition at line 43 of file MdcAliRecHit.h.
References m_tof.
Referenced by setKalHit().
00043 { return m_tof; }
double MdcAliRecHit::getZhit | ( | void | ) | const [inline] |
Definition at line 39 of file MdcAliRecHit.h.
References m_zhit.
Referenced by ResiAlign::fillHist(), setKalHit(), and setRecHit().
00039 { return m_zhit; }
void MdcAliRecHit::setKalHit | ( | HelixSegRefVec::iterator | it_hit | ) |
Definition at line 75 of file MdcAliRecHit.cxx.
References Bes_Common::DEBUG, getEntra(), 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_layid, m_lr, m_qf, m_qhit, m_rawtime, m_resiExc, m_resiInc, m_resilrExc, m_resilrInc, m_stat, m_Tanl, m_tdrift, m_tof, m_zhit, msgSvc(), and MdcID::wire().
Referenced by MdcAliRecTrk::setKalTrk().
00075 { 00076 IMessageSvc *msgSvc; 00077 Gaudi::svcLocator()->service("MessageSvc", msgSvc); 00078 MsgStream log(msgSvc, "MdcAliRecHit"); 00079 log << MSG::DEBUG << "MdcAliRecHit::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 00095 if(1 == m_lr){ 00096 m_docaInc *= -1.0; 00097 m_docaExc *= -1.0; 00098 } 00099 00100 m_dmeas = (*it_hit) -> getDD(); 00101 m_errdmeas = 0.013; 00102 00103 m_rawtime = (*it_hit) -> getTdc(); 00104 m_tdrift = (*it_hit) -> getDT(); 00105 00106 m_qhit = (*it_hit) -> getAdc(); 00107 m_zhit = (*it_hit) -> getZhit(); 00108 m_entra = (*it_hit) -> getEntra(); 00109 m_chisqadd = 0.0; 00110 m_tof = (*it_hit) -> getTof(); 00111 00112 m_Dr = (*it_hit) -> getDrExcl(); 00113 m_Fi0 = (*it_hit) -> getFi0Excl(); 00114 m_Cpa = (*it_hit) -> getCpaExcl(); 00115 m_Dz = (*it_hit) -> getDzExcl(); 00116 m_Tanl = (*it_hit) -> getTanlExcl(); 00117 00118 // the following is for cm to mm 00119 m_docaInc *= m_df; 00120 m_docaExc *= m_df; 00121 m_dmeas *= m_df; 00122 m_errdmeas *= m_df; 00123 m_zhit *= m_df; 00124 m_qhit *= m_qf; 00125 00126 m_resiInc = fabs(m_dmeas) - fabs(m_docaInc); 00127 if( 0 == m_lr ) m_resilrInc = -1.0 * m_resiInc; 00128 else m_resilrInc = m_resiInc; 00129 00130 m_resiExc = fabs(m_dmeas) - fabs(m_docaExc); 00131 if( 0 == m_lr ) m_resilrExc = -1.0 * m_resiExc; 00132 else m_resilrExc = m_resiExc; 00133 00134 }
void MdcAliRecHit::setRecHit | ( | HitRefVec::iterator | it_hit | ) |
Definition at line 16 of file MdcAliRecHit.cxx.
References Bes_Common::DEBUG, getChisqAdd(), Alignment::getDoca(), getEntra(), getStat(), 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_rawtime, m_resiExc, m_resiInc, m_resilrExc, m_resilrInc, m_stat, m_tdrift, m_tof, m_zhit, msgSvc(), and MdcID::wire().
Referenced by MdcAliRecTrk::setRecTrk().
00016 { 00017 IMessageSvc *msgSvc; 00018 Gaudi::svcLocator()->service("MessageSvc", msgSvc); 00019 MsgStream log(msgSvc, "MdcAliRecHit"); 00020 log << MSG::DEBUG << "MdcAliRecHit::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_rawtime = (*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;//for recon of pat 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 }
int MdcAliRecHit::m_cellid [private] |
Definition at line 53 of file MdcAliRecHit.h.
Referenced by getCellid(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_chisqadd [private] |
Definition at line 74 of file MdcAliRecHit.h.
Referenced by getChisqAdd(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_Cpa [private] |
const double MdcAliRecHit::m_df = 10.0 [static, private] |
double MdcAliRecHit::m_dmeas [private] |
Definition at line 60 of file MdcAliRecHit.h.
Referenced by getDmeas(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_docaExc [private] |
Definition at line 58 of file MdcAliRecHit.h.
Referenced by getDocaExc(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_docaInc [private] |
Definition at line 57 of file MdcAliRecHit.h.
Referenced by getDocaInc(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_Dr [private] |
double MdcAliRecHit::m_Dz [private] |
double MdcAliRecHit::m_entra [private] |
Definition at line 73 of file MdcAliRecHit.h.
Referenced by getEntra(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_errdmeas [private] |
Definition at line 61 of file MdcAliRecHit.h.
Referenced by getErrDmeas(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_Fi0 [private] |
int MdcAliRecHit::m_layid [private] |
Definition at line 52 of file MdcAliRecHit.h.
Referenced by getLayid(), setKalHit(), and setRecHit().
int MdcAliRecHit::m_lr [private] |
const double MdcAliRecHit::m_qf = 1.0 [static, private] |
double MdcAliRecHit::m_qhit [private] |
Definition at line 71 of file MdcAliRecHit.h.
Referenced by getQhit(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_rawtime [private] |
Definition at line 69 of file MdcAliRecHit.h.
Referenced by getRawTime(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_resiExc [private] |
Definition at line 66 of file MdcAliRecHit.h.
Referenced by getResiExc(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_resiInc [private] |
Definition at line 63 of file MdcAliRecHit.h.
Referenced by getResiInc(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_resilrExc [private] |
Definition at line 67 of file MdcAliRecHit.h.
Referenced by getResiExcLR(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_resilrInc [private] |
Definition at line 64 of file MdcAliRecHit.h.
Referenced by getResiIncLR(), setKalHit(), and setRecHit().
int MdcAliRecHit::m_stat [private] |
Definition at line 55 of file MdcAliRecHit.h.
Referenced by getStat(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_Tanl [private] |
double MdcAliRecHit::m_tdrift [private] |
Definition at line 70 of file MdcAliRecHit.h.
Referenced by getTdrift(), setKalHit(), and setRecHit().
double MdcAliRecHit::m_tof [private] |
double MdcAliRecHit::m_zhit [private] |
Definition at line 72 of file MdcAliRecHit.h.
Referenced by getZhit(), setKalHit(), and setRecHit().