GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
CrossTalkHelper.hh
Go to the documentation of this file.
1#ifndef CrossTalk_h
2#define CrossTalk_h
3
4// Header file for the classes stored in the TTree if any.
5#include "TGRSIHelper.h"
6#include "TGriffin.h"
7#include "TGriffinBgo.h"
8
9class CrossTalkHelper : public TGRSIHelper, public ROOT::Detail::RDF::RActionImpl<CrossTalkHelper> {
10public:
11 explicit CrossTalkHelper(TList* list)
12 : TGRSIHelper(list)
13 {
14 Prefix("Crosstalk");
15 Setup();
16 }
17 ROOT::RDF::RResultPtr<std::map<std::string, TList>> Book(ROOT::RDataFrame* d) override
18 {
19 return d->Book<TGriffin, TGriffinBgo>(std::move(*this), {"TGriffin", "TGriffinBgo"});
20 }
21 void CreateHistograms(unsigned int slot) override;
22 void Exec(unsigned int slot, TGriffin& grif, TGriffinBgo& grifBgo);
23};
24
25// These are needed functions used by TDataFrameLibrary to create and destroy the instance of this helper
26extern "C" CrossTalkHelper* CreateHelper(TList* list) { return new CrossTalkHelper(list); }
27
28extern "C" void DestroyHelper(TGRSIHelper* helper) { delete helper; }
29
30#endif
void DestroyHelper(TGRSIHelper *helper)
CrossTalkHelper * CreateHelper(TList *list)
CrossTalkHelper(TList *list)
void Exec(unsigned int slot, TGriffin &grif, TGriffinBgo &grifBgo)
ROOT::RDF::RResultPtr< std::map< std::string, TList > > Book(ROOT::RDataFrame *d) override
This method will call the Book action on the provided dataframe.
void CreateHistograms(unsigned int slot) override
Virtual helper function that the user uses to create their histograms.
std::string & Prefix()
Definition TGRSIHelper.h:40
virtual void Setup()