Analysis-Utilities 26.9.9
C++/ROOT utilities for nuclear measurement data analysis
Loading...
Searching...
No Matches
SimEditorChannelView Struct Reference

Everything the simultaneous editor needs to show one channel. More...

#include <InteractiveSimultaneousFitEditor.hpp>

Collaboration diagram for SimEditorChannelView:

Public Attributes

TString name
 Channel name, shown on the tab.
TH1 * hist
 Display histogram for this channel.
const std::vector< Double_t > * events
 Event-level values behind hist, so the display can be rebinned live as the fit range changes.
Float_t display_bin_width_kev
 Display bin width.
RooAbsPdf * pdf
 This channel's summed model.
RooAbsData * data
 This channel's unbinned dataset.
std::vector< RooFitPeakModel > * peaks
 Per-peak parameter models.
RooFitBackgroundModelbkg
 Background model.
Int_t num_peaks
 Peaks in this channel.
Parameter state

params is the live set the editor writes through; the original_* vectors are the snapshot Reset restores, and the current_* vectors track bounds as the user edits them.

std::vector< RooRealVar * > params
std::vector< Double_t > original_params
std::vector< Double_t > original_bounds_low
std::vector< Double_t > original_bounds_high
std::vector< Bool_t > original_fixed
std::vector< Double_t > current_bounds_low
std::vector< Double_t > current_bounds_high
Widgets and drawing objects

Populated by the editor when it builds this channel's tab.

std::vector< TGHSlider * > sliders
std::vector< TGNumberEntry * > value_entries
std::vector< TGCheckButton * > fix_checks
std::vector< TGNumberEntry * > lo_bound_entries
std::vector< TGNumberEntry * > hi_bound_entries
TRootEmbeddedCanvas * embedded_canvas
TPad * main_pad
TPad * residual_pad
TH1 * hist_draw
TGraph * total_graph
TGraph * bkg_graph
TGraph * comp_graphs [3][4]
TGraph * res_graph
TF1 * zero_line
TF1 * plus3_line
TF1 * minus3_line
TLatex * chi2_label
Int_t n_res_points

Detailed Description

Everything the simultaneous editor needs to show one channel.

The caller fills in the model and data members; the editor fills in the widget and drawing members as it builds that channel's tab, and writes edited values back through params on accept.

Note
Every pointer here is borrowed. RooFitUtils owns the model objects and the editor owns the widgets, so a view must not outlive either.

Definition at line 40 of file InteractiveSimultaneousFitEditor.hpp.

Member Data Documentation

◆ bkg

◆ bkg_graph

◆ chi2_label

◆ comp_graphs

◆ current_bounds_high

std::vector<Double_t> SimEditorChannelView::current_bounds_high

◆ current_bounds_low

std::vector<Double_t> SimEditorChannelView::current_bounds_low

◆ data

RooAbsData* SimEditorChannelView::data

This channel's unbinned dataset.

Definition at line 48 of file InteractiveSimultaneousFitEditor.hpp.

Referenced by RooFitUtils::FitSimultaneous().

◆ display_bin_width_kev

Float_t SimEditorChannelView::display_bin_width_kev

Display bin width.

Definition at line 46 of file InteractiveSimultaneousFitEditor.hpp.

Referenced by RooFitUtils::FitSimultaneous().

◆ embedded_canvas

TRootEmbeddedCanvas* SimEditorChannelView::embedded_canvas

◆ events

const std::vector<Double_t>* SimEditorChannelView::events

Event-level values behind hist, so the display can be rebinned live as the fit range changes.

Definition at line 45 of file InteractiveSimultaneousFitEditor.hpp.

Referenced by RooFitUtils::FitSimultaneous().

◆ fix_checks

std::vector<TGCheckButton *> SimEditorChannelView::fix_checks

◆ hi_bound_entries

std::vector<TGNumberEntry *> SimEditorChannelView::hi_bound_entries

◆ hist

TH1* SimEditorChannelView::hist

Display histogram for this channel.

Definition at line 42 of file InteractiveSimultaneousFitEditor.hpp.

Referenced by RooFitUtils::FitSimultaneous().

◆ hist_draw

◆ lo_bound_entries

std::vector<TGNumberEntry *> SimEditorChannelView::lo_bound_entries

◆ main_pad

◆ minus3_line

◆ n_res_points

Int_t SimEditorChannelView::n_res_points

◆ name

TString SimEditorChannelView::name

Channel name, shown on the tab.

Definition at line 41 of file InteractiveSimultaneousFitEditor.hpp.

Referenced by RooFitUtils::FitSimultaneous().

◆ num_peaks

Int_t SimEditorChannelView::num_peaks

◆ original_bounds_high

std::vector<Double_t> SimEditorChannelView::original_bounds_high

◆ original_bounds_low

std::vector<Double_t> SimEditorChannelView::original_bounds_low

◆ original_fixed

std::vector<Bool_t> SimEditorChannelView::original_fixed

◆ original_params

std::vector<Double_t> SimEditorChannelView::original_params

◆ params

std::vector<RooRealVar *> SimEditorChannelView::params

◆ pdf

RooAbsPdf* SimEditorChannelView::pdf

This channel's summed model.

Definition at line 47 of file InteractiveSimultaneousFitEditor.hpp.

Referenced by RooFitUtils::FitSimultaneous().

◆ peaks

std::vector<RooFitPeakModel>* SimEditorChannelView::peaks

◆ plus3_line

◆ res_graph

◆ residual_pad

◆ sliders

std::vector<TGHSlider *> SimEditorChannelView::sliders

◆ total_graph

◆ value_entries

std::vector<TGNumberEntry *> SimEditorChannelView::value_entries

◆ zero_line


The documentation for this struct was generated from the following file: