Changeset 4885
- Timestamp:
- 09/07/04 13:44:17 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4884 r4885 53 53 * mcalib/MHCalibrationCam.[h,cc] 54 54 * mcalib/MHCalibrationChargeCam.cc 55 * mcalib/MHCalibrationRelTimeCam.cc 55 56 - added bool kLoGain which is set if number of LoGain Slices in 56 57 MRawRunHeader is not 0. This excludes the low gain calculations -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeBlindPix.cc
r4669 r4885 1072 1072 } 1073 1073 1074 if (!IsEmpty() && !IsOnlyOverflow() )1074 if (!IsEmpty() && !IsOnlyOverflow() && !IsOnlyUnderflow()) 1075 1075 gPad->SetLogy(); 1076 1076 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePINDiode.cc
r4583 r4885 375 375 return; 376 376 377 if (!IsOnlyOverflow() )377 if (!IsOnlyOverflow() && !IsOnlyUnderflow()) 378 378 gPad->SetLogy(); 379 379 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimeCam.cc
r4882 r4885 200 200 } 201 201 202 if (fLoGainArray->GetEntries()==0 )202 if (fLoGainArray->GetEntries()==0 && fLoGain ) 203 203 { 204 204 fLoGainArray->Expand(npixels); … … 229 229 } 230 230 231 if (fAverageLoGainAreas->GetEntries()==0 )231 if (fAverageLoGainAreas->GetEntries()==0 && fLoGain ) 232 232 { 233 233 fAverageLoGainAreas->Expand(nareas); … … 263 263 } 264 264 265 if (fAverageLoGainSectors->GetEntries()==0 )265 if (fAverageLoGainSectors->GetEntries()==0 && fLoGain ) 266 266 { 267 267 fAverageLoGainSectors->Expand(nsectors); … … 348 348 const Int_t sector = (*fGeom)[i].GetSector(); 349 349 350 if (pix.IsLoGainUsed() )350 if (pix.IsLoGainUsed() && fLoGain) 351 351 { 352 352 const Float_t reltime = pix.GetArrivalTimeLoGain() - reftime; … … 361 361 { 362 362 const Float_t reltime = pix.GetArrivalTimeHiGain() - reftime; 363 363 364 histhi.FillHistAndArray(reltime) ; 364 365 fSumareahi [aidx] += reltime; … … 374 375 histhi.FillHistAndArray(fNumareahi[j] == 0 ? 0. : fSumareahi[j]/fNumareahi[j]); 375 376 376 MHGausEvents &histlo = GetAverageLoGainArea(j); 377 histlo.FillHistAndArray(fNumarealo[j] == 0 ? 0. : fSumarealo[j]/fNumarealo[j]); 377 if (fLoGain) 378 { 379 MHGausEvents &histlo = GetAverageLoGainArea(j); 380 histlo.FillHistAndArray(fNumarealo[j] == 0 ? 0. : fSumarealo[j]/fNumarealo[j]); 381 } 378 382 } 379 383 … … 383 387 histhi.FillHistAndArray(fNumsectorhi[j] == 0 ? 0. : fSumsectorhi[j]/fNumsectorhi[j]); 384 388 385 MHGausEvents &histlo = GetAverageLoGainSector(j); 386 histlo.FillHistAndArray(fNumsectorlo[j] == 0 ? 0. : fSumsectorlo[j]/fNumsectorlo[j]); 389 if (fLoGain) 390 { 391 MHGausEvents &histlo = GetAverageLoGainSector(j); 392 histlo.FillHistAndArray(fNumsectorlo[j] == 0 ? 0. : fSumsectorlo[j]/fNumsectorlo[j]); 393 } 387 394 } 388 395 … … 414 421 } 415 422 else 416 (*this)(i).SetExcluded(); 417 418 } 419 423 if (fLoGain) 424 (*this)(i).SetExcluded(); 425 426 } 427 428 420 429 for (Int_t j=0; j<fAverageHiGainAreas->GetSize(); j++) 421 430 { … … 429 438 } 430 439 else 431 GetAverageLoGainArea(j).SetExcluded(); 440 if (fLoGain) 441 GetAverageLoGainArea(j).SetExcluded(); 432 442 433 443 } … … 444 454 } 445 455 else 446 GetAverageHiGainSector(j).SetExcluded();447 }448 456 if (fLoGain) 457 GetAverageLoGainSector(j).SetExcluded(); 458 } 449 459 450 460 FitHiGainArrays((*fCam),*fBadPixels, 451 461 MBadPixelsPix::kRelTimeNotFitted, 452 462 MBadPixelsPix::kRelTimeOscillating); 453 454 FitLoGainArrays((*fCam),*fBadPixels, 455 MBadPixelsPix::kRelTimeNotFitted, 456 MBadPixelsPix::kRelTimeOscillating); 463 464 if (fLoGain) 465 FitLoGainArrays((*fCam),*fBadPixels, 466 MBadPixelsPix::kRelTimeNotFitted, 467 MBadPixelsPix::kRelTimeOscillating); 457 468 458 469 return kTRUE; … … 489 500 // ============== 490 501 // 491 // 0: Fitted Mean Relative Arrival Time in ns (MHGausEvents::GetMean()*MHCalibrationRelTimePix::GetFADCSliceWidth())492 // 1: Error Mean Relative Arrival Time in ns (MHGausEvents::GetMeanErr()*MHCalibrationRelTimePix::GetFADCSliceWidth())493 // 2: Sigma fitted Relative Arrival Time in ns (MHGausEvents::GetSigma()*MHCalibrationRelTimePix::GetFADCSliceWidth())494 // 3: Error Sigma Relative Arrival Time in ns (MHGausEvents::GetSigmaErr()*MHCalibrationRelTimePix::GetFADCSliceWidth())502 // 0: Fitted Mean Relative Arrival Time in FADC slices (MHGausEvents::GetMean()*MHCalibrationRelTimePix::GetFADCSliceWidth()) 503 // 1: Error Mean Relative Arrival Time in FADC slices (MHGausEvents::GetMeanErr()*MHCalibrationRelTimePix::GetFADCSliceWidth()) 504 // 2: Sigma fitted Relative Arrival Time in FADC slices (MHGausEvents::GetSigma()*MHCalibrationRelTimePix::GetFADCSliceWidth()) 505 // 3: Error Sigma Relative Arrival Time in FADC slices (MHGausEvents::GetSigmaErr()*MHCalibrationRelTimePix::GetFADCSliceWidth()) 495 506 // 496 507 // Useful variables derived from the fit results: … … 512 523 513 524 const MHCalibrationRelTimePix &pix = (MHCalibrationRelTimePix&)(*this)[idx]; 514 const Float_t fadc2ns = pix.GetFADCSliceWidth();515 525 516 526 switch (type) 517 527 { 518 528 case 0: 519 val = pix.GetMean() *fadc2ns;529 val = pix.GetMean(); 520 530 break; 521 531 case 1: 522 val = pix.GetMeanErr() *fadc2ns;532 val = pix.GetMeanErr(); 523 533 break; 524 534 case 2: 525 val = pix.GetSigma() *fadc2ns;535 val = pix.GetSigma(); 526 536 break; 527 537 case 3: 528 val = pix.GetSigmaErr() *fadc2ns;538 val = pix.GetSigmaErr(); 529 539 break; 530 540 case 4:
Note:
See TracChangeset
for help on using the changeset viewer.