![]() |
Tools for Reactor-Antineutrino Studies in RAT-PAC
1.2.0
Code for running and analyzing reactor-IBD simulations
|
Class for combining reference-comparison results from multiple runs. More...
#include <TKSMultiRes.h>


Public Member Functions | |
| TKSMultiRes () | |
| Default ctor. | |
| TMacro * | GenerateRibbonMacro () |
| Generate a TMacro for recreating the ribbon plots. More... | |
| void | SetRibbon (Bool_t newRibbon) |
| void | SetOutFileName (TString fileName) |
| void | SetOutFileName (const char *filename) |
| TObjArray * | GetFileList () |
| Bool_t | IsRibbon () |
| TString | GetOutFileName () |
| TFile * | GetOutFile () |
| TH1D * | GetHistoSum () |
| TF1 * | GetHistoSumFit () |
| TFitResultPtr | GetHistoSumFitResultPtr () |
| TFitResult * | GetHistoSumFitResult () |
| TCanvas * | GetHistoCanvas () |
| TCanvas * | GetRibbonCanvas () |
| TKSMultiRibbons * | GetRibbons () |
| void | Init () |
| Initialize. | |
| TH1D * | Histos () |
| Add histograms and fit. | |
| TH2D * | Ribbons () |
| Fit distributions for each angle and draw as ribbon plot. | |
| void | Save () |
| Save results. More... | |
| void | Run () |
| Perform and save all selected analyses. | |
Private Member Functions | |
| void | FillFileList () |
| Scan for KSSummary files and store in fFileList. More... | |
Private Attributes | |
| TObjArray * | fFileList |
| List of KSSummary files to analyze. | |
| Bool_t | fkRibbon |
| Whether to generate ribbon plots. | |
| TString | fOutFileName |
| Output filename. | |
| TFile * | fOutFile |
| Output TFile*. | |
| TH1D * | fHistoSum |
| Summed histogram. | |
| TF1 * | fHistoSumFit |
| Gaussian fitted to fHistoSum. | |
| TFitResultPtr | fHistoSumFitResultPtr |
| Pointer-class to fit result. | |
| TFitResult * | fHistoSumFitResult |
| Fit result for the summed histogram. | |
| TCanvas * | fHistoCanvas |
| Canvas for histo sum. | |
| TCanvas * | fRibbonCanvas |
| Canvas for ribbon plots. | |
| TKSMultiRibbons * | fRibbons |
| Class for separate-angle analysis. | |
Class for combining reference-comparison results from multiple runs.
Class for combining reference-comparison results from multiple runs, specifically from KSSummary data.
To use:
Example:
|
private |
Scan for KSSummary files and store in fFileList.
normal ctor **
| TMacro * TKSMultiRes::GenerateRibbonMacro | ( | ) |
Generate a TMacro for recreating the ribbon plots.
This function is called by Save() if a ribbon plot exists. Because TCanvas::Write() does not seem to record the "cut" options, simply writing the ribbon canvas to a TFile and then attempting to draw the ribbon canvas from the file does not display the ribbon plots correctly.
This feature enables a user to properly open the ribbon plot interactively without needing to access the source datafiles and TKSMultiRes/TKSMultiRibbons classes.
Note: This was written with ROOTv5.34/30 and may not work with other versions.
| mac | – macro for redrawing ribbon plots from output file |
| void TKSMultiRes::Save | ( | ) |
Save results.
Calling Save() will :
1) Export the current view of all existing canvases, in .png format; and
2) Write the following objects to the output file:
TCanvas* c_histoTH1D* histoTF1* gaussFitTFitResult* fitResult