Ignore:
Timestamp:
06/26/03 17:00:06 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2206 r2237  
    293293      continue;
    294294
    295     fEvt->AddPixel(i, 0.0, (*fPed)[i].GetMeanRms());
     295    fEvt->AddPixel(i, 0.0, (*fPed)[i].GetPedestalRms());
    296296  }
    297297
     
    543543
    544544    MPedestalPix &ppix = (*fPed)[j];
    545     Double_t oldsigma = ppix.GetMeanRms();
     545    Double_t oldsigma = ppix.GetPedestalRms();
    546546    Double_t oldsigma2 = oldsigma*oldsigma;
    547547
     
    691691    Double_t oldphotons = pix.GetNumPhotons();
    692692    Double_t newphotons = oldphotons + NSB;
    693     pix.SetNumPhotons(  newphotons );
     693    pix.SetNumPhotons(newphotons);
    694694
    695695
     
    700700    // error: add sigma of padded noise quadratically
    701701    Double_t olderror = pix.GetErrorPhot();
    702     Double_t newerror = sqrt( olderror*olderror + addSig2 );
    703     pix.SetErrorPhot( newerror );
    704 
    705 
    706     Double_t newsigma = sqrt( oldsigma2 + addSig2 );
    707     ppix.SetMeanRms( newsigma );
    708 
    709     fHSigmaPedestal->Fill( oldsigma, newsigma );
     702    Double_t newerror = sqrt(olderror*olderror + addSig2);
     703    pix.SetErrorPhot(newerror);
     704
     705
     706    Double_t newsigma = sqrt(oldsigma2 + addSig2);
     707    ppix.SetPedestalRms(newsigma);
     708
     709    fHSigmaPedestal->Fill(oldsigma, newsigma);
    710710  }
    711711  //----------   end of loop over pixels   ---------------------------------
Note: See TracChangeset for help on using the changeset viewer.