Changeset 5852 for trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
- Timestamp:
- 01/15/05 15:43:54 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r5821 r5852 271 271 // 272 272 MCalibrationChargeCalc::MCalibrationChargeCalc(const char *name, const char *title) 273 : fGeom(NULL), fSignal(NULL), f Header(NULL)273 : fGeom(NULL), fSignal(NULL), fEvtHeader(NULL) 274 274 { 275 275 … … 349 349 // 350 350 // The following container are searched for and execution aborted if not in MParList: 351 // - MPedestalCam 351 352 // - MRawEvtHeader 352 // - MPedestalCam353 353 // - MExtractedSignalCam 354 354 // … … 356 356 { 357 357 358 fHeader = (MRawEvtHeader*)pList->FindObject("MRawEvtHeader"); 359 if (!fHeader) 358 /* 359 if (IsInterlaced()) 360 { 361 fTrigPattern = (MTriggerPattern*)pList->FindObject("MTriggerPattern"); 362 if (!fTrigPattern) 363 { 364 *fLog << err << "MTriggerPattern not found... abort." << endl; 365 return kFALSE; 366 } 367 } 368 */ 369 370 fEvtHeader = (MRawEvtHeader*)pList->FindObject("MRawEvtHeader"); 371 if (!fEvtHeader) 360 372 { 361 373 *fLog << err << "MRawEvtHeader not found... abort." << endl; … … 550 562 { 551 563 552 const MCalibrationCam::PulserColor_t col = fHeader->GetPulserColor(); 564 /* 565 if (IsInterlaced()) 566 { 567 if (!(fTrigPattern->GetPrescaled() & MTriggerPattern::kCalibration)) 568 { 569 if (IsDebug()) 570 { 571 for (Int_t i=16; i>= 0; i--) 572 *fLog << err << (fTrigPattern->GetPrescaled() >> i & 1); 573 *fLog << endl; 574 } 575 return kTRUE; 576 } 577 else 578 { 579 if (IsDebug()) 580 { 581 for (Int_t i=16; i>= 0; i--) 582 *fLog << inf << (fTrigPattern->GetPrescaled() >> i & 1); 583 *fLog << endl; 584 } 585 } 586 } 587 */ 588 const MCalibrationCam::PulserColor_t col = fEvtHeader->GetPulserColor(); 553 589 554 590 if (col == fPulserColor) … … 561 597 return kTRUE; 562 598 599 563 600 // 564 601 // Now retrieve the colour and check if not various colours have been used … … 594 631 } 595 632 596 *fLog << inf << " with strength: " << f Header->GetPulserStrength() << endl;633 *fLog << inf << " with strength: " << fEvtHeader->GetPulserStrength() << endl; 597 634 598 635 if (fPINDiode) … … 711 748 if (nvalid == 0) 712 749 { 713 *fLog << err << GetDescriptor() << ": All pixels have non-valid calibration. " 714 << "Did you forget to fill the histograms " 715 << "(filling MHCalibrationChargeCam from MExtractedSignalCam using MFillH) ? " << endl; 716 *fLog << err << GetDescriptor() << ": Or, maybe, you have used a pedestal run " 717 << "instead of a calibration run " << endl; 718 return kFALSE; 750 if (!fIntensCam) 751 { 752 *fLog << warn << GetDescriptor() << ": All pixels have non-valid calibration. " 753 << "Did you forget to fill the histograms " 754 << "(filling MHCalibrationChargeCam from MExtractedSignalCam using MFillH) ? " << endl; 755 *fLog << warn << GetDescriptor() << ": Or, maybe, you have used a pedestal run " 756 << "instead of a calibration run " << endl; 757 return kFALSE; 758 } 719 759 } 720 760 … … 2210 2250 return rc; 2211 2251 } 2252
Note:
See TracChangeset
for help on using the changeset viewer.