Histogram consumer script.
Create a canvas and 3 pads. Connect to memory mapped file "hsimple.map", that was created by hprod.C. It reads the histograms from shared memory and displays them in the pads (sleeping for 0.1 seconds before starting a new read-out cycle). This script runs in an infinite loop, so use ctrl-c to stop it.
{
c1 =
new TCanvas(
"c1",
"Shared Memory Consumer Example",200,10,700,780);
pad1 =
new TPad(
"pad1",
"This is pad1",0.02,0.52,0.98,0.98,21);
pad2 =
new TPad(
"pad2",
"This is pad2",0.02,0.02,0.48,0.48,21);
pad3 =
new TPad(
"pad3",
"This is pad3",0.52,0.02,0.98,0.48,21);
}
while (1) {
break;
} else {
printf(
"Entries, hpx=%lld, Mean=%g, RMS=%g\n",
}
break;
}
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TSystem * gSystem
1-D histogram with a float per channel (see TH1 documentation)
2-D histogram with a float per channel (see TH1 documentation)
static TMapFile * Create(const char *name, Option_t *option="READ", Int_t size=kDefaultMapSize, const char *title="")
Create a memory mapped file.
The most important graphics class in the ROOT system.
virtual void Sleep(UInt_t milliSec)
Sleep milliSec milli seconds.
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
- Author
- Fons Rademakers
Definition in file hcons.C.