Ignore:
Timestamp:
04/03/01 13:28:36 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MCT1ReadAscii.cc

    r716 r717  
    156156
    157157        if (val > 0.0)
    158             (*fPedest)[i].SetSigma(val);
     158            (*fPedest)[i].SetMeanRms(val);
    159159    }
    160160}
     
    188188
    189189        if (nphot > 0.0)
    190             fNphot->AddPixel(i, nphot, (*fPedest)[i].GetSigma());
     190            fNphot->AddPixel(i, nphot, (*fPedest)[i].GetMeanRms());
    191191    }
    192192
  • trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc

    r698 r717  
    6565
    6666        const Float_t nphot = (Float_t)pixel.GetSumHiGainFadcSamples() - ped.GetMean();
    67         fCerPhotEvt->AddPixel(pixid, nphot, 0);
     67
     68        fCerPhotEvt->AddPixel(pixid, nphot, ped.GetMeanRms());
    6869
    6970        // FIXME! Handling of Lo Gains is missing!
  • trunk/MagicSoft/Mars/manalysis/MImgCleanStd.cc

    r716 r717  
    1818    //   the default constructor
    1919    //
    20  
    2120    *fName  = name  ? name  : "MImgCleanStd";
    2221    *fTitle = title ? title : "Task which does a standard image cleaning";
     22
     23    *fLog << "Cleaning initialized. Using noise level " << lvl1 << " and " << lvl2 << endl;
    2324}
    2425
     
    4445        const Float_t noise = pix.GetErrorPhot();
    4546
    46         if (entry < fCleanLvl1 * noise )
     47        // COBB: '<=' to skip entry=noise=0
     48        if (entry <= fCleanLvl1 * noise )
    4749            pix.SetPixelUnused();
    4850    }
     
    113115            pix.SetCorePixel();
    114116    }
    115 
    116117}
    117118
     
    124125    //
    125126    const Int_t entries = fEvt->GetNumPixels();
    126 
    127127    for (Int_t i=0; i<entries; i++)
    128128    {
     
    174174        }
    175175    }
     176
    176177}
    177178
  • trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc

    r698 r717  
    4141Bool_t MMcPedestalCopy::Process()
    4242{
    43     fPedestals->InitSize(fMcPedestals->GetNumPixel());
     43    const int num = fMcPedestals->GetNumPixel();
    4444
    45     for (int i=0; i<MFADC_CHANNELS; i++)
     45    fPedestals->InitSize(num);
     46
     47    for (int i=0; i<num; i++)
    4648    {
    4749        MPedestalPix &pix = (*fPedestals)[i];
    4850
    49         pix.SetPedestal(fMcPedestals->GetPedestal(i), 0);
    50         pix.SetPedestalRms(fMcPedestals->GetPedestalRms(i), 0);
     51        const Float_t pedest = fMcPedestals->GetPedestal(i);
     52        const Float_t pedrms = fMcPedestals->GetPedestalRms(i);
     53
     54        const Float_t sigma  = pedest*sqrt(num);
     55        const Float_t sigrms = sigma/sqrt(2*num);
     56
     57        pix.SetPedestal(pedest, sigma);
     58        pix.SetPedestalRms(pedrms, sigrms);
     59
     60        *fLog << pedest << " " << sigma << " " << pedrms << " " << sigrms << endl;
    5161    }
    5262
Note: See TracChangeset for help on using the changeset viewer.