Revision 54807d9b7051c0e88d7074c9d2205bbd884e0210 authored by Axel Naumann on 12 April 2022, 16:24:02 UTC, committed by Axel Naumann on 12 April 2022, 16:24:02 UTC
1 parent c67b5e1
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);
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...