GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
GSnapshot.h
Go to the documentation of this file.
1#ifndef GSNAPSHOT_H
2#define GSNAPSHOT_H
3
4#include <string>
5
6#include "TObject.h"
7
8class TCanvas;
9
10class GSnapshot {
11public:
12 static GSnapshot& Get();
13
14 explicit GSnapshot(const char* snapshot_dir = nullptr);
15 GSnapshot(const GSnapshot&) = default;
16 GSnapshot(GSnapshot&&) noexcept = default;
17 GSnapshot& operator=(const GSnapshot&) = default;
18 GSnapshot& operator=(GSnapshot&&) noexcept = default;
19 ~GSnapshot() = default;
20
21 void Snapshot(TCanvas* can = nullptr);
22
23private:
24 std::string fSnapshotDir;
26};
27
28extern GSnapshot gSnapshot;
29
30#endif
GSnapshot gSnapshot
static GSnapshot & Get()
Definition GSnapshot.cxx:10
GSnapshot(const GSnapshot &)=default
bool fCanWriteHere
Definition GSnapshot.h:25
GSnapshot(const char *snapshot_dir=nullptr)
Definition GSnapshot.cxx:16
std::string fSnapshotDir
Definition GSnapshot.h:24
GSnapshot(GSnapshot &&) noexcept=default
void Snapshot(TCanvas *can=nullptr)
Definition GSnapshot.cxx:43