Changeset 2192
- Timestamp:
- 06/18/03 10:57:27 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/sumcurrents.C
r2190 r2192 80 80 TArrayF &r = h.GetRms(); 81 81 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]); 83 83 } 84 84 disp3->Fill(arr); … … 125 125 h2.SetStats(kFALSE); 126 126 for (int i=1;i<=577; i++) 127 h2.SetBinContent(i, arr[i ]*100);127 h2.SetBinContent(i, arr[i-1]*100); 128 128 h2.DrawCopy(); 129 129
Note:
See TracChangeset
for help on using the changeset viewer.