12 #include <THttpServer.h>
13 #include <TObjArray.h>
28 fCanvas = std::unique_ptr<TCanvas, std::function<void(TCanvas*)>>(
new TCanvas(
"c1",
"", 10, 10, 1000, 1000),
33 fCanvas->Divide(2, 2);
34 server.Register(
"Canvases", fCanvas.get());
39 for (
int i = 0; i < arrayHisto.GetEntriesFast(); i++) {
40 TObject* obj = arrayHisto.At(i);
41 TH1* histogram =
static_cast<TH1*
>(obj);
43 if (TString(histogram->GetName()).EqualTo(
"histo1")) {
49 }
else if (TString(histogram->GetName()).EqualTo(
"histo2")) {
55 }
else if (TString(histogram->GetName()).EqualTo(
"histo3")) {
57 histogram->Draw(
"COL");
61 }
else if (TString(histogram->GetName()).EqualTo(
"histo4")) {
63 histogram->Draw(
"COL");
FairMQExHistoCanvasDrawerExample()
virtual ~FairMQExHistoCanvasDrawerExample()
void DrawHistograms(TObjArray &)
void CreateCanvases(THttpServer &)