Skip to content
Snippets Groups Projects
Commit f934ee27 authored by Rene Brun's avatar Rene Brun
Browse files

Add this script referenced (Action on demand) by Event

git-svn-id: http://root.cern.ch/svn/root/trunk@4639 27541ba8-7e3a-0410-8455-c3a389f83636
parent e348978c
No related branches found
No related tags found
No related merge requests found
void GetWebHistogram()
{
// example of script called from an Action on Demand when a TRef object
// is dereferenced. See Event.h, member fWebHistogram
const char *URL = "http://root.cern.ch/files/pippa.root";
printf("GetWebHistogram from URL: %s\n",URL);
TFile *f= TFile::Open(URL);
f->cd("DM/CJ");
TH1 *h6 = (TH1*)gDirectory->Get("h6");
h6->SetDirectory(0);
delete f;
TRef::SetObject(h6);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment