Changeset 5723 for trunk/MagicSoft/Mars
- Timestamp:
- 01/07/05 16:22:52 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5722 r5723 25 25 - Added #include "TSystem.h", otherwise gSystem is not recognized 26 26 in Mac OSX. 27 27 28 * manalysis/MMakePadHistograms.cc 28 29 - Changed badcalc.SetNamePedPhotContainer to 29 30 badcalc.SetNamePedPhotCam 31 32 30 33 31 34 2005/01/07 Thomas Bretz … … 58 61 * manalysis/Makefile: 59 62 - removed unintantionally introduced wrong include 63 64 * msignal/MExtractTimeAndChargeDigitalFilter.cc: 65 - a small acceleration discussed with Hendrik by replacing a 66 counter in a loop by pointer arithmetics 60 67 61 68 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5701 r5723 227 227 Byte_t maxpos = 0; 228 228 Byte_t max = 0; 229 Int_t count = 0;230 229 231 230 // … … 235 234 const Float_t ABoffs = ped.GetPedestalABoffset(); 236 235 237 Float_t pedmean[2]; 238 pedmean[0] = pedes + ABoffs; 239 pedmean[1] = pedes - ABoffs; 236 const Float_t pedmean[2] = { pedes + ABoffs, pedes - ABoffs }; 240 237 241 238 // 242 239 // Check for saturation in all other slices 243 240 // 241 Int_t ids = fHiGainFirst; 242 Float_t *sample = fHiGainSignal.GetArray(); 244 243 while (p<end) 245 244 { 246 247 const Int_t ids = fHiGainFirst + count ; 248 const Float_t signal = (Float_t)*p - pedmean[(ids+abflag) & 0x1]; 249 fHiGainSignal[count] = signal; 250 251 count++; 245 *sample++ = (Float_t)*p - pedmean[(ids++ + abflag) & 0x1]; 252 246 253 247 if (*p > max) … … 266 260 end = logain + fHiLoLast; 267 261 262 ids = fHiGainFirst; 263 sample = fHiGainSignal.GetArray(); 268 264 while (logain<end) 269 265 { 270 266 271 const Int_t ids = fHiGainFirst + range ; 272 const Float_t signal = (Float_t)*logain - pedmean[(ids+abflag) & 0x1]; 273 fHiGainSignal[range] = signal; 267 *sample++ = (Float_t)*logain - pedmean[(ids++ + abflag) & 0x1]; 274 268 range++; 275 269 … … 402 396 Byte_t maxpos = 0; 403 397 Byte_t max = 0; 404 Int_t count = 0;405 398 406 399 // … … 410 403 const Float_t ABoffs = ped.GetPedestalABoffset(); 411 404 412 Float_t pedmean[2]; 413 pedmean[0] = pedes + ABoffs; 414 pedmean[1] = pedes - ABoffs; 405 const Float_t pedmean[2] = { pedes + ABoffs, pedes - ABoffs }; 415 406 416 407 // 417 408 // Check for saturation in all other slices 418 409 // 410 Float_t *sample = fLoGainSignal.GetArray(); 411 Int_t ids = fLoGainFirst; 419 412 while (p<end) 420 413 { 421 422 const Int_t ids = fLoGainFirst + count ; 423 const Float_t signal = (Float_t)*p - pedmean[(ids+abflag) & 0x1]; 424 fLoGainSignal[count] = signal; 425 426 count++; 414 *sample++ = (Float_t)*p - pedmean[(ids++ + abflag) & 0x1]; 427 415 428 416 if (*p > max)
Note:
See TracChangeset
for help on using the changeset viewer.