Changeset 4402 for trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
- Timestamp:
- 07/16/04 14:11:19 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4390 r4402 207 207 #include "MCalibrationChargePINDiode.h" 208 208 #include "MCalibrationChargeBlindPix.h" 209 #include "MCalibrationChargeBlindCam.h" 209 210 210 211 #include "MExtractedSignalCam.h" … … 309 310 fCam = NULL; 310 311 fBlindPixel = NULL; 312 fBlindCam = NULL; 311 313 fPINDiode = NULL; 312 314 fPedestals = NULL; … … 433 435 if (!fBlindPixel) 434 436 { 437 fBlindCam = (MCalibrationChargeBlindCam*)pList->FindObject("MCalibrationChargeBlindCam"); 438 if (!fBlindCam) 439 { 435 440 *fLog << endl; 436 441 *fLog << warn << GetDescriptor() 437 << ": MCalibrationChargeBlindPix not found... no Blind Pixel method! " << endl; 442 << ": MCalibrationChargeBlindPix nor MCalibrationChargeBlindCam " 443 << " found... no Blind Pixel method! " << endl; 444 } 438 445 } 439 446 … … 456 463 if (fBlindPixel) 457 464 fBlindPixel->SetColor( fPulserColor ); 465 466 if (fBlindCam) 467 fBlindCam->SetColor( fPulserColor ); 458 468 459 469 if (fPINDiode) … … 477 487 return kFALSE; 478 488 } 489 490 if (fBlindCam) 491 if (fPulserColor != fBlindCam->GetColor()) 492 { 493 *fLog << err << GetDescriptor() 494 << ": Pulser colour has changed w.r.t. last file in MCalibrationChargeBlindCam." << endl; 495 *fLog << err << "This feature is not yet implemented, sorry ... aborting " << endl; 496 return kFALSE; 497 } 479 498 480 499 if (fPINDiode) … … 577 596 << ": MCalibrationChargeBlindPix is declared not valid... no Blind Pixel method! " << endl; 578 597 fBlindPixel = NULL; 598 } 599 600 if (fBlindCam) 601 if (!fBlindCam->IsValid()) 602 { 603 *fLog << warn << GetDescriptor() 604 << ": MCalibrationChargeBlindCam is declared not valid... no Blind Pixel method! " << endl; 605 fBlindCam = NULL; 579 606 } 580 607 … … 694 721 if (fBlindPixel) 695 722 fBlindPixel->SetReadyToSave(); 723 if (fBlindCam) 724 fBlindCam->SetReadyToSave(); 696 725 if (fPINDiode) 697 726 fPINDiode->SetReadyToSave();
Note:
See TracChangeset
for help on using the changeset viewer.