Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 6, 2024
1 parent 661e575 commit edb1a13
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/TRestDetectorSignal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,15 @@ TRestDetectorSignal::GetPeakGauss() // returns a 2vector with the time of the p

TFitResultPtr fitResult =
signal_graph->Fit(&gauss, "QNRS"); // Q = quiet, no info in screen; N = no plot; R = fit in
// the function range; S = save and return the fit result
// the function range; S = save and return the fit result

if (!fitResult->IsValid()) {
return nullopt;
}

double energy = gauss.GetParameter(0);
double time = gauss.GetParameter(1);

return make_pair(time, energy);
}

Expand Down Expand Up @@ -370,10 +370,10 @@ TRestDetectorSignal::GetPeakLandau() // returns a 2vector with the time of the
TF1 landau("landau", "landau", lowerLimit, upperLimit);

auto signal_graph = std::unique_ptr<TGraph>(GetGraph());

TFitResultPtr fitResult =
signal_graph->Fit(&landau, "QNRS"); // Q = quiet, no info in screen; N = no plot; R = fit in the function range;
// S = save and return the fit result
signal_graph->Fit(&landau, "QNRS"); // Q = quiet, no info in screen; N = no plot; R = fit in the
// function range; S = save and return the fit result
if (!fitResult->IsValid()) {
return nullopt;
}
Expand Down Expand Up @@ -431,8 +431,9 @@ TRestDetectorSignal::GetPeakAget() // returns a 2vector with the time of the pe

auto signal_graph = std::unique_ptr<TGraph>(GetGraph());

TFitResultPtr fitResult = signal_graph->Fit(&aget, "QNRS"); // Q = quiet, no info in screen; N = no plot; R = fit in
// the function range; S = save and return the fit result
TFitResultPtr fitResult =
signal_graph->Fit(&aget, "QNRS"); // Q = quiet, no info in screen; N = no plot; R = fit in
// the function range; S = save and return the fit result

if (!fitResult->IsValid()) {
return nullopt;
Expand Down

0 comments on commit edb1a13

Please sign in to comment.