Changeset 2192


Ignore:
Timestamp:
06/18/03 10:57:27 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/sumcurrents.C

    r2190 r2192  
    8080        TArrayF &r = h.GetRms();
    8181        TArrayF &v = h.GetSum();
    82         arr[i] = (r[i]==0 ? 0 : r[i]/v[i]);
     82        arr[i] = (v[i]==0 ? 0 : r[i]/v[i]);
    8383    }
    8484    disp3->Fill(arr);
     
    125125    h2.SetStats(kFALSE);
    126126    for (int i=1;i<=577; i++)
    127         h2.SetBinContent(i, arr[i]*100);
     127        h2.SetBinContent(i, arr[i-1]*100);
    128128    h2.DrawCopy();
    129129
Note: See TracChangeset for help on using the changeset viewer.