25 std::string sCanvName =
fsBaseName +
"_cmp_canvas";
29 const char* xAxisTitle =
static_cast<TH1*
>(
fvpObjects[0])->GetXaxis()->GetTitle();
30 const char* yAxisTitle =
static_cast<TH1*
>(
fvpObjects[0])->GetYaxis()->GetTitle();
31 const char* zAxisTitle =
static_cast<TH1*
>(
fvpObjects[0])->GetZaxis()->GetTitle();
33 int nVersions =
fpObjDB->GetNofVersions();
34 fpCanvas = std::make_shared<TCanvas>(sCanvName.data(), title, 1500, 700);
36 for (
int iVer = 0; iVer < nVersions; ++iVer) {
38 gPad->SetMargin(0.20, 0.20, 0.20, 0.10);
39 auto* pCopy =
static_cast<TH2*
>(
static_cast<TH2*
>(
fvpObjects[iVer])->Clone());
40 pCopy->SetTitle(Form(
"%s: %s", title,
fpObjDB->GetVersionLabel(iVer).c_str()));
41 pCopy->GetXaxis()->SetTitle(xAxisTitle);
42 pCopy->GetYaxis()->SetTitle(yAxisTitle);
43 pCopy->GetZaxis()->SetTitle(zAxisTitle);