21 #ifndef STTOFSIMPARAM_H
27 float m_adc_overflow ;
37 float m_geo_from_geant ;
38 float m_GeV_2_n_photons ;
41 float m_position_tolerance ;
45 float m_tdc_overflow ;
74 float m_eff_tof[120][192] ;
89 float adc_overflow()
const;
91 float cath_eff()
const;
92 float cath_surf()
const;
94 float elec_noise()
const;
95 float gate_t0()
const;
96 float gate_width()
const;
97 float geo_from_geant()
const;
98 float GeV_2_n_photons()
const;
99 float nphe_to_adc()
const;
100 float phys_noise()
const;
101 float position_tolerance()
const;
102 float slat_para()
const;
103 float start_res()
const;
104 float surf_loss()
const;
105 float tdc_overflow()
const;
106 float time_res()
const;
109 int nmaxclus()
const;
116 float nclus(
float beta)
const;
117 float vd_mean()
const;
118 float nmeane()
const;
122 float toffset()
const;
123 float adc_thre()
const;
124 float dy_xtalk()
const;
125 float timeres_fee()
const;
127 float timeres_tof()
const;
128 float thre_tof()
const;
129 float timeres_vpd()
const;
130 float thre_vpd()
const;
132 float eff_tof(
int itray,
int imodule,
int icell)
const;
133 float eff_vpd(
int itray,
int itube)
const;
135 bool simuTofp()
const;
136 bool simuVpd()
const;
137 bool simuTofFast()
const;
138 bool simuTofSlow()
const;
140 void setSimuTofp(
bool val) ;
141 void setSimuVpd(
bool val) ;
142 void setSimuTofFast(
bool val) ;
143 void setSimuTofSlow(
bool val) ;
147 inline float StTofSimParam::adc_overflow()
const {
return m_adc_overflow;}
148 inline float StTofSimParam::attlen()
const {
return m_attlen;}
149 inline float StTofSimParam::cath_eff()
const {
return m_cath_eff;}
150 inline float StTofSimParam::cath_surf()
const {
return m_cath_surf;}
151 inline float StTofSimParam::delay()
const {
return m_delay;}
152 inline float StTofSimParam::elec_noise()
const {
return m_elec_noise;}
153 inline float StTofSimParam::gate_t0()
const {
return m_gate_t0;}
154 inline float StTofSimParam::gate_width()
const {
return m_gate_width;}
155 inline float StTofSimParam::geo_from_geant()
const {
return m_geo_from_geant;}
156 inline float StTofSimParam::GeV_2_n_photons()
const {
return m_GeV_2_n_photons;}
157 inline float StTofSimParam::nphe_to_adc()
const {
return m_nphe_to_adc;}
158 inline float StTofSimParam::phys_noise()
const {
return m_phys_noise;}
159 inline float StTofSimParam::position_tolerance()
const {
return m_position_tolerance;}
160 inline float StTofSimParam::slat_para()
const {
return m_slat_para;}
161 inline float StTofSimParam::start_res()
const {
return m_start_res;}
162 inline float StTofSimParam::surf_loss()
const {
return m_surf_loss;}
163 inline float StTofSimParam::tdc_overflow()
const {
return m_tdc_overflow;}
164 inline float StTofSimParam::time_res()
const {
return m_time_res;}
166 inline int StTofSimParam::ngap()
const {
return m_n_gap;}
167 inline int StTofSimParam::nmaxclus()
const {
return m_nmax_clus;}
168 inline float StTofSimParam::din()
const {
return m_d_in;}
169 inline float StTofSimParam::dout()
const {
return m_d_out;}
170 inline float StTofSimParam::dg()
const {
return m_d_gap;}
171 inline float StTofSimParam::alpha()
const {
return m_alpha_dg/m_d_gap;}
172 inline float StTofSimParam::er()
const {
return m_er;}
173 inline float StTofSimParam::ka()
const {
return m_er*m_d_gap/(m_n_gap*m_er*m_d_gap+(m_n_gap-1)*m_d_in+2*m_d_out);}
174 inline float StTofSimParam::vd_mean()
const {
return m_vd_mean;}
175 inline float StTofSimParam::nmeane()
const {
return m_nmean_e;}
176 inline float StTofSimParam::nmaxe()
const {
return m_nmax_e;}
177 inline float StTofSimParam::dt()
const {
return m_dt;}
178 inline int StTofSimParam::ndt()
const {
return m_ndt;}
179 inline float StTofSimParam::toffset()
const {
return m_toffset;}
180 inline float StTofSimParam::adc_thre()
const {
return m_adc_thre;}
181 inline float StTofSimParam::dy_xtalk()
const {
return m_xtalk_dy;}
182 inline float StTofSimParam::timeres_fee()
const {
return m_res_fee;}
183 inline float StTofSimParam::timeres_tof()
const {
return m_res_tof;}
184 inline float StTofSimParam::thre_tof()
const {
return m_thre_tof;}
185 inline float StTofSimParam::timeres_vpd()
const {
return m_res_vpd;}
186 inline float StTofSimParam::thre_vpd()
const {
return m_thre_vpd;}
187 inline float StTofSimParam::eff_tof(
int itray,
int imodule,
int icell)
const {
return m_eff_tof[itray-1][(imodule-1)*6+(icell-1)];}
188 inline float StTofSimParam::eff_vpd(
int itray,
int itube)
const {
return m_eff_vpd[(itray-121)*19+itube-1];}
190 inline bool StTofSimParam::simuTofp()
const {
return mSimuTofp;}
191 inline bool StTofSimParam::simuVpd()
const {
return mSimuVpd;}
192 inline bool StTofSimParam::simuTofFast()
const {
return mSimuTofFast;}
193 inline bool StTofSimParam::simuTofSlow()
const {
return mSimuTofSlow;}
195 inline void StTofSimParam::setSimuTofp(
bool val) {mSimuTofp=val;}
196 inline void StTofSimParam::setSimuVpd(
bool val) {mSimuVpd=val;}
197 inline void StTofSimParam::setSimuTofFast(
bool val) {mSimuTofFast=val;}
198 inline void StTofSimParam::setSimuTofSlow(
bool val) {mSimuTofSlow=val;}
StTofSimParam()
Slow simulator for MRPC-TOF.
~StTofSimParam()
default empty destructor
Time-of-Flight Simulation Utilities.
void init()
initializes calibration from XDF or dBase (not functioning yet)