Changeset 4402 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 07/16/04 14:11:19 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/CalibLinkDef.h
r3980 r4402 20 20 #pragma link C++ class MCalibrationChargeCam+; 21 21 #pragma link C++ class MCalibrationChargePix+; 22 #pragma link C++ class MCalibrationChargeBlindCam+; 22 23 #pragma link C++ class MCalibrationChargeBlindPix+; 23 24 #pragma link C++ class MCalibrationChargePINDiode+; … … 28 29 #pragma link C++ class MHCalibrationChargeHiGainPix+; 29 30 #pragma link C++ class MHCalibrationChargeLoGainPix+; 31 #pragma link C++ class MHCalibrationChargeBlindCam+; 30 32 #pragma link C++ class MHCalibrationChargeBlindPix+; 31 33 #pragma link C++ class MHCalibrationChargePINDiode+; -
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(); -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r4390 r4402 32 32 class MPedestalPix; 33 33 class MCalibrationChargePINDiode; 34 class MCalibrationChargeBlindCam; 34 35 class MCalibrationChargeBlindPix; 35 36 class MCalibrationChargePix; … … 82 83 MCalibrationChargeCam *fCam; // Calibrated Charges of all pixels 83 84 MCalibrationChargeBlindPix *fBlindPixel; // Calibrated Charges of the Blind Pixel 85 MCalibrationChargeBlindCam *fBlindCam; // Calibrated Charges of the Blind Pixels 84 86 MCalibrationChargePINDiode *fPINDiode; // Calibrated Charges of the PIN Diode 85 87 MCalibrationQECam *fQECam; // Calibrated Quantum Efficiencies of all pixels
Note:
See TracChangeset
for help on using the changeset viewer.