4#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 14, 0)
5#include "ROOT/RDataFrame.hxx"
13#include "TBufferFile.h"
47 std::vector<std::shared_ptr<std::map<std::string, TList>>>
fLists;
48 std::vector<TGRSIMap<std::string, TH1*>>
fH1;
49 std::vector<TGRSIMap<std::string, TH2*>>
fH2;
50 std::vector<TGRSIMap<std::string, TH3*>>
fH3;
51 std::vector<TGRSIMap<std::string, GHSym*>>
fSym;
52 std::vector<TGRSIMap<std::string, GCube*>>
fCube;
53 std::vector<TGRSIMap<std::string, TTree*>>
fTree;
54 std::vector<TGRSIMap<std::string, TObject*>>
fObject;
55 std::map<std::string, TCutG*>
fCuts;
63 void CheckSizes(
unsigned int slot,
const char* usage);
78 std::cout <<
this <<
" - " << __PRETTY_FUNCTION__ <<
", " <<
Prefix() <<
": This function should not get called, the user's code should replace it. Not creating any histograms!" << std::endl;
81 virtual ROOT::RDF::RResultPtr<std::map<std::string, TList>>
Book(ROOT::RDataFrame*)
83 std::cout <<
this <<
" - " << __PRETTY_FUNCTION__ <<
", " <<
Prefix() <<
": This function should not get called, the user's code should replace it. Returning empty list!" << std::endl;
100 virtual void EndOfSort(std::shared_ptr<std::map<std::string, TList>>&) {}
TUserSettings * UserSettings()
std::vector< TGRSIMap< std::string, TTree * > > fTree
std::map< std::string, TCutG * > fCuts
std::vector< TGRSIMap< std::string, GCube * > > fCube
std::vector< TGRSIMap< std::string, GHSym * > > fSym
std::shared_ptr< std::map< std::string, TList > > GetResultPtr() const
std::vector< TGRSIMap< std::string, TH2 * > > fH2
void Prefix(const std::string &val)
std::string Prefix() const
void CheckSizes(unsigned int slot, const char *usage)
TGRSIHelper & operator=(TGRSIHelper &&)=default
std::vector< TGRSIMap< std::string, TObject * > > fObject
TUserSettings * fUserSettings
std::map< std::string, TList > Result_t
This type is a requirement for every helper.
virtual ROOT::RDF::RResultPtr< std::map< std::string, TList > > Book(ROOT::RDataFrame *)
This method will call the Book action on the provided dataframe.
std::vector< TGRSIMap< std::string, TH1 * > > fH1
virtual void CreateHistograms(unsigned int)
Virtual helper function that the user uses to create their histograms.
virtual void EndOfSort(std::shared_ptr< std::map< std::string, TList > > &)
This method gets called at the end of Finalize()
std::vector< std::shared_ptr< std::map< std::string, TList > > > fLists
TGRSIHelper(const TGRSIHelper &)=delete
void InitTask(TTreeReader *, unsigned int)
TGRSIHelper(TGRSIHelper &&)=default
TGRSIHelper(TList *input)
static constexpr int fSizeLimit
! 1 GiB size limit for objects in ROOT
std::string GetActionName() const
std::vector< TGRSIMap< std::string, TH3 * > > fH3
TGRSIHelper & operator=(const TGRSIHelper &)=delete