170 const int& tofmin,
const int& tofmax)
173 const double tofcoreng[] = {0.8660, 1.7321, 5.4772, 17.3205};
174 const double tofcor110[] = {1.14, 1.07, 1.02, 1.01};
175 const double tofcor111[] = {1.17, 1.09, 1.03, 1.01};
176 const double tofcor112[] = {1.21, 1.11, 1.05, 1.02};
177 const double tofcor113[] = {1.26, 1.15, 1.07, 1.04};
178 const double tofcor114[] = {1.32, 1.20, 1.11, 1.06};
179 const double tofcor115[] = {1.40, 1.27, 1.17, 1.11};
180 const double tofcor116[] = {1.50, 1.36, 1.24, 1.17};
181 const double tofcor117[] = {1.63, 1.47, 1.35, 1.28};
182 const double tofcor118[] = {1.79, 1.63, 1.51, 1.43};
183 const double tofcor119[] = {2.01, 1.85, 1.73, 1.67};
184 const double* tofcor[] = {tofcor110, tofcor111, tofcor112,
185 tofcor113, tofcor114, tofcor115,
186 tofcor116, tofcor117, tofcor118,
190 double tofcorr = 1.0;
194 std::string msg =
"Minimum of ToF selection window "+
196 " is smaller than 110. No ToF correction is "
197 "available for this value.";
200 else if (tofmin > 119) {
201 std::string msg =
"Minimum of ToF selection window "+
203 " is larger than 119. No ToF correction is "
204 "available for this value.";
207 else if (tofmax != 130) {
208 std::string msg =
"Maximum of ToF selection window "+
210 " is not 130. No ToF correction is available for "
217 double energy = std::sqrt(emin.
MeV() * emax.
MeV());
226 int i = tofmin - 110;