9 leg->
AddEntry(h,
"Column 1 line 1",
"l");
10 leg->
AddEntry(h,
"Column 2 line 1",
"l");
11 leg->
AddEntry(h,
"Column 1 line 2",
"l");
12 leg->
AddEntry(h,
"Column 2 line 2",
"l");
This class displays a legend box (TPaveText) containing several legend entries.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.