Tools for Reactor-Antineutrino Studies in RAT-PAC  1.2.0
Code for running and analyzing reactor-IBD simulations
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TKSMultiRibbons Class Reference

Class for analyzing DeltaPhi for each individual angle alongside TKSMultiRes. More...

#include <TKSMultiRibbons.h>

Inheritance diagram for TKSMultiRibbons:
Inheritance graph
[legend]
Collaboration diagram for TKSMultiRibbons:
Collaboration graph
[legend]

Public Types

enum  EPlotTypes { kRibbons , kHeatmap , kBoth }
 Which plots to make: More...
 

Public Member Functions

 TKSMultiRibbons ()
 Default ctor.
 
Bool_t IsInit ()
 Whether Init() has been run yet.
 
void SetPlotTypes (EPlotTypes plotSelection)
 
void SetCurrentPlotType (EPlotTypes plotSelection)
 
void SetFileList (TObjArray *newFileList)
 
void SetOutFileName (TString fileName)
 
void SetOutFileName (const char *filename)
 
void SetOutFile (TFile *fNew)
 
Int_t GetNFiles ()
 
Int_t GetNAngles ()
 
EPlotTypes GetPlotTypes ()
 
EPlotTypes GetCurrentPlotType ()
 
TObjArray * GetFileList ()
 
TString GetOutFileName ()
 
TFile * GetOutFile ()
 
TCanvas * GetHeatmapCanvas ()
 
TCanvas * GetRibbonCanvas ()
 
TList * GetRibbonList ()
 
TList * GetCutList ()
 
TMatrixD * GetDeltas ()
 
void Init ()
 Initialize.
 
void DrawPlots ()
 Draw specified plots.
 
void Ribbons ()
 Fit distributions for each angle and draw as ribbon plot.
 
void Heatmap ()
 Fit distributions for each angle and draw as heatmap.
 
void Save ()
 Save results.
 
void Run ()
 Perform all selected analyses.
 
void PrintEnums ()
 Display this class' enums.
 

Private Member Functions

void SetInit (Bool_t newInit)
 
void FillFileList ()
 Scan for KSSummary files and store in fFileList.
 
void SetNFiles (Int_t newNFiles)
 
void SetNAngles (Int_t newNAngles)
 
void SetDeltas (TMatrixD *newDeltas)
 Fill difference matrix.
 
TMatrixD RetrieveData ()
 Fetch data from files.
 
void FillData ()
 Fill difference data.
 

Private Attributes

Bool_t fkInit
 Whether Init() has been run yet.
 
Int_t fkNFiles
 Number of 'KSSummary.root' files found.
 
Int_t fkNAngles
 Number of angles in each file.
 
EPlotTypes fPlotTypes
 Which plots to make.
 
EPlotTypes fCurrentPlotType
 Currently-active plot type.
 
TObjArray * fFileList
 List of KSSummary files to analyze.
 
TString fOutFileName
 Output filename.
 
TFile * fOutFile
 Output TFile*.
 
TCanvas * fHeatmapCanvas
 Canvas for heatmap plot.
 
TCanvas * fRibbonCanvas
 Canvas for ribbon plots.
 
TList * fRibbonList
 List of ribbon plots.
 
TList * fCutList
 List of xy cuts for ribbon plots.
 
TMatrixD * fDeltas
 Matrix containing (phi_recon-phi_true), dimensions <N_files>x<N_angles>
 

Detailed Description

Class for analyzing DeltaPhi for each individual angle alongside TKSMultiRes.

TKSMultiRibbons

Class for making ribbon and heatmap plots, specifically from KSSummary data.

To use:

Plot-type enum options are:

Example:

R.SetPlotTypes(TKSMultiRibbons::kHeatmap);
R.Run();
R.SetOutFileName("MultiRibbons.root");
R.Save();
Class for analyzing DeltaPhi for each individual angle alongside TKSMultiRes.
Definition: TKSMultiRibbons.h:54
@ kHeatmap
Heatmap plot only.
Definition: TKSMultiRibbons.h:61
void Save()
Save results.
Definition: TKSMultiRibbons.cxx:266
void Run()
Perform all selected analyses.
Definition: TKSMultiRibbons.cxx:323

Member Enumeration Documentation

◆ EPlotTypes

Which plots to make:

Enumerator
kRibbons 

Ribbon plot only.

kHeatmap 

Heatmap plot only.

kBoth 

Both plots.


The documentation for this class was generated from the following files: