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

Legend:

Unmodified
Added
Removed
  • 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.