Changeset 5852 for trunk/MagicSoft
- Timestamp:
- 01/15/05 15:43:54 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 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 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r5679 r5852 59 59 60 60 static const TString fgNamePedestalCam; //! "MPedestalCam" 61 61 62 62 // Variables 63 63 Float_t fChargeLimit; // Limit acceptance mean charge (in units of PedRMS) … … 102 102 MGeomCam *fGeom; //! Camera geometry 103 103 MExtractedSignalCam *fSignal; //! Extracted Signal 104 MRawEvtHeader *f Header; //! Event header104 MRawEvtHeader *fEvtHeader; //! Evt header 105 105 MPedestalCam *fPedestals; //! Pedestals all pixels (calculated previously from ped.file) 106 106 … … 117 117 Byte_t fCheckFlags; // Bit-field to hold the possible check flags 118 118 119 enum { kDebug, kPheFitOK, kFFactorFitOK, kBlindPixelFitOK, kBlindPixelPedFitOK, kPINDiodeFitOK }; 119 enum { kDebug, 120 kPheFitOK, kFFactorFitOK, kBlindPixelFitOK, kBlindPixelPedFitOK, kPINDiodeFitOK }; 120 121 121 122 // functions … … 139 140 Bool_t IsCheckExtractionWindow () const { return TESTBIT(fCheckFlags,kCheckExtractionWindow); } 140 141 Bool_t IsCheckHistOverflow () const { return TESTBIT(fCheckFlags,kCheckHistOverflow); } 141 Bool_t IsCheckOscillations () const { return TESTBIT(fCheckFlags,kCheckOscillations); } 142 142 Bool_t IsCheckOscillations () const { return TESTBIT(fCheckFlags,kCheckOscillations); } 143 143 144 void PrintUncalibrated( MBadPixelsPix::UncalibratedType_t typ, const char *text) const; 144 145
Note:
See TracChangeset
for help on using the changeset viewer.