Changeset 4272
- Timestamp:
- 06/03/04 10:52:24 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4270 r4272 30 30 - replace fNumHiGainFADCSlices and fNumLoGainFADCSlices by a 31 31 TArrayF and increment ClassDef by 1 for the streamer. 32 33 * mcalib/MCalibrationChargeCalc.cc 34 - found a small bug making a difference in the number of valid 35 pixels with the blind PIxel method and the ffactor method. Now 36 fixed. (The difference was usually a couple of pixels) 32 37 33 38 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4242 r4272 1013 1013 bad.SetUncalibrated( MBadPixelsPix::kDeviatingNumPhes ); 1014 1014 bad.SetUnsuitable ( MBadPixelsPix::kUnsuitableRun ); 1015 pix.Set Excluded();1015 pix.SetFFactorMethodValid(kFALSE); 1016 1016 continue; 1017 1017 } … … 1295 1295 MCalibrationQEPix &qepix = (MCalibrationQEPix&) (*fQECam)[i]; 1296 1296 1297 if (!pix.IsFFactorMethodValid()) 1298 { 1299 qepix.SetExcluded(); 1300 qepix.SetFFactorMethodValid(kFALSE,fPulserColor); 1301 continue; 1302 } 1303 1297 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 1298 continue; 1299 1304 1300 const Float_t photons = avphotons / fGeom->GetPixRatio(i); 1305 1301 const Float_t qe = pix.GetPheFFactorMethod() / photons ; … … 1307 1303 if (!pix.CalcMeanFFactor( photons , avphotrelvar )) 1308 1304 { 1309 pix.SetFFactorMethodValid(kFALSE);1310 qepix.SetFFactorMethodValid(kFALSE, fPulserColor);1311 1305 (*fBadPixels)[i].SetUncalibrated( MBadPixelsPix::kDeviatingNumPhes ); 1306 continue; 1307 1312 1308 } 1313 1309 … … 1341 1337 1342 1338 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*fCam)[i]; 1343 1344 if (!pix.IsFFactorMethodValid()) 1339 MBadPixelsPix &bad = (*fBadPixels)[i]; 1340 1341 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 1345 1342 continue; 1346 1343 1347 1344 const Float_t ffactor = pix.GetMeanFFactorFADC2Phot(); 1348 MBadPixelsPix &bad = (*fBadPixels)[i];1349 1350 1345 const Int_t aidx = (*fGeom)[i].GetAidx(); 1351 1346 … … 1357 1352 bad.SetUncalibrated( MBadPixelsPix::kDeviatingFFactor ); 1358 1353 bad.SetUnsuitable ( MBadPixelsPix::kUnsuitableRun ); 1354 } 1355 } 1356 1357 for (UInt_t i=0; i<npixels; i++) 1358 { 1359 1360 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*fCam)[i]; 1361 MCalibrationQEPix &qepix = (MCalibrationQEPix&) (*fQECam)[i]; 1362 MBadPixelsPix &bad = (*fBadPixels)[i]; 1363 1364 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 1365 { 1366 qepix.SetFFactorMethodValid(kFALSE,fPulserColor); 1367 pix.SetFFactorMethodValid(kFALSE); 1359 1368 pix.SetExcluded(); 1369 continue; 1360 1370 } 1361 1371 } … … 1425 1435 } 1426 1436 1427 MBadPixelsPix &bad = (*fBadPixels)[i]; 1428 1437 MBadPixelsPix &bad = (*fBadPixels)[i]; 1429 1438 if (bad.IsUnsuitable (MBadPixelsPix::kUnsuitableRun)) 1430 1439 {
Note:
See TracChangeset
for help on using the changeset viewer.