Revision 3eafda69af47ee2c119f8be4b51a9a8ca3aa4eed authored by Rene Brun on 26 November 2008, 07:21:23 UTC, committed by Rene Brun on 26 November 2008, 07:21:23 UTC
fix for http://savannah.cern.ch/bugs/?44500 git-svn-id: http://root.cern.ch/svn/root/trunk@26470 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 356e4b7
GetWebHistogram.C
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::SetStaticObject(h6);
}
Computing file changes ...