00001 /* 00002 * @class : RecMdcDedx 00003 * 00004 * this class models "dE/dx" used in Mdc Reconstruction 00005 * 00006 * @author: xcao 00007 * 00008 * ********************************************************/ 00009 00010 00011 #include "MdcRecEvent/RecMdcDedx.h" 00012 00013 RecMdcDedx::RecMdcDedx() { 00014 m_dedx_hit=0; 00015 m_dedx_esat =0; 00016 m_dedx_norun =0; 00017 m_dedx_momentum =0; 00018 for( int i=0; i<5; i++) { 00019 m_dedx_exp[i] = 0.0; 00020 m_sigma_dedx[i] = 0.0; 00021 m_pid_prob[i] = 0.0; 00022 } 00023 m_mdcTrack = 0; 00024 m_mdcKalTrack = 0; 00025 } 00026 00027 RecMdcDedx::RecMdcDedx( const RecMdcDedx& recdedx) 00028 : DstMdcDedx(recdedx) 00029 { 00030 m_dedx_hit=recdedx.m_dedx_hit; 00031 m_dedx_esat =recdedx.m_dedx_esat; 00032 m_dedx_norun =recdedx.m_dedx_norun; 00033 m_dedx_momentum =recdedx.m_dedx_momentum; 00034 for( int i=0; i<5; i++) { 00035 m_dedx_exp[i] = recdedx.m_dedx_exp[i]; 00036 m_sigma_dedx[i] = recdedx.m_sigma_dedx[i]; 00037 m_pid_prob[i] = recdedx.m_pid_prob[i]; 00038 } 00039 m_mdcTrack = recdedx.m_mdcTrack; 00040 m_mdcKalTrack = recdedx.m_mdcKalTrack; 00041 m_vecdedxhit = recdedx.m_vecdedxhit; 00042 } 00043 00044 RecMdcDedx::RecMdcDedx( const DstMdcDedx& dstdedx) 00045 : DstMdcDedx(dstdedx) 00046 { 00047 m_dedx_hit=0; 00048 m_dedx_esat =0; 00049 m_dedx_norun =0; 00050 m_dedx_momentum =0; 00051 for( int i=0; i<5; i++) { 00052 m_dedx_exp[i] = 0.0; 00053 m_sigma_dedx[i] = 0.0; 00054 m_pid_prob[i] = 0.0; 00055 } 00056 m_mdcTrack = 0; 00057 m_mdcKalTrack = 0; 00058 } 00059 00060 RecMdcDedx& RecMdcDedx::operator=(const RecMdcDedx& recdedx) 00061 { 00062 if( &recdedx != this ){ 00063 DstMdcDedx::operator=(recdedx); 00064 m_dedx_hit=recdedx.m_dedx_hit; 00065 m_dedx_esat =recdedx.m_dedx_esat; 00066 m_dedx_norun =recdedx.m_dedx_norun; 00067 m_dedx_momentum =recdedx.m_dedx_momentum; 00068 for( int i=0; i<5; i++) { 00069 m_dedx_exp[i] = recdedx.m_dedx_exp[i]; 00070 m_sigma_dedx[i] = recdedx.m_sigma_dedx[i]; 00071 m_pid_prob[i] = recdedx.m_pid_prob[i]; 00072 } 00073 m_mdcTrack = recdedx.m_mdcTrack; 00074 m_mdcKalTrack = recdedx.m_mdcKalTrack; 00075 m_vecdedxhit = recdedx.m_vecdedxhit; 00076 } 00077 return *this; 00078 } 00079 00080 RecMdcDedx& RecMdcDedx::operator=(const DstMdcDedx& dstdedx) 00081 { 00082 if( &dstdedx != this ){ 00083 DstMdcDedx::operator=(dstdedx); 00084 m_dedx_hit=0; 00085 m_dedx_esat =0; 00086 m_dedx_norun =0; 00087 m_dedx_momentum =0; 00088 for( int i=0; i<5; i++) { 00089 m_dedx_exp[i] = 0; 00090 m_sigma_dedx[i] = 0; 00091 m_pid_prob[i] = 0; 00092 } 00093 m_mdcTrack = 0; 00094 m_mdcKalTrack = 0; 00095 } 00096 return *this; 00097 } 00098 00099 00100 00101 RecMdcDedx::~RecMdcDedx() { 00102 }