Example showing how to add a function to the class context menu.
{
h =
new TH1F(
"h",
"Schtroumpf", 100, -4, 4);
h2 =
new TH1F(
"h2",
"h2", 1000, -4, 4);
h2->FillRandom("gaus", 30000);
"Option_t*");
}
{
}
{
printf(
"title of the histogram : %s\n", ((
TH1F *)
c)->GetTitle());
}
{
printf(
"title of the histogram : %s\n", ((
TH1F *)
c)->GetTitle());
}
{
return 12;
}
{
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
TClass instances represent classes, structs and namespaces in the ROOT type system.
TList * GetMenuList() const
Return the list of menu items associated with the class.
TClass * IsA() const override
1-D histogram with a float per channel (see TH1 documentation)
Mother of all ROOT objects.
- Author
- Ilka Antcheva
Definition in file customContextMenu.C.