{
auto c = new TCanvas;
TH1D * h = new TH1D("h", "h", 10, 0, 10);
for ( int i = 0; i < 1000000; i++ ) {
sleep(1);
h->Fill(2);
h->Draw();
c->Update();
}
}
What do you mean with “another terminal”? Do you want to add some IPC code? If so, why?
No, I don’t want to monitor the histogram all the time.
Because that will significantly reduce the processing speed.
I would like to monitor it whenever I want without slowing down the processing loop.
Not exactly what I want because you have to run the plotting in the same session.
I know there are web pages, like CMS DQM, showing realtime root histograms to monitor the detector performance etc during the run.
I wonder if I can do that in a light weight framework.