From 952432663fb67658c96c3d05cb72d2824a5a8e40 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Wed, 14 Dec 2022 22:06:40 +0100 Subject: [PATCH] Typo: Fix the correct object to Clonen --- PhysicsTools/FWLite/interface/Scanner.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PhysicsTools/FWLite/interface/Scanner.h b/PhysicsTools/FWLite/interface/Scanner.h index c71a67d5ac72a..28958c6005c68 100644 --- a/PhysicsTools/FWLite/interface/Scanner.h +++ b/PhysicsTools/FWLite/interface/Scanner.h @@ -371,7 +371,7 @@ namespace fwlite { if (htemplate != nullptr) { if ((strcmp(hname, "htemp") == 0) && (strcmp(hname, htemplate->GetName()) != 0)) htempDelete(); - hist = (TProfile *)hist->Clone(hname); + hist = (TProfile *)htemplate->Clone(hname); } else if (drawopt.Contains("SAME", TString::kIgnoreCase)) { hist = getSameProf(hname); } @@ -463,7 +463,7 @@ namespace fwlite { if (htemplate != nullptr) { if ((strcmp(hname, "htemp") == 0) && (strcmp(hname, htemplate->GetName()) != 0)) htempDelete(); - hist = (TH2 *)hist->Clone(hname); + hist = (TH2 *)htemplate->Clone(hname); } else if (drawopt.Contains("SAME", TString::kIgnoreCase)) { hist = getSameH2(hname); }