Changeset 8428 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 04/20/07 14:59:58 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindCam.cc
r8427 r8428 318 318 *fLog << endl; 319 319 320 MCalibrationCam *blindcam = fIntensCam ? fIntensCam->GetCam() : fCam;321 322 320 for (Int_t i=0; i<fHiGainArray->GetSize(); i++) 323 321 { … … 360 358 } 361 359 362 MCalibrationBlindPix &pix = (MCalibrationBlindPix&)(*blindcam)[i]; 363 364 FitBlindPixel(hist,pix); 360 FitBlindPixel(hist, (MCalibrationBlindPix&)(*fCam)[i]); 365 361 } 366 362 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationHiLoCam.cc
r8417 r8428 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationHiLoCam.cc,v 1.2 1 2007-04-18 15:33:56tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationHiLoCam.cc,v 1.22 2007-04-20 13:55:00 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 392 392 pix.SetHivsLoLast (fHivsLoLast); 393 393 394 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j);394 InitHists(pix, fCam->GetAverageBadArea(j), j); 395 395 396 396 if (fCam) … … 425 425 pix.SetHivsLoLast (fHivsLoLast); 426 426 427 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j);427 InitHists(pix, fCam->GetAverageBadSector(j), j); 428 428 429 429 if (fCam) … … 516 516 pix.SetHivsLoLast (fHivsLoLast ); 517 517 518 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j);518 InitHists(pix, fCam->GetAverageBadArea(j), j); 519 519 520 520 h = pix.GetHivsLo(); … … 547 547 pix.SetHivsLoLast (fHivsLoLast); 548 548 549 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j);549 InitHists(pix, fCam->GetAverageBadSector(j), j); 550 550 551 551 h = pix.GetHivsLo(); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r8417 r8428 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.3 5 2007-04-18 15:33:56tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.36 2007-04-20 13:55:00 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 253 253 // Gets or creates the pointers to: 254 254 // - MExtractedSignalCam 255 // - MCalibrationPulseTimeCam or MCalibrationIntensityPulseTimeCam255 // - MCalibrationPulseTimeCam 256 256 // - MBadPixelsCam 257 257 // … … 327 327 pix.SetBinning(fNbins, fFirst, fLast); 328 328 329 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j);329 InitHists(pix, fCam->GetAverageBadArea(j), j); 330 330 } 331 331 } … … 340 340 pix.SetBinning(fNbins, fFirst, fLast); 341 341 342 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j);342 InitHists(pix, fCam->GetAverageBadSector(j), j); 343 343 } 344 344 } … … 464 464 *fLog << endl; 465 465 466 MCalibrationCam &calcam = *(fIntensCam ? fIntensCam->GetCam() : fCam);467 466 // 468 467 // Perform the fitting for the High Gain (done in MHCalibrationCam) … … 472 471 473 472 MHCalibrationPix &hist = (*this)[i]; 474 475 473 if (hist.IsExcluded()) 476 474 continue; 477 475 478 MCalibrationPix &pix = calcam[i]; 479 CalcHists(hist,pix); 476 CalcHists(hist, (*fCam)[i]); 480 477 } 481 478 … … 484 481 485 482 for (Int_t j=0; j<fAverageHiGainAreas->GetSize(); j++) 486 { 487 MHCalibrationPix &hist = GetAverageHiGainArea(j); 488 MCalibrationPix &pix = calcam.GetAverageArea(j); 489 CalcHists(hist,pix); 490 } 483 CalcHists(GetAverageHiGainArea(j), fCam->GetAverageArea(j)); 491 484 492 485 for (Int_t j=0; j<fAverageHiGainSectors->GetSize(); j++) 493 { 494 MHCalibrationPix &hist = GetAverageHiGainSector(j); 495 MCalibrationPix &pix = calcam.GetAverageSector(j); 496 CalcHists(hist,pix); 497 } 486 CalcHists(GetAverageHiGainSector(j), fCam->GetAverageSector(j)); 498 487 499 488 return kTRUE; -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc
r8417 r8428 95 95 #include "MParList.h" 96 96 97 #include "MCalibrationIntensityRelTimeCam.h"98 99 97 #include "MCalibrationRelTimeCam.h" 100 98 #include "MCalibrationRelTimePix.h" … … 446 444 *fLog << endl; 447 445 448 MCalibrationCam *relcam = fIntensCam ? fIntensCam->GetCam() : fCam;449 450 446 const Int_t nareas = fAverageHiGainAreas->GetSize(); 451 447 const Int_t nsectors = fAverageHiGainSectors->GetSize(); … … 467 463 const Int_t sector = (*fGeom)[i].GetSector(); 468 464 469 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*relcam)[i] ;470 471 465 fNumareahi[aidx]++; 472 466 fNumsectorhi[sector]++; 467 473 468 // 474 469 // Check saturation 475 470 // 471 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*fCam)[i] ; 476 472 if (histhi.GetSaturated() > fNumHiGainSaturationLimit*histhi.GetHGausHist()->GetEntries()) 477 473 { … … 496 492 for (Int_t j=0; j<nareas; j++) 497 493 { 498 499 MHCalibrationPix &histhi = GetAverageHiGainArea(j); 500 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&) relcam->GetAverageArea(j);494 495 MHCalibrationPix &histhi = GetAverageHiGainArea(j); 496 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)fCam->GetAverageArea(j); 501 497 502 498 if (satarea[j] > 0.5*fNumareahi[j]) … … 519 515 for (Int_t j=0; j<fAverageHiGainSectors->GetSize(); j++) 520 516 { 521 517 522 518 MHCalibrationPix &histhi = GetAverageHiGainSector(j); 523 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)relcam->GetAverageSector(j) ;524 519 525 520 if (satsect[j] > 0.5*fNumsectorhi[j]) 526 521 { 522 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)fCam->GetAverageSector(j) ; 527 523 pix.SetHiGainSaturation(); 528 524 histhi.SetExcluded(); … … 540 536 } 541 537 542 FitHiGainArrays(* relcam, *fBadPixels,538 FitHiGainArrays(*fCam, *fBadPixels, 543 539 MBadPixelsPix::kRelTimeNotFitted, 544 540 MBadPixelsPix::kRelTimeOscillating); 545 541 546 if (IsLoGain()) 547 FitLoGainArrays(* relcam, *fBadPixels,542 if (IsLoGain()) 543 FitLoGainArrays(*fCam, *fBadPixels, 548 544 MBadPixelsPix::kRelTimeNotFitted, 549 545 MBadPixelsPix::kRelTimeOscillating);
Note:
See TracChangeset
for help on using the changeset viewer.