Changeset 9899
- Timestamp:
- 08/30/10 09:50:35 (14 years ago)
- Location:
- trunk/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/Changelog
r9898 r9899 18 18 19 19 -*-*- 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 20 27 21 28 2010/08/27 Daniela Dorner -
trunk/Mars/mhist/MHCamera.cc
r9385 r9899 599 599 // GeMinimum() ((val-min)/(max-min)) 600 600 // 'text' Draw GetBinContent as char 601 // 'integer' Draw GetBinContent as integer (TMath::Nint) 602 // 'float' Draw GetBinContent as float 601 603 // 'proj' Display the y-projection of the histogram 602 604 // 'pal0' Use Pretty palette … … 1078 1080 opt.ReplaceAll("abscontent", ""); 1079 1081 opt.ReplaceAll("content", ""); 1082 opt.ReplaceAll("integer", ""); 1083 opt.ReplaceAll("float", ""); 1080 1084 opt.ReplaceAll("proj", ""); 1081 1085 opt.ReplaceAll("pal0", ""); … … 1173 1177 { 1174 1178 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); 1175 1189 return; 1176 1190 } … … 1330 1344 case 3: num += TMath::Nint(fArray[i+1]); break; 1331 1345 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; 1333 1349 } 1334 1350
Note:
See TracChangeset
for help on using the changeset viewer.