Changeset 3845
- Timestamp:
- 04/26/04 22:05:15 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3841 r3845 20 20 21 21 2004/04/26: Markus Gaug 22 23 * mcalib/MCalibrationQEPix.cc 24 - found a bug in the setting of validity flags of colours. This 25 made the QE used for calibration uncorrect by about a factor 1.5 26 for the outer pixels if only one colour is used for calibration. 22 27 23 28 * mjobs/MJCalibration.[h,cc] -
trunk/MagicSoft/Mars/mcalib/MCalibrate.cc
r3844 r3845 335 335 if (pix.IsFFactorMethodValid()) 336 336 { 337 337 calibQE = qe.GetQECascadesFFactor ( zenith ); 338 338 calibQEVar = qe.GetQECascadesFFactorVar( zenith ); 339 339 } -
trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.cc
r3768 r3845 204 204 const Float_t newavqe = GetQEBlindPixel(col) / GetDefaultQE (col) ; 205 205 const Float_t newavqevar = ( GetQEBlindPixelRelVar(col) + GetDefaultQERelVar(col) ) * newavqe * newavqe; 206 wav += newavqe / newavqevar; 207 sumw += 1. / newavqevar ; 206 const Float_t weight = 1./newavqevar; 207 wav += newavqe * weight; 208 sumw += weight; 208 209 } 209 210 } … … 224 225 const Float_t newavqe = GetQECombined(col) / GetDefaultQE (col) ; 225 226 const Float_t newavqevar = ( GetQECombinedRelVar(col) + GetDefaultQERelVar(col) ) * newavqe * newavqe; 226 wav += newavqe / newavqevar; 227 sumw += 1./ newavqevar; 227 const Float_t weight = 1./newavqevar; 228 wav += newavqe * weight; 229 sumw += weight; 228 230 229 231 } … … 243 245 if (IsFFactorMethodValid (col)) 244 246 { 245 const Float_t newavqe = GetQEFFactor(col) / GetDefaultQE (col) ; 247 const Float_t newavqe = GetQEFFactor(col) / GetDefaultQE (col) ; 246 248 const Float_t newavqevar = ( GetQEFFactorRelVar(col) + GetDefaultQERelVar(col) ) * newavqe * newavqe; 247 wav += newavqe / newavqevar; 248 sumw += 1./ newavqevar; 249 const Float_t weight = 1./newavqevar; 250 wav += newavqe *weight; 251 sumw += weight; 249 252 250 253 } … … 268 271 const Float_t newavqe = GetQEPINDiode(col) / GetDefaultQE (col) ; 269 272 const Float_t newavqevar = ( GetQEPINDiodeRelVar(col) + GetDefaultQERelVar(col) ) * newavqe * newavqe; 270 wav += newavqe / newavqevar; 271 sumw += 1./ newavqevar; 273 const Float_t weight = 1./newavqevar; 274 wav += newavqe *weight; 275 sumw += weight; 272 276 } 273 277 } … … 932 936 Bool_t MCalibrationQEPix::IsBlindPixelMethodValid (MCalibrationCam::PulserColor_t col) const 933 937 { 934 return TESTBIT(fValidFlags[ MCalibrationCam::kGREEN],kBlindPixelMethodValid);938 return TESTBIT(fValidFlags[ col ],kBlindPixelMethodValid); 935 939 } 936 940 … … 942 946 Bool_t MCalibrationQEPix::IsCombinedMethodValid (MCalibrationCam::PulserColor_t col) const 943 947 { 944 return TESTBIT(fValidFlags[ MCalibrationCam::kGREEN],kCombinedMethodValid);948 return TESTBIT(fValidFlags[ col ],kCombinedMethodValid); 945 949 } 946 950 … … 951 955 Bool_t MCalibrationQEPix::IsFFactorMethodValid (MCalibrationCam::PulserColor_t col) const 952 956 { 953 return TESTBIT(fValidFlags[ MCalibrationCam::kGREEN],kFFactorMethodValid);957 return TESTBIT(fValidFlags[ col ],kFFactorMethodValid); 954 958 } 955 959 … … 960 964 Bool_t MCalibrationQEPix::IsPINDiodeMethodValid (MCalibrationCam::PulserColor_t col) const 961 965 { 962 return TESTBIT(fValidFlags[ MCalibrationCam::kGREEN],kPINDiodeMethodValid);966 return TESTBIT(fValidFlags[ col ],kPINDiodeMethodValid); 963 967 } 964 968 … … 1018 1022 { 1019 1023 if (b) 1020 SETBIT(fValidFlags[ MCalibrationCam::kGREEN],kBlindPixelMethodValid);1024 SETBIT(fValidFlags[ col ],kBlindPixelMethodValid); 1021 1025 else 1022 CLRBIT(fValidFlags[ MCalibrationCam::kGREEN],kBlindPixelMethodValid);1026 CLRBIT(fValidFlags[ col ],kBlindPixelMethodValid); 1023 1027 } 1024 1028 … … 1030 1034 { 1031 1035 if (b) 1032 SETBIT(fValidFlags[ MCalibrationCam::kGREEN],kCombinedMethodValid);1036 SETBIT(fValidFlags[ col ],kCombinedMethodValid); 1033 1037 else 1034 CLRBIT(fValidFlags[ MCalibrationCam::kGREEN],kCombinedMethodValid);1038 CLRBIT(fValidFlags[ col ],kCombinedMethodValid); 1035 1039 } 1036 1040 … … 1042 1046 { 1043 1047 if (b) 1044 SETBIT(fValidFlags[ MCalibrationCam::kGREEN],kFFactorMethodValid);1048 SETBIT(fValidFlags[ col ],kFFactorMethodValid); 1045 1049 else 1046 CLRBIT(fValidFlags[ MCalibrationCam::kGREEN],kFFactorMethodValid);1050 CLRBIT(fValidFlags[ col ],kFFactorMethodValid); 1047 1051 } 1048 1052 … … 1054 1058 { 1055 1059 if (b) 1056 SETBIT(fValidFlags[ MCalibrationCam::kGREEN],kPINDiodeMethodValid);1060 SETBIT(fValidFlags[ col ],kPINDiodeMethodValid); 1057 1061 else 1058 CLRBIT(fValidFlags[ MCalibrationCam::kGREEN],kPINDiodeMethodValid);1062 CLRBIT(fValidFlags[ col ],kPINDiodeMethodValid); 1059 1063 } 1060 1064 … … 1128 1132 AddAverageFFactorQEs(MCalibrationCam::kUV , weightedav, sumweights); 1129 1133 AddAverageFFactorQEs(MCalibrationCam::kCT1 , weightedav, sumweights); 1130 1134 1131 1135 if (weightedav == 0. || sumweights == 0.) 1132 1136 return kFALSE; -
trunk/MagicSoft/Mars/mcalib/MHCalibrationCam.h
r3731 r3845 72 72 virtual void FinalizeBadPixels(); 73 73 74 v oid CalcAverageSigma();74 virtual void CalcAverageSigma(); 75 75 76 76 void DrawAverageSigma(Bool_t sat, Bool_t inner,
Note:
See TracChangeset
for help on using the changeset viewer.