Changeset 3724 for trunk/MagicSoft/Mars
- Timestamp:
- 04/13/04 19:43:53 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3723 r3724 53 53 * mjobs/MJCalibration.cc 54 54 - updated documentation, updated QE Cam 55 56 57 * mcalib/MCalibrationChargePix.[h,cc] 58 - put GetRSigmaPerCharge into this class 55 59 56 60 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r3703 r3724 408 408 *fLog << warn << GetDescriptor() 409 409 << "MCalibrationChargePINDiode not found... no PIN Diode method! " << endl; 410 410 411 411 412 // … … 520 521 return kFALSE; 521 522 523 if (fPINDiode) 524 if (!fPINDiode->IsValid()) 525 { 526 *fLog << warn << GetDescriptor() 527 << ": MCalibrationChargePINDiode is declared not valid... no PIN Diode method! " << endl; 528 fPINDiode = NULL; 529 } 530 531 if (fBlindPixel) 532 if (!fBlindPixel->IsValid()) 533 { 534 *fLog << warn << GetDescriptor() 535 << ": MCalibrationChargeBlindPix is declared not valid... no Blind Pixel method! " << endl; 536 fBlindPixel = NULL; 537 } 538 522 539 // 523 540 // First loop over pixels, call FinalizePedestals and FinalizeCharges … … 666 683 "Pixels with Low Gain Saturation: "); 667 684 PrintUncalibrated(MBadPixelsPix::kMeanTimeInFirstBin, 668 Form("%s%2.1f%s","Mean Abs. Arr. Time in First ",1 ," Bin(s): "));685 Form("%s%2.1f%s","Mean Abs. Arr. Time in First ",1.," Bin(s): ")); 669 686 PrintUncalibrated(MBadPixelsPix::kMeanTimeInLast2Bins, 670 Form("%s%2.1f%s","Mean Abs. Arr. Time in Last ",2 ," Bin(s): "));687 Form("%s%2.1f%s","Mean Abs. Arr. Time in Last ",2.," Bin(s): ")); 671 688 PrintUncalibrated(MBadPixelsPix::kHiGainOscillating, 672 689 "Pixels with changing Hi Gain signal over time: "); -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r3712 r3724 401 401 // -------------------------------------------------------------------------- 402 402 // 403 // Get the reduced Sigma per Charge: 404 // - If GetRSigma() is smaller or equal 0. (i.e. has not yet been set), return -1. 405 // - If GetMean() is 0. or -1. (i.e. has not yet been set), return -1. 406 // - Return GetRSigma() / GetMean() 407 // 408 Float_t MCalibrationChargePix::GetRSigmaPerCharge() const 409 { 410 411 const Float_t rsigma = GetRSigma(); 412 413 if (rsigma <= 0) 414 return -1.; 415 416 417 const Float_t mean = GetMean(); 418 419 if (mean == 0. || mean == -1.) 420 return -1.; 421 422 return rsigma / mean; 423 } 424 425 426 // -------------------------------------------------------------------------- 427 // 428 // Get the error of the reduced Sigma per Charge: 429 // - If GetRSigmaRelVar() is smaller or equal 0. (i.e. has not yet been set), return -1. 430 // - If GetMeanRelVar() is smaller or equal 0. (i.e. has not yet been set), return -1. 431 // - Return the propagated error of GetRSigmaPerCharge() 432 // 433 Float_t MCalibrationChargePix::GetRSigmaPerChargeErr() const 434 { 435 436 const Float_t rsigmarelvar = GetRSigmaRelVar(); 437 438 if (rsigmarelvar <= 0) 439 return -1.; 440 441 442 const Float_t meanrelvar = GetMeanRelVar(); 443 444 if (meanrelvar <= 0.) 445 return -1.; 446 447 return TMath::Sqrt(rsigmarelvar + meanrelvar) * GetRSigmaPerCharge(); 448 } 449 450 // -------------------------------------------------------------------------- 451 // 403 452 // Get the reduced Sigma Square: 404 453 // - If fRSigmaSquare is smaller than 0 (i.e. has not yet been set), return -1. -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.h
r3683 r3724 93 93 Float_t GetRSigma () const; 94 94 Float_t GetRSigmaErr () const; 95 Float_t GetRSigmaPerCharge () const; 96 Float_t GetRSigmaPerChargeErr () const; 95 97 Float_t GetRSigmaSquare () const; 96 98 Float_t GetRSigmaRelVar () const; -
trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.cc
r3690 r3724 1111 1111 fAvNormFFactorVar = 1./ sumweights ; 1112 1112 1113 SetAverageQEFFactorAvailable(); 1114 1113 1115 return kTRUE; 1114 1116
Note:
See TracChangeset
for help on using the changeset viewer.