Changeset 4752 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 08/27/04 11:36:24 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeFastSpline.cc
r4732 r4752 200 200 pp = fHiGainSecondDeriv[i-1] + 4.; 201 201 fHiGainSecondDeriv[i] = -1.0/pp; 202 fHiGainFirstDeriv [i]= *(p+1) - 2.* *(p) + *(p-1);203 fHiGainFirstDeriv [i] = (6.0* fHiGainFirstDeriv[i]-fHiGainFirstDeriv[i-1])/pp;202 const Double_t deriv = *(p+1) - 2.* *(p) + *(p-1); 203 fHiGainFirstDeriv [i] = (6.0*deriv-fHiGainFirstDeriv[i-1])/pp; 204 204 } 205 205 … … 232 232 // interval maxpos+1. 233 233 // 234 235 Float_t higainklo = fHiGainSecondDeriv[klo]; 236 Float_t higainkhi = fHiGainSecondDeriv[khi]; 234 237 while (x<upper-0.3) 235 238 { … … 241 244 y = a*klocont 242 245 + b*khicont 243 + (a*a*a-a)* fHiGainSecondDeriv[klo]244 + (b*b*b-b)* fHiGainSecondDeriv[khi];246 + (a*a*a-a)*higainklo 247 + (b*b*b-b)*higainkhi; 245 248 246 249 if (y > abmax) … … 265 268 khicont = (Float_t)*(first+khi); 266 269 270 higainklo = fHiGainSecondDeriv[klo]; 271 higainkhi = fHiGainSecondDeriv[khi]; 267 272 while (x<upper-0.3) 268 273 { … … 274 279 y = a* klocont 275 280 + b* khicont 276 + (a*a*a-a)* fHiGainSecondDeriv[klo]277 + (b*b*b-b)* fHiGainSecondDeriv[khi];281 + (a*a*a-a)*higainklo 282 + (b*b*b-b)*higainkhi; 278 283 279 284 if (y > abmax) … … 295 300 step = 0.04; // step size of 83 ps 296 301 302 higainklo = fHiGainSecondDeriv[klo]; 303 higainkhi = fHiGainSecondDeriv[khi]; 297 304 while (x<up) 298 305 { … … 304 311 y = a* klocont 305 312 + b* khicont 306 + (a*a*a-a)* fHiGainSecondDeriv[klo]307 + (b*b*b-b)* fHiGainSecondDeriv[khi];313 + (a*a*a-a)*higainklo 314 + (b*b*b-b)*higainkhi; 308 315 309 316 if (y > abmax) … … 329 336 b = x - lower; 330 337 338 higainklo = fHiGainSecondDeriv[klo]; 339 higainkhi = fHiGainSecondDeriv[khi]; 331 340 while (x>lo) 332 341 { … … 338 347 y = a* klocont 339 348 + b* khicont 340 + (a*a*a-a)* fHiGainSecondDeriv[klo]341 + (b*b*b-b)* fHiGainSecondDeriv[khi];349 + (a*a*a-a)*higainklo 350 + (b*b*b-b)*higainkhi; 342 351 343 352 if (y > abmax)
Note:
See TracChangeset
for help on using the changeset viewer.