User Tools

Site Tools


root:showcuts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

root:showcuts [2010/01/12 11:23] – created abuechleroot:showcuts [2010/01/12 11:26] (current) abuechle
Line 1: Line 1:
 ====== Show cut value as a line in a histogram ====== ====== Show cut value as a line in a histogram ======
-{{rootCutLine.png?100}} To create a line in a histogram for example to indicate a cut do the following in your python root macro and in the canvas where you have the histogram:+{{rootCutLine.png?200}} To create a line in a histogram for example to indicate a cut do the following in your python root macro and in the canvas where you have the histogram:
 <code> <code>
 cutObj = TLine(XcutValue, hist.GetMinimum(), XcutValue, hist.GetMaximum()) cutObj = TLine(XcutValue, hist.GetMinimum(), XcutValue, hist.GetMaximum())
Line 10: Line 10:
  
 ====== Highlight an area in a histogram ====== ====== Highlight an area in a histogram ======
-{{rootCutArea.png?100}}+{{rootCutArea.png?200}}
 <code> <code>
 cutObj2 = TBox(X1Value, hist.GetMinimum(), X2Value, hist.GetMaximum()) cutObj2 = TBox(X1Value, hist.GetMinimum(), X2Value, hist.GetMaximum())
root/showcuts.txt · Last modified: 2010/01/12 11:26 by abuechle