Revision a5be373957d9bd95feb6d44e11b7141fd9357654 authored by Fons Rademakers on 28 September 2006, 14:49:37 UTC, committed by Fons Rademakers on 28 September 2006, 14:49:37 UTC
inline assembler.


git-svn-id: http://root.cern.ch/svn/root/trunk@16366 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent cfa89a5
Raw File
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);
}
back to top