00001 #include "EsTimeAlg/EstParameter.h" 00002 00003 EstParameter::EstParameter() 00004 { 00005 00006 //velocity in scintillator 00007 _vscint=17.6; 00008 00009 //drift velocity of electron 00010 _vdrift=4.0e-3; 00011 00012 00013 // optCosmic = 1: employ cosmic correction, 0: don't 00014 00015 // _optCosmic=0; 00016 00017 // cosmicScheme to decide incoming and outgoing legs 00018 // = 0: 2hits+TDCdiff 1: 2hits+Phi 00019 // 2: All hits+Phi 00020 // _cosmicScheme=0; 00021 00022 // SkipMC = 1: Skip timing determination for MC 0: Don't 00023 _SkipMC=1; 00024 00025 //Skip =1 : Skip timing determination for MC 0: Don't 00026 _Skip=1; 00027 00028 // ptCut,drCut,dzCut: fzisan track param cuts 00029 _ptCut=0.0; 00030 _drCut=5.0; 00031 _dzCut=50.0; 00032 00033 // Cuts on path length and tof z-position on 00034 // fzisan tracks extrapolated to TOF counters 00035 00036 _pathlCut=500.0; 00037 _ztofCutmin=-140.0; 00038 _ztofCutmax=140.0; 00039 00040 // TOF time internal offset 00041 _timeOfs=0.0; 00042 00043 // Skip = 1: Skip CDCtime if TOFtime is available 0: Don't 00044 _MDC_Skip=1; 00045 00046 _MDC_Inner=0; 00047 // ptCut,drCut,dzCut: fzisan track param cuts 00048 _MDC_drCut=10.0; 00049 _MDC_dzCut=50.0; 00050 //Tof corr. (0:off;1:on) 00051 _MDC_Tof=1; 00052 00053 //Propagation delay corr. (0:off;1:on) 00054 _MDC_Prop=1; 00055 00056 //Time walk corr. (0:off;1:on for data) 00057 _MDC_Walk=1; 00058 00059 //debug (0:off;1:on) 00060 _MDC_Debug=1; 00061 00062 //xt (1:linear x-t; 2:non-linear x-t) 00063 _MDC_Xt=1; 00064 00065 //inner 4 layers(0:not use; 1:use) 00066 _MDC_Inner=0; 00067 } 00068 00069 EstParameter::~EstParameter(){ 00070 } 00071 00072 double EstParameter::vscint() const 00073 { 00074 return _vscint; 00075 } 00076 00077 double EstParameter::vdrift() const 00078 { 00079 return _vdrift; 00080 } 00081 00082 int EstParameter::SkipMC() const 00083 { 00084 return _SkipMC; 00085 } 00086 00087 int EstParameter::Skip() const 00088 { 00089 return _Skip; 00090 } 00091 00092 double EstParameter::ptCut() const 00093 { 00094 return _ptCut; 00095 } 00096 00097 double EstParameter::drCut() const 00098 { 00099 return _drCut; 00100 } 00101 00102 double EstParameter::dzCut() const 00103 { 00104 return _dzCut; 00105 } 00106 00107 double EstParameter::pathlCut() const 00108 { 00109 return _pathlCut; 00110 } 00111 00112 double EstParameter::ztofCutmin() const 00113 { 00114 return _ztofCutmin; 00115 } 00116 00117 double EstParameter::ztofCutmax() const 00118 { 00119 return _ztofCutmax; 00120 } 00121 00122 double EstParameter::timeOfs() const 00123 { 00124 return _timeOfs; 00125 } 00126 00127 double EstParameter::MDC_Skip() const 00128 { 00129 return _MDC_Skip; 00130 } 00131 00132 double EstParameter::MDC_Inner() const 00133 { 00134 return _MDC_Inner; 00135 } 00136 00137 double EstParameter::MDC_drCut() const 00138 { 00139 return _MDC_drCut; 00140 } 00141 00142 double EstParameter::MDC_dzCut() const 00143 { 00144 return _MDC_dzCut; 00145 } 00146 00147 double EstParameter::MDC_Tof() const 00148 { 00149 return _MDC_Tof; 00150 } 00151 00152 double EstParameter::MDC_Prop() const 00153 { 00154 return _MDC_Prop; 00155 } 00156 00157 double EstParameter::MDC_Walk() const 00158 { 00159 return _MDC_Walk; 00160 } 00161 00162 int EstParameter::MDC_Debug() const 00163 { 00164 return _MDC_Debug; 00165 } 00166 00167 double EstParameter::MDC_Xt() const 00168 { 00169 return _MDC_Xt; 00170 } 00171 00172