GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
GNotifier.cxx
Go to the documentation of this file.
1#include "GNotifier.h"
2
3#include <iostream>
4
5#include "GValue.h"
6#include "TFile.h"
7#include "TGRSIOptions.h"
8
10
12{
13 if(fGNotifier == nullptr) {
15 }
16 return fGNotifier;
17}
18
20{
21 // Loads the GValues from the current file of the chain.
22 // Does not overwrite parameters set by hand, or by a .val file.
23 // TFile *f = gChain->GetCurrentFile();
24 // f->Get("GValue");
25
26 for(auto& callback : fCallbacks) {
27 callback();
28 }
29
30 return true;
31}
std::vector< std::function< void()> > fCallbacks
Definition GNotifier.h:41
GNotifier()=default
static GNotifier * Get()
Definition GNotifier.cxx:11
bool Notify() override
Definition GNotifier.cxx:19
static GNotifier * fGNotifier
Definition GNotifier.h:44