Changeset 7376


Ignore:
Timestamp:
09/30/05 18:39:50 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7375 r7376  
    5454   * resources/calibration.rc:
    5555     - 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
    5663
    5764
  • trunk/MagicSoft/Mars/NEWS

    r7374 r7376  
    2727     treatment was buggy! As neighbor pixels to interpolate the
    2828     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.
    2940
    3041   - callisto: The status "unmapped" (for pixel which cannot be interpolated)
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc

    r7360 r7376  
    4949//   SetProcessPedestalRun: process the pedestals once per run/file
    5050//   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.
    5257//
    5358//
     
    101106//
    102107MBadPixelsTreat::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)
    104110{
    105111    fName  = name  ? name  : gsDefName.Data();
     
    197203    }
    198204
     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
    199215    if (IsProcessPedestalEvt())
    200216        *fLog << inf << "Processing Pedestals once per event..." << endl;
     
    475491        // to the shower.
    476492        if (cnt2<=2)
     493        {
    477494            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        }
    478504        else
    479505            sum2 /= cnt2*2;
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h

    r6858 r7376  
    1717    MSignalCam    *fEvt;       //!
    1818    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
    1923
    2024    TList fPedPhotCams;
Note: See TracChangeset for help on using the changeset viewer.