Analysis-Utilities 26.9.9
C++/ROOT utilities for nuclear measurement data analysis
Loading...
Searching...
No Matches
InteractiveRooFitEditor.cpp File Reference
#include "InteractiveRooFitEditor.hpp"
#include "InteractiveEditorX11Guard.hpp"
#include "PlottingUtils.hpp"
#include <RooArgSet.h>
#include <RooFitResult.h>
#include <RooMsgService.h>
#include <TROOT.h>
#include <iostream>
Include dependency graph for InteractiveRooFitEditor.cpp:

Go to the source code of this file.

Functions

Bool_t LaunchInteractiveRooFitEditor (TH1 *hist, const std::vector< Double_t > *events, Float_t display_bin_width_kev, RooAbsPdf *total_pdf, RooRealVar *x, RooAbsData *data, std::vector< RooFitPeakModel > *peaks, RooFitBackgroundModel *bkg, Double_t range_low, Double_t range_high, const TString &info_label)
 Open the RooFit editor and pump its event loop until the user is done.

Function Documentation

◆ LaunchInteractiveRooFitEditor()

Bool_t LaunchInteractiveRooFitEditor ( TH1 * hist,
const std::vector< Double_t > * events,
Float_t display_bin_width_kev,
RooAbsPdf * total_pdf,
RooRealVar * x,
RooAbsData * data,
std::vector< RooFitPeakModel > * peaks,
RooFitBackgroundModel * bkg,
Double_t range_low,
Double_t range_high,
const TString & info_label )

Open the RooFit editor and pump its event loop until the user is done.

Same batch-mode and X error-handler handling as LaunchInteractiveFitEditor().

Parameters
histDisplay histogram.
eventsEvent-level values, for live rebinning.
display_bin_width_kevDisplay bin width.
total_pdfSummed model.
xObservable.
dataUnbinned dataset.
peaksPer-peak parameter models, updated on accept.
bkgBackground model, updated on accept.
range_lowInitial lower fit bound.
range_highInitial upper fit bound.
info_labelOptional annotation shown in the editor.
Returns
kTRUE if the user accepted; kFALSE on cancel, leaving every parameter as it was.

Definition at line 1014 of file InteractiveRooFitEditor.cpp.

Referenced by RooFitUtils::FitDoublePeak(), RooFitUtils::FitDoublePeak(), RooFitUtils::FitSinglePeak(), and RooFitUtils::FitTriplePeak().