Changeset 7376 for trunk/MagicSoft
- Timestamp:
- 09/30/05 18:39:50 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7375 r7376 54 54 * resources/calibration.rc: 55 55 - new file 56 57 * mbadpixels/MBadPixelsTreat.[h,cc]: 58 - implemented a new treatment of "no-signal". If a pixel 59 presumably contains no signal as detected by the arrival time 60 interpolation its interpolated signal is overwritten with 61 a gaus. The gaus mean and rms are taken from the corresponding 62 MPedPhotCams 56 63 57 64 -
trunk/MagicSoft/Mars/NEWS
r7374 r7376 27 27 treatment was buggy! As neighbor pixels to interpolate the 28 28 arrival times always the pixels 0 to 5 were taken) 29 30 - callisto: In addition to the new treatment of arrival times the 31 decision of the treatment whether a pixel contains shower 32 information or not is used to improve the signal interpolation 33 further. Previously interpolated pixels showed a non-zero signal 34 do the peak searching signal extractors. Having a signal pixel 35 beside raised the signal above the cleaning level. Thus the 36 pixel survived cleaning to often but with a too low mean signal. 37 By replacing empty pixels with a gaus (mean and rms from the 38 corresponding Area entries in MPedPhotCam) this effect can 39 be supressed. 29 40 30 41 - callisto: The status "unmapped" (for pixel which cannot be interpolated) -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r7360 r7376 49 49 // SetProcessPedestalRun: process the pedestals once per run/file 50 50 // SetProcessPedestalEvt: process the pedestal once per event 51 // SetProcessTimes: also do some rough interpolation of the arrival time 51 // SetProcessTimes: do interpolation of the arrival time 52 // 53 // If the arrival time treatment is switched on and "MPedPhotFromExtractor" 54 // and "MPedPhotFromExtractorRndm" are found the pixel is filled with 55 // a random gaus calculated from these two MPedPhotCams in the case 56 // the pixels is detected as background. 52 57 // 53 58 // … … 101 106 // 102 107 MBadPixelsTreat::MBadPixelsTreat(const char *name, const char *title) 103 : fFlags(0), fNumMinNeighbors(3) 108 : fGeomCam(0), fEvt(0), fBadPixels(0), fPedPhot1(0), fPedPhot2(0), 109 fFlags(0), fNumMinNeighbors(3) 104 110 { 105 111 fName = name ? name : gsDefName.Data(); … … 197 203 } 198 204 205 if (IsProcessTimes()) 206 { 207 fPedPhot1 = (MPedPhotCam*)pList->FindObject("MPedPhotFromExtractor", "MPedPhotCam"); 208 fPedPhot2 = (MPedPhotCam*)pList->FindObject("MPedPhotFromExtractorRndm", "MPedPhotCam"); 209 210 *fLog << inf << "Additional no-signal-interpolation switched "; 211 *fLog << (fPedPhot1 && fPedPhot2 ? "on" : "off"); 212 *fLog << "." << endl; 213 } 214 199 215 if (IsProcessPedestalEvt()) 200 216 *fLog << inf << "Processing Pedestals once per event..." << endl; … … 475 491 // to the shower. 476 492 if (cnt2<=2) 493 { 477 494 sum2 = gRandom->Uniform(max-min)+min; // FIXME? Set Seed value? 495 if (fPedPhot1 && fPedPhot2) 496 { 497 const Int_t aidx = gpix.GetAidx(); 498 const Double_t mean = fPedPhot1->GetArea(aidx).GetMean(); 499 const Double_t rms = fPedPhot2->GetArea(aidx).GetRms(); 500 const Double_t phe = gRandom->Gaus(mean, rms); 501 (*fEvt)[i].SetNumPhotons(phe); 502 } 503 } 478 504 else 479 505 sum2 /= cnt2*2; -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h
r6858 r7376 17 17 MSignalCam *fEvt; //! 18 18 MBadPixelsCam *fBadPixels; //! 19 20 MPedPhotCam *fPedPhot1; //! Pedestal from extractor used for "no-signal" in InterpolateTimes 21 MPedPhotCam *fPedPhot2; //! Pedestal from extractor used for "no-signal" in InterpolateTimes 22 19 23 20 24 TList fPedPhotCams;
Note:
See TracChangeset
for help on using the changeset viewer.