- Timestamp:
- 01/28/05 16:31:09 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6086 r6091 98 98 - fill MCalibConstCam with update results (once per calib. consts 99 99 update == every 10 sec.) 100 - introduce check for size of calibration constant. In case, it is 101 completetly out of range, set the MBadPixelsPix::IsUnsuitableRun 100 102 101 103 * mjobs/MJCalibrateSignal.cc: -
trunk/MagicSoft/Mars/callisto.rc
r6090 r6091 303 303 #MJCalibrateSignal.MCalibrateData.PedestalFlag: Event 304 304 #MJCalibrateSignal.MCalibrateData.CalibrationMode: Default 305 #MJCalibrateSignal.MCalibrateData.CalibConvMinLimit: 0.01 306 #MJCalibrateSignal.MCalibrateData.CalibConvMaxLimit: 5. 305 307 MJCalibrateSignal.Interlaced: yes 306 308 #MJCalibrateSignal.RelTimesUpdate: no -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r6077 r6091 135 135 using namespace std; 136 136 137 const Float_t MCalibrateData::fgCalibConvMinLimit = 0.01; 138 const Float_t MCalibrateData::fgCalibConvMaxLimit = 5.; 137 139 // -------------------------------------------------------------------------- 138 140 // … … 155 157 156 158 SetCalibrationMode(calmode); 159 160 SetCalibConvMinLimit(); 161 SetCalibConvMaxLimit(); 157 162 158 163 fNamesPedestal.SetOwner(); … … 477 482 if(fCalibrationMode!=kNone) 478 483 { 479 if ((*fBadPixels)[pixidx].IsUnsuitable( ))484 if ((*fBadPixels)[pixidx].IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 480 485 { 481 486 skip++; 487 calibConv = -1.; 482 488 continue; 483 489 } 484 490 485 491 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*fCalibrations)[pixidx]; … … 604 610 fCalibFFactors[pixidx] = calibFFactor; 605 611 612 if (calibConv < fCalibConvMinLimit || calibConv > fCalibConvMaxLimit) 613 { 614 (*fBadPixels)[pixidx].SetUnsuitable(MBadPixelsPix::kUnsuitableRun); 615 cpix.SetCalibConst(-1.); 616 cpix.SetCalibFFactor(-1.); 617 continue; 618 } 619 606 620 cpix.SetCalibConst(calibConv); 607 621 cpix.SetCalibFFactor(calibFFactor); … … 819 833 } 820 834 835 if (IsEnvDefined(env, prefix, "CalibConvMinLimit", print)) 836 { 837 fCalibConvMinLimit = GetEnvValue(env, prefix, "CalibConvMinLimit", fCalibConvMinLimit); 838 rc = kTRUE; 839 } 840 841 if (IsEnvDefined(env, prefix, "CalibConvMaxLimit", print)) 842 { 843 fCalibConvMaxLimit = GetEnvValue(env, prefix, "CalibConvMaxLimit", fCalibConvMaxLimit); 844 rc = kTRUE; 845 } 846 821 847 return rc; 822 848 } -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.h
r6077 r6091 39 39 private: 40 40 41 static const Float_t fgCalibConvMinLimit; //! Minimum limit for conv. factor 42 static const Float_t fgCalibConvMaxLimit; //! Maximum limit for conv. factor 43 44 Float_t fCalibConvMinLimit; // Minimum limit for conv. factor 45 Float_t fCalibConvMaxLimit; // Maximum limit for conv. factor 46 41 47 MGeomCam *fGeomCam; //! Camera geometry container 42 48 MBadPixelsCam *fBadPixels; //! Bad Pixels information … … 117 123 void SetSignalType ( SignalType_t sigtype=kPhot ) { fSignalType =sigtype; } 118 124 125 void SetCalibConvMinLimit( const Float_t f=fgCalibConvMinLimit ) { fCalibConvMinLimit = f; } 126 void SetCalibConvMaxLimit( const Float_t f=fgCalibConvMaxLimit ) { fCalibConvMaxLimit = f; } 127 119 128 Bool_t UpdateConversionFactors( const MCalibrationChargeCam *updatecam=NULL); 120 129
Note:
See TracChangeset
for help on using the changeset viewer.