Changeset 7376 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 09/30/05 18:39:50 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mbadpixels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.