GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
AlphanumericHelper.hh
Go to the documentation of this file.
1//////////////////////////////////////////////////////////
2// This class has been automatically generated on
3// Tue Oct 25 13:18:27 2016 by ROOT version 5.34/24
4// from TTree FragmentTree/FragmentTree
5// found on file: fragment07844_000.root
6//////////////////////////////////////////////////////////
7
8#ifndef AlphanumericHelper_h
9#define AlphanumericHelper_h
10
11#include "TGRSIHelper.h"
12#include "TGriffin.h"
13
14class AlphanumericHelper : public TGRSIHelper, public ROOT::Detail::RDF::RActionImpl<AlphanumericHelper> {
15
16public:
17 explicit AlphanumericHelper(TList* list)
18 : TGRSIHelper(list)
19 {
20 Prefix("Alphanumeric"); // Changes prefix of output file
21 Setup();
22 }
23 // These functions are expected to exist
24 ROOT::RDF::RResultPtr<std::map<std::string, TList>> Book(ROOT::RDataFrame* d) override
25 {
26 return d->Book<TGriffin>(std::move(*this), {"TGriffin"});
27 }
28 void CreateHistograms(unsigned int slot) override;
29 void Exec(unsigned int slot, TGriffin& grif);
30};
31
32// These are needed functions used by TDataFrameLibrary to create and destroy the instance of this helper
33extern "C" AlphanumericHelper* CreateHelper(TList* list) { return new AlphanumericHelper(list); }
34
35extern "C" void DestroyHelper(TGRSIHelper* helper) { delete helper; }
36
37#endif
void DestroyHelper(TGRSIHelper *helper)
AlphanumericHelper * CreateHelper(TList *list)
void CreateHistograms(unsigned int slot) override
Virtual helper function that the user uses to create their histograms.
void Exec(unsigned int slot, TGriffin &grif)
ROOT::RDF::RResultPtr< std::map< std::string, TList > > Book(ROOT::RDataFrame *d) override
This method will call the Book action on the provided dataframe.
AlphanumericHelper(TList *list)
std::string & Prefix()
Definition TGRSIHelper.h:40
virtual void Setup()