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);
"Test object, draw a second h","Draw",h2,"Option_t*");
"test no 4","poptest4",0,"const char*");
"test no 3","poptest3",0,"");
"test no 2 bis","poptest2bis",0,"TObject*",2);
"test no 2","poptest2",0,"int,int,TObject*",2);
"test no 1","poptest1",0,"int,int");
}
{
}
{
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.