18 TPad *pad1, *pad2, *pad3;
19 if (!
gROOT->IsBatch()) {
20 c1 =
new TCanvas(
"c1",
"Shared Memory Consumer Example",200,10,700,780);
21 pad1 =
new TPad(
"pad1",
"This is pad1",0.02,0.52,0.98,0.98,21);
22 pad2 =
new TPad(
"pad2",
"This is pad2",0.02,0.02,0.48,0.48,21);
23 pad3 =
new TPad(
"pad3",
"This is pad3",0.52,0.02,0.98,0.48,21);
46 hpxpy = (
TH2F *) mfile->Get(
"hpxpy", hpxpy);
47 hprof = (
TProfile *) mfile->Get(
"hprof", hprof);
48 if (!hpx || !hpxpy || !hprof || hpx->GetEntries() == oldentries)
50 oldentries = hpx->GetEntries();
51 if (!
gROOT->IsBatch()) {
61 printf(
"Entries, hpx=%lld, Mean=%g, RMS=%g\n",
double Double_t
Double 8 bytes.
long long Long64_t
Portable signed long integer 8 bytes.
1-D histogram with a float per channel (see TH1 documentation)
void Draw(Option_t *option="") override
Draw this histogram with options.
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.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
void Draw(Option_t *option="") override
Draw Pad in Current pad (re-parent pad if necessary).