Changeset 5374 for trunk/MagicSoft
- Timestamp:
- 11/10/04 18:08:04 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5373 r5374 40 40 - added treatment of IsNoiseCalculation() for the "integral" 41 41 method. 42 43 * msignal/MExtractTimeAndChargeSlidingWindow.cc 44 - added treatment of IsNoiseCalculation(). 42 45 43 46 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc
r5292 r5374 246 246 Int_t count = 0; // counter to recognize the AB-flag 247 247 248 Float_t pedes= ped.GetPedestal();248 const Float_t pedes = ped.GetPedestal(); 249 249 const Float_t ABoffs = ped.GetPedestalABoffset(); 250 250 … … 276 276 sat++; 277 277 278 if (IsNoiseCalculation()) 279 return; 280 278 281 // 279 282 // Calculate the i-th sum as … … 287 290 for (p=first; p+fWindowSizeHiGain<end; p++) 288 291 { 289 292 290 293 const Int_t ids = fHiGainFirst + count + fWindowSizeHiGain; 291 294 const Float_t signal = (Float_t)*(p+fWindowSizeHiGain) - PedMean[(ids+abflag) & 0x1]; 292 295 sum += signal - fHiGainSignal[count]; 293 296 fHiGainSignal[count + fWindowSizeHiGain] = signal; 294 297 295 298 if (sum>max) 296 297 299 { 300 max = sum; 298 301 idx = count+1; 299 302 } 300 303 count++; 301 304 } … … 303 306 if (fHiLoLast != 0) 304 307 { 305 308 306 309 // 307 310 // overlap bins … … 311 314 while (p < end && l < logain+fHiLoLast) 312 315 { 313 316 314 317 const Int_t ids = fHiGainFirst + count + fWindowSizeHiGain; 315 318 const Float_t signal = (Float_t)*l - PedMean[(ids+abflag) & 0x1]; … … 319 322 if (*l++ >= fSaturationLimit) 320 323 sat++; 321 324 322 325 if (sum>max) 323 326 { … … 327 330 p++; 328 331 } 329 332 330 333 if (fHiLoLast > fWindowSizeHiGain) 331 334 { … … 339 342 if (*(l+fWindowSizeHiGain) >= fSaturationLimit) 340 343 sat++; 341 344 342 345 if (sum>max) 343 346 { … … 346 349 } 347 350 l++; 348 } 349 } 350 } 351 } /* while (l < logain + fHiLoLast) */ 352 } /* if (fHiLoLast > fWindowSizeHiGain) */ 353 } /* if (fHiLoLast != 0) */ 351 354 352 355 // … … 416 419 sat++; 417 420 421 if (IsNoiseCalculation()) 422 return; 423 418 424 // 419 425 // Calculate the i-th sum as -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r5373 r5374 684 684 // 685 685 Int_t startslice = IsNoiseCalculation() ? 0 : (Int_t)(fAbMaxPos - fRiseTime); 686 Int_t lastslice = IsNoiseCalculation() ? (Int_t)(fRiseTime+fFallTim ) : (Int_t)(fAbMaxPos + fFallTime);686 Int_t lastslice = IsNoiseCalculation() ? (Int_t)(fRiseTime+fFallTime) : (Int_t)(fAbMaxPos + fFallTime); 687 687 688 688 if (startslice < 0) … … 1035 1035 // 1036 1036 Int_t startslice = IsNoiseCalculation() ? 0 : (Int_t)(fAbMaxPos - fRiseTime); 1037 Int_t lastslice = IsNoiseCalculation() ? (Int_t)(fRiseTime+fFallTim ) : (Int_t)(fAbMaxPos + fFallTime + 1);1037 Int_t lastslice = IsNoiseCalculation() ? (Int_t)(fRiseTime+fFallTime) : (Int_t)(fAbMaxPos + fFallTime + 1); 1038 1038 1039 1039 if (startslice < 0)
Note:
See TracChangeset
for help on using the changeset viewer.