Skip to content

Commit 033d019

Browse files
authored
Merge pull request cms-sw#33803 from jfernan2/NoResLimitedFitfix
Adding gauss function to NoResLimitedFit
2 parents 274a32b + c89e399 commit 033d019

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DQMServices/Components/plugins/DQMGenericClient.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ class FitSlicesYTool {
157157
TH1::AddDirectory(true);
158158
// ... create your hists
159159
TH2F* h = me->getTH2F();
160-
h->FitSlicesY(nullptr, 0, -1, 0, "QNR SERIAL");
160+
TF1 fgaus("fgaus", "gaus", h->GetYaxis()->GetXmin(), h->GetYaxis()->GetXmax(), TF1::EAddToList::kNo);
161+
h->FitSlicesY(&fgaus, 0, -1, 0, "QNR SERIAL");
161162
string name(h->GetName());
162163
h0 = (TH1*)gDirectory->Get((name + "_0").c_str());
163164
h1 = (TH1*)gDirectory->Get((name + "_1").c_str());

0 commit comments

Comments
 (0)