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
9
GNotifier
*
GNotifier::fGNotifier
=
nullptr
;
10
11
GNotifier
*
GNotifier::Get
()
12
{
13
if
(
fGNotifier
==
nullptr
) {
14
fGNotifier
=
new
GNotifier
;
15
}
16
return
fGNotifier
;
17
}
18
19
bool
GNotifier::Notify
()
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
}
GNotifier.h
GValue.h
TGRSIOptions.h
GNotifier
Definition
GNotifier.h:12
GNotifier::fCallbacks
std::vector< std::function< void()> > fCallbacks
Definition
GNotifier.h:41
GNotifier::GNotifier
GNotifier()=default
GNotifier::Get
static GNotifier * Get()
Definition
GNotifier.cxx:11
GNotifier::Notify
bool Notify() override
Definition
GNotifier.cxx:19
GNotifier::fGNotifier
static GNotifier * fGNotifier
Definition
GNotifier.h:44
libraries
GROOT
GNotifier.cxx
GRSISort ("v4.0.0.5") Reference Guide Generated on Mon Feb 3 2025 16:38:05.