Changeset 4391 for trunk


Ignore:
Timestamp:
07/15/04 16:35:55 (20 years ago)
Author:
blanch
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MControlPlots.cc

    r4367 r4391  
    146146    {     
    147147      diff = new MHCamera(*fGeomCam,"Diff","Pixels surviving Image Cleaning");
    148  
     148      // Normalize Off to On
     149      Float_t NormOn=0;
     150      Float_t NormOff=0;
     151      for(Int_t i=1;i<diff->GetSize()-2;i++)
     152        {
     153          NormOff+=fCameraHisto[kOff]->GetBinContent(i);
     154          NormOn+=fCameraHisto[kOn]->GetBinContent(i);
     155        }     
     156
     157      fCameraHisto[kOff]->Scale(NormOn/NormOff);
     158
    149159      for(Int_t i=1;i<diff->GetSize()-2;i++)
    150160        {
Note: See TracChangeset for help on using the changeset viewer.