Changeset 9899 for trunk/Mars


Ignore:
Timestamp:
08/30/10 09:50:35 (14 years ago)
Author:
tbretz
Message:
 Added the possibility to the camera display to display contents as int or float.
Location:
trunk/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/Changelog

    r9898 r9899  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2010/08/30 Thomas Bretz
     22
     23   * mhist/MHCamera.cc:
     24     - added options to display contents as int and float
     25
     26
    2027
    2128 2010/08/27 Daniela Dorner
  • trunk/Mars/mhist/MHCamera.cc

    r9385 r9899  
    599599//                 GeMinimum() ((val-min)/(max-min))
    600600//   'text'        Draw GetBinContent as char
     601//   'integer'     Draw GetBinContent as integer (TMath::Nint)
     602//   'float'       Draw GetBinContent as float
    601603//   'proj'        Display the y-projection of the histogram
    602604//   'pal0'        Use Pretty palette
     
    10781080        opt.ReplaceAll("abscontent", "");
    10791081        opt.ReplaceAll("content", "");
     1082        opt.ReplaceAll("integer", "");
     1083        opt.ReplaceAll("float", "");
    10801084        opt.ReplaceAll("proj", "");
    10811085        opt.ReplaceAll("pal0", "");
     
    11731177    {
    11741178        PaintIndices(5);
     1179        return;
     1180    }
     1181    if (opt.Contains("integer"))
     1182    {
     1183        PaintIndices(6);
     1184        return;
     1185    }
     1186    if (opt.Contains("float"))
     1187    {
     1188        PaintIndices(7);
    11751189        return;
    11761190    }
     
    13301344        case 3: num += TMath::Nint(fArray[i+1]); break;
    13311345        case 4: num += fBinEntries[i+1]; break;
    1332         case 5: num = (char)TMath::Nint(GetBinContent(i+1)); break;
     1346        case 5: num  = (char)TMath::Nint(GetBinContent(i+1)); break;
     1347        case 6: num += TMath::Nint(GetBinContent(i+1)); break;
     1348        case 7: num += GetBinContent(i+1); break;
    13331349        }
    13341350
Note: See TracChangeset for help on using the changeset viewer.