GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
Base class for all helpers used in grsiframe. It provides some general members that are set from the input list, like TPPG, run info, and user settings. It also loads settings from the input list into general GRSISort variables, like the analysis options, g-value files, cut files, or calibration files.
Definition at line 38 of file TGRSIHelper.h.
Public Types | |
using | Result_t = std::map<std::string, TList> |
Public Member Functions | |
TGRSIHelper (const TGRSIHelper &)=delete | |
TGRSIHelper (TGRSIHelper &&)=default | |
TGRSIHelper (TList *input) | |
~TGRSIHelper ()=default | |
virtual ROOT::RDF::RResultPtr< std::map< std::string, TList > > | Book (ROOT::RDataFrame *) |
virtual void | CreateHistograms (unsigned int) |
virtual void | EndOfSort (std::shared_ptr< std::map< std::string, TList > > &) |
void | Finalize () |
std::string | GetActionName () const |
std::shared_ptr< std::map< std::string, TList > > | GetResultPtr () const |
void | Initialize () |
void | InitTask (TTreeReader *, unsigned int) |
TGRSIHelper & | operator= (const TGRSIHelper &)=delete |
TGRSIHelper & | operator= (TGRSIHelper &&)=default |
std::string & | Prefix () |
std::string | Prefix () const |
void | Prefix (const std::string &val) |
virtual void | Setup () |
Protected Member Functions | |
TPPG * | Ppg () |
TRunInfo * | RunInfo () |
TUserSettings * | UserSettings () |
Protected Attributes | |
std::vector< TGRSIMap< std::string, GCube * > > | fCube |
std::map< std::string, TCutG * > | fCuts |
std::vector< TGRSIMap< std::string, TH1 * > > | fH1 |
std::vector< TGRSIMap< std::string, TH2 * > > | fH2 |
std::vector< TGRSIMap< std::string, TH3 * > > | fH3 |
std::vector< std::shared_ptr< std::map< std::string, TList > > > | fLists |
std::vector< TGRSIMap< std::string, TObject * > > | fObject |
TPPG * | fPpg {nullptr} |
std::string | fPrefix {"TGRSIHelper"} |
TRunInfo * | fRunInfo {nullptr} |
std::vector< TGRSIMap< std::string, GHSym * > > | fSym |
std::vector< TGRSIMap< std::string, TTree * > > | fTree |
TUserSettings * | fUserSettings {nullptr} |
Private Member Functions | |
void | CheckSizes (unsigned int slot, const char *usage) |
Static Private Attributes | |
static constexpr int | fSizeLimit = 1073741822 |
using TGRSIHelper::Result_t = std::map<std::string, TList> |
This type is a requirement for every helper.
Definition at line 67 of file TGRSIHelper.h.
|
explicit |
Definition at line 5 of file TGRSIHelper.cxx.
References TGRSIOptions::AnalysisOptions(), DRED, fCuts, TGRSIOptions::Get(), TChannel::ReadCalFile(), GValue::ReadValFile(), RESET_COLOR, and GValue::Size().
|
delete |
|
default |
|
default |
|
inlinevirtual |
This method will call the Book action on the provided dataframe.
Reimplemented in AlphanumericHelper, AngularCorrelationHelper, ComptonPolarimetryHelper, CrossTalkHelper, DirectoryHelper, EfficiencyHelper, ExampleEventHelper, ExampleFragmentHelper, ExampleTreeHelper, GriffinKValueHelper, and TimeWalkHelper.
Definition at line 81 of file TGRSIHelper.h.
References Prefix().
|
private |
check size of each object in the output list
Definition at line 215 of file TGRSIHelper.cxx.
References DRED, fLists, fSizeLimit, and RESET_COLOR.
Referenced by Finalize(), and Setup().
|
inlinevirtual |
Virtual helper function that the user uses to create their histograms.
Reimplemented in AlphanumericHelper, AngularCorrelationHelper, ComptonPolarimetryHelper, CrossTalkHelper, DirectoryHelper, EfficiencyHelper, ExampleEventHelper, ExampleFragmentHelper, ExampleTreeHelper, GriffinKValueHelper, and TimeWalkHelper.
Definition at line 76 of file TGRSIHelper.h.
References Prefix().
Referenced by Setup().
|
inlinevirtual |
This method gets called at the end of Finalize()
Reimplemented in DirectoryHelper, EfficiencyHelper, and ExampleEventHelper.
Definition at line 100 of file TGRSIHelper.h.
Referenced by Finalize().
void TGRSIHelper::Finalize | ( | ) |
This required method is called at the end of the event loop. It is used to merge all the internal TLists which were used in each of the data processing slots.
This function merges all maps of lists into the map of the first slot (slot 0)
Definition at line 154 of file TGRSIHelper.cxx.
References CheckSizes(), EndOfSort(), and fLists.
|
inline |
Definition at line 104 of file TGRSIHelper.h.
References Prefix().
|
inline |
Definition at line 92 of file TGRSIHelper.h.
References fLists.
|
inline |
Definition at line 94 of file TGRSIHelper.h.
|
inline |
Definition at line 93 of file TGRSIHelper.h.
|
delete |
|
default |
|
inlineprotected |
Definition at line 43 of file TGRSIHelper.h.
References fPpg.
Referenced by ExampleEventHelper::CreateHistograms().
|
inline |
Definition at line 40 of file TGRSIHelper.h.
References fPrefix.
Referenced by AlphanumericHelper::AlphanumericHelper(), AngularCorrelationHelper::AngularCorrelationHelper(), ComptonPolarimetryHelper::ComptonPolarimetryHelper(), CrossTalkHelper::CrossTalkHelper(), DirectoryHelper::DirectoryHelper(), EfficiencyHelper::EfficiencyHelper(), ExampleEventHelper::ExampleEventHelper(), ExampleFragmentHelper::ExampleFragmentHelper(), ExampleTreeHelper::ExampleTreeHelper(), GriffinKValueHelper::GriffinKValueHelper(), TimeWalkHelper::TimeWalkHelper(), Book(), CreateHistograms(), and GetActionName().
|
inline |
Definition at line 102 of file TGRSIHelper.h.
References fPrefix.
|
inline |
Definition at line 103 of file TGRSIHelper.h.
References fPrefix.
|
inlineprotected |
Definition at line 44 of file TGRSIHelper.h.
References fRunInfo.
|
virtual |
This function builds the vectors of TLists and maps for 1D- and 2D-histograms. It calls the overloaded CreateHistograms functions in which the user can define their histograms. Then it adds all those histograms to the list of the corresponding slot.
Definition at line 71 of file TGRSIHelper.cxx.
References CheckSizes(), CreateHistograms(), fCube, fH1, fH2, fH3, fLists, fObject, fSym, fTree, TGRSIOptions::Get(), and TGRSIOptions::GetMaxWorkers().
Referenced by AlphanumericHelper::AlphanumericHelper(), AngularCorrelationHelper::AngularCorrelationHelper(), ComptonPolarimetryHelper::ComptonPolarimetryHelper(), CrossTalkHelper::CrossTalkHelper(), DirectoryHelper::DirectoryHelper(), EfficiencyHelper::EfficiencyHelper(), ExampleEventHelper::ExampleEventHelper(), ExampleFragmentHelper::ExampleFragmentHelper(), ExampleTreeHelper::ExampleTreeHelper(), GriffinKValueHelper::GriffinKValueHelper(), and TimeWalkHelper::TimeWalkHelper().
|
inlineprotected |
Definition at line 45 of file TGRSIHelper.h.
References fUserSettings.
Definition at line 52 of file TGRSIHelper.h.
Referenced by Setup().
|
protected |
Definition at line 55 of file TGRSIHelper.h.
Referenced by TGRSIHelper().
|
protected |
Definition at line 48 of file TGRSIHelper.h.
Referenced by ComptonPolarimetryHelper::CreateHistograms(), CrossTalkHelper::CreateHistograms(), DirectoryHelper::CreateHistograms(), EfficiencyHelper::CreateHistograms(), ExampleEventHelper::CreateHistograms(), ExampleTreeHelper::CreateHistograms(), GriffinKValueHelper::CreateHistograms(), ComptonPolarimetryHelper::Exec(), CrossTalkHelper::Exec(), DirectoryHelper::Exec(), EfficiencyHelper::Exec(), ExampleEventHelper::Exec(), ExampleTreeHelper::Exec(), GriffinKValueHelper::Exec(), and Setup().
|
protected |
Definition at line 49 of file TGRSIHelper.h.
Referenced by AlphanumericHelper::CreateHistograms(), AngularCorrelationHelper::CreateHistograms(), ComptonPolarimetryHelper::CreateHistograms(), CrossTalkHelper::CreateHistograms(), DirectoryHelper::CreateHistograms(), EfficiencyHelper::CreateHistograms(), ExampleEventHelper::CreateHistograms(), ExampleFragmentHelper::CreateHistograms(), ExampleTreeHelper::CreateHistograms(), GriffinKValueHelper::CreateHistograms(), TimeWalkHelper::CreateHistograms(), ExampleEventHelper::EndOfSort(), AlphanumericHelper::Exec(), AngularCorrelationHelper::Exec(), ComptonPolarimetryHelper::Exec(), CrossTalkHelper::Exec(), DirectoryHelper::Exec(), EfficiencyHelper::Exec(), ExampleEventHelper::Exec(), ExampleFragmentHelper::Exec(), ExampleTreeHelper::Exec(), GriffinKValueHelper::Exec(), TimeWalkHelper::Exec(), and Setup().
|
protected |
Definition at line 50 of file TGRSIHelper.h.
Referenced by TimeWalkHelper::CreateHistograms(), TimeWalkHelper::Exec(), and Setup().
|
protected |
Definition at line 47 of file TGRSIHelper.h.
Referenced by CheckSizes(), Finalize(), GetResultPtr(), and Setup().
|
protected |
Definition at line 54 of file TGRSIHelper.h.
Referenced by AngularCorrelationHelper::CreateHistograms(), and Setup().
|
protected |
Definition at line 56 of file TGRSIHelper.h.
Referenced by Ppg().
|
protected |
Definition at line 59 of file TGRSIHelper.h.
|
protected |
Definition at line 57 of file TGRSIHelper.h.
Referenced by RunInfo().
|
staticconstexprprivate |
! 1 GiB size limit for objects in ROOT
Definition at line 62 of file TGRSIHelper.h.
Referenced by CheckSizes().
Definition at line 51 of file TGRSIHelper.h.
Referenced by Setup().
|
protected |
Definition at line 53 of file TGRSIHelper.h.
Referenced by ExampleTreeHelper::CreateHistograms(), ExampleTreeHelper::Exec(), and Setup().
|
protected |
Definition at line 58 of file TGRSIHelper.h.
Referenced by AngularCorrelationHelper::AngularCorrelationHelper(), ComptonPolarimetryHelper::ComptonPolarimetryHelper(), and UserSettings().