Changeset 3446 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 03/09/04 19:24:09 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r3445 r3446 235 235 SETBIT(fFlags, kHiLoGainCalibration); 236 236 237 fNumHiGainSamples = 0 ;238 fNumLoGainSamples = 0 ;237 fNumHiGainSamples = 0.; 238 fNumLoGainSamples = 0.; 239 239 fConversionHiLo = 0; 240 240 … … 336 336 fNumHiGainSamples = fSignals->GetNumUsedHiGainFADCSlices(); 337 337 fNumLoGainSamples = fSignals->GetNumUsedLoGainFADCSlices(); 338 fSqrtHiGainSamples = TMath::Sqrt((Float_t)fNumHiGainSamples); 338 fSqrtHiGainSamples = TMath::Sqrt(fNumHiGainSamples); 339 fSqrtLoGainSamples = TMath::Sqrt(fNumLoGainSamples); 339 340 340 341 UInt_t npixels = fGeom->GetNumPixels(); … … 424 425 { 425 426 pix.SetPedestal(ped * fNumLoGainSamples, 426 prms * TMath::Sqrt((Float_t)fNumLoGainSamples),427 prms * fSqrtLoGainSamples, 427 428 prms * fNumLoGainSamples / num); 428 pix.SetNumLoGainSamples( (Float_t)fNumLoGainSamples);429 pix.SetNumLoGainSamples(fNumLoGainSamples); 429 430 pix.ApplyLoGainConversion(); 430 431 } … … 432 433 { 433 434 pix.SetPedestal(ped * fNumHiGainSamples, 434 prms * TMath::Sqrt((Float_t)fNumHiGainSamples),435 prms * fSqrtHiGainSamples, 435 436 prms * fNumHiGainSamples / num); 436 437 } … … 471 472 { 472 473 avinnerpix->SetPedestal(avinnerped/avinnernum * fNumLoGainSamples, 473 avinnerprms/avinnernum * TMath::Sqrt((Float_t)fNumLoGainSamples),474 avinnerprms/avinnernum * TMath::Sqrt((Float_t)fNumLoGainSamples/avinnernum));475 avinnerpix->SetNumLoGainSamples( (Float_t)fNumLoGainSamples);474 avinnerprms/avinnernum * fSqrtLoGainSamples, 475 avinnerprms/avinnernum * fSqrtLoGainSamples/avinnernum); 476 avinnerpix->SetNumLoGainSamples(fNumLoGainSamples); 476 477 avinnerpix->ApplyLoGainConversion(); 477 478 } … … 479 480 { 480 481 avinnerpix->SetPedestal(avinnerped/avinnernum * fNumHiGainSamples, 481 avinnerprms/avinnernum * TMath::Sqrt((Float_t)fNumHiGainSamples),482 avinnerprms/avinnernum * TMath::Sqrt((Float_t)fNumHiGainSamples/avinnernum));482 avinnerprms/avinnernum * fSqrtHiGainSamples, 483 avinnerprms/avinnernum * fSqrtHiGainSamples/avinnernum); 483 484 } 484 485 … … 486 487 { 487 488 avouterpix->SetPedestal(avouterped/avouternum * fNumLoGainSamples, 488 avouterprms/avouternum * TMath::Sqrt((Float_t)fNumLoGainSamples),489 avouterprms/avouternum * TMath::Sqrt((Float_t)fNumLoGainSamples/avouternum));490 avouterpix->SetNumLoGainSamples( (Float_t)fNumLoGainSamples);489 avouterprms/avouternum * fSqrtLoGainSamples, 490 avouterprms/avouternum * fSqrtLoGainSamples/avouternum); 491 avouterpix->SetNumLoGainSamples(fNumLoGainSamples); 491 492 avouterpix->ApplyLoGainConversion(); 492 493 } … … 494 495 { 495 496 avouterpix->SetPedestal(avouterped/avouternum * fNumHiGainSamples, 496 avouterprms/avouternum * TMath::Sqrt((Float_t)fNumHiGainSamples),497 avouterprms/avouternum * TMath::Sqrt((Float_t)fNumHiGainSamples/avouternum));497 avouterprms/avouternum * fSqrtHiGainSamples, 498 avouterprms/avouternum * fSqrtHiGainSamples/avouternum); 498 499 } 499 500 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc
r3429 r3446 317 317 << " Reduced Sigma: " << pix->GetRSigmaCharge() 318 318 << " Nr Phe's: " << pix->GetPheFFactorMethod() 319 << " Saturated? :" << pix->IsHiGainSaturation() 319 320 << endl; 320 321 id++; … … 342 343 << " Reduced Sigma: " << pix->GetRSigmaCharge() 343 344 << " Nr Phe's: " << pix->GetPheFFactorMethod() 345 << " Saturated? :" << pix->IsHiGainSaturation() 344 346 << endl; 345 347 id++; … … 366 368 << " Reduced Sigma: " << pix->GetRSigmaCharge() 367 369 << " Nr Phe's: " << pix->GetPheFFactorMethod() 370 << " Saturated? :" << pix->IsHiGainSaturation() 368 371 << endl; 369 372 id++; … … 702 705 break; 703 706 case 34: 704 if ((*this)[idx].IsExcluded() || !(*fBadPixels)[idx].IsCalibrationSignalOK()) 705 return kFALSE; 706 if ((*this)[idx].IsHiGainSaturation()) 707 val = 1; 708 else 709 return kFALSE; 707 if ((*this)[idx].IsExcluded()) 708 return kFALSE; 709 val = (*this)[idx].IsHiGainSaturation(); 710 710 break; 711 711 case 35:
Note:
See TracChangeset
for help on using the changeset viewer.