Changeset 4912 for trunk/MagicSoft
- Timestamp:
- 09/09/04 19:10:12 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4909 r4912 74 74 75 75 * mcalib/MCalibrationChargeCalc.[h,cc] 76 - able to recognize an *Intensity*Cam if in MParList 77 - set pulser pattern accordingly in Process from MRawEvtHeader 78 - add switches to perform types of checks or not 79 76 80 * mcalib/MCalibrationRelTimeCalc.[h,cc] 77 81 - able to recognize an *Intensity*Cam if in MParList 78 - set pulser pattern accordingly in Process from MRawEvtHeader79 82 80 83 * mjobs/MJCalibration.[h,cc] -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4908 r4912 257 257 // - flag debug to kFALSE 258 258 // 259 // Sets all checks 260 // 259 261 // Calls: 260 262 // - Clear() … … 282 284 SetOutputFile (); 283 285 SetDebug ( kFALSE ); 286 287 SetCheckDeadPixels (); 288 SetCheckExtractionWindow (); 289 SetCheckHistOverflow (); 290 SetCheckDeviatingBehavior(); 284 291 285 292 Clear(); … … 1015 1022 MCalibrationPix &pix = fIntensCam ? (*fIntensCam)[i] : (*fCam)[i]; 1016 1023 1017 if (bad.IsUncalibrated( MBadPixelsPix::kChargeIsPedestal)) 1018 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1024 if (IsCheckDeadPixels()) 1025 { 1026 if (bad.IsUncalibrated( MBadPixelsPix::kChargeIsPedestal)) 1027 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1019 1028 1020 if (bad.IsUncalibrated( MBadPixelsPix::kChargeErrNotValid )) 1021 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1022 1023 if (bad.IsUncalibrated( MBadPixelsPix::kChargeRelErrNotValid )) 1024 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1025 1026 if (bad.IsUncalibrated( MBadPixelsPix::kMeanTimeInFirstBin )) 1027 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1028 1029 if (bad.IsUncalibrated( MBadPixelsPix::kMeanTimeInLast2Bins )) 1030 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1031 1032 if (bad.IsUncalibrated( MBadPixelsPix::kDeviatingNumPhes )) 1033 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1034 1035 if (bad.IsUncalibrated( MBadPixelsPix::kHiGainOverFlow )) 1036 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1037 1038 if (bad.IsUncalibrated( MBadPixelsPix::kLoGainOverFlow )) 1039 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1040 1029 if (bad.IsUncalibrated( MBadPixelsPix::kChargeErrNotValid )) 1030 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1031 1032 if (bad.IsUncalibrated( MBadPixelsPix::kChargeRelErrNotValid )) 1033 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1034 } 1035 1036 if (IsCheckExtractionWindow()) 1037 { 1038 if (bad.IsUncalibrated( MBadPixelsPix::kMeanTimeInFirstBin )) 1039 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1040 1041 if (bad.IsUncalibrated( MBadPixelsPix::kMeanTimeInLast2Bins )) 1042 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1043 } 1044 1045 if (IsCheckDeviatingBehavior()) 1046 { 1047 if (bad.IsUncalibrated( MBadPixelsPix::kDeviatingNumPhes )) 1048 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1049 } 1050 1051 if (IsCheckHistOverflow()) 1052 { 1053 if (bad.IsUncalibrated( MBadPixelsPix::kHiGainOverFlow )) 1054 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1055 1056 if (bad.IsUncalibrated( MBadPixelsPix::kLoGainOverFlow )) 1057 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 1058 } 1059 1041 1060 if (bad.IsUnsuitable( MBadPixelsPix::kUnsuitableRun )) 1042 1061 pix.SetExcluded(); … … 1249 1268 << Form("[%7.2f,%7.2f] pixel%4i",lowlim[aidx],upplim[aidx],i) << endl; 1250 1269 bad.SetUncalibrated( MBadPixelsPix::kDeviatingNumPhes ); 1251 bad.SetUnsuitable ( MBadPixelsPix::kUnsuitableRun ); 1252 pix.SetFFactorMethodValid(kFALSE); 1270 if (IsCheckDeviatingBehavior()) 1271 { 1272 bad.SetUnsuitable ( MBadPixelsPix::kUnsuitableRun ); 1273 pix.SetFFactorMethodValid(kFALSE); 1274 } 1253 1275 continue; 1254 1276 } … … 1385 1407 << endl; 1386 1408 bad.SetUncalibrated( MBadPixelsPix::kDeviatingNumPhes ); 1387 bad.SetUnsuitable ( MBadPixelsPix::kUnsuitableRun ); 1409 if (IsCheckDeviatingBehavior()) 1410 bad.SetUnsuitable ( MBadPixelsPix::kUnsuitableRun ); 1388 1411 } 1389 1412 } … … 1709 1732 { 1710 1733 (*fBadPixels)[i].SetUncalibrated( MBadPixelsPix::kDeviatingFFactor ); 1711 (*fBadPixels)[i].SetUnsuitable ( MBadPixelsPix::kUnreliableRun ); 1734 if (IsCheckDeviatingBehavior()) 1735 (*fBadPixels)[i].SetUnsuitable ( MBadPixelsPix::kUnreliableRun ); 1712 1736 continue; 1713 1737 } … … 1815 1839 1816 1840 bad.SetUncalibrated( MBadPixelsPix::kDeviatingFFactor ); 1817 bad.SetUnsuitable ( MBadPixelsPix::kUnsuitableRun ); 1841 if (IsCheckDeviatingBehavior()) 1842 bad.SetUnsuitable ( MBadPixelsPix::kUnsuitableRun ); 1818 1843 } 1819 1844 } -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r4908 r4912 94 94 95 95 // enums 96 enum Check_t 97 { 98 kCheckDeadPixels, 99 kCheckExtractionWindow, 100 kCheckHistOverflow, 101 kCheckDeviatingBehavior 102 }; // Possible Checks 103 104 Byte_t fCheckFlags; // Bit-field to hold the possible check flags 105 96 106 enum { kDebug, kPheFitOK, kFFactorFitOK, kBlindPixelFitOK, kBlindPixelPedFitOK, kPINDiodeFitOK }; 97 107 … … 113 123 void PrintUncalibrated( MBadPixelsPix::UncalibratedType_t typ, const char *text) const; 114 124 125 // Global fit results 115 126 void SetPheFitOK ( const Int_t aidx, const Bool_t b=kTRUE ) { 116 127 b ? SETBIT(fResultFlags[aidx], kPheFitOK) … … 129 140 : CLRBIT(fPINDiodeFlags[idx], kPINDiodeFitOK); } 130 141 142 Bool_t IsCheckDeadPixels () const { return TESTBIT(fCheckFlags,kCheckDeadPixels); } 143 Bool_t IsCheckExtractionWindow () const { return TESTBIT(fCheckFlags,kCheckExtractionWindow); } 144 Bool_t IsCheckHistOverflow () const { return TESTBIT(fCheckFlags,kCheckHistOverflow); } 145 Bool_t IsCheckDeviatingBehavior() const { return TESTBIT(fCheckFlags,kCheckDeviatingBehavior); } 146 131 147 Int_t PreProcess (MParList *pList); 132 148 Bool_t ReInit (MParList *pList); … … 156 172 void SetPulserColor ( const MCalibrationCam::PulserColor_t col ) { fPulserColor = col; } 157 173 174 // Checks 175 void SetCheckDeadPixels( const Bool_t b=kTRUE ) { 176 b ? SETBIT(fCheckFlags,kCheckDeadPixels) 177 : CLRBIT(fCheckFlags,kCheckDeadPixels); } 178 void SetCheckExtractionWindow( const Bool_t b=kTRUE ) { 179 b ? SETBIT(fCheckFlags,kCheckExtractionWindow) 180 : CLRBIT(fCheckFlags,kCheckExtractionWindow); } 181 void SetCheckHistOverflow( const Bool_t b=kTRUE ) { 182 b ? SETBIT(fCheckFlags,kCheckHistOverflow) 183 : CLRBIT(fCheckFlags,kCheckHistOverflow); } 184 void SetCheckDeviatingBehavior( const Bool_t b=kTRUE ) { 185 b ? SETBIT(fCheckFlags,kCheckDeviatingBehavior) 186 : CLRBIT(fCheckFlags,kCheckDeviatingBehavior); } 158 187 159 188 ClassDef(MCalibrationChargeCalc, 1) // Task calculating Calibration Containers and Quantum Efficiencies
Note:
See TracChangeset
for help on using the changeset viewer.