R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandVisualizer.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3
* Copyright (C) 2019-2025 Members of R3B Collaboration *
4
* *
5
* This software is distributed under the terms of the *
6
* GNU General Public Licence (GPL) version 3, *
7
* copied verbatim in the file "LICENSE". *
8
* *
9
* In applying this license GSI does not waive the privileges and immunities *
10
* granted to it by virtue of its status as an Intergovernmental Organization *
11
* or submit itself to any jurisdiction. *
12
******************************************************************************/
13
14
#ifndef R3BNEULANDVISUALIZER_H
15
#define R3BNEULANDVISUALIZER_H 1
16
17
#include "TCanvas.h"
18
#include "TFile.h"
19
#include "TH3D.h"
20
#include "TTree.h"
21
#include <memory>
22
23
class
R3BNeulandVisualizer
24
{
25
public
:
26
R3BNeulandVisualizer
(
const
TString& input_file,
const
TString& what);
27
virtual
~R3BNeulandVisualizer
() =
default
;
// to avoid a ROOT-based (?) warning
28
29
inline
void
ShowEvent
(
const
UInt_t i)
30
{
31
fIndex = i;
32
Visualize
();
33
}
34
35
inline
void
ShowNext
()
36
{
37
fIndex++;
38
Visualize
();
39
}
40
41
protected
:
42
void
Visualize
();
43
44
private
:
45
std::shared_ptr<TFile> fFile;
46
TTree* fTree;
// non-owning
47
TH3D* fh3;
// non-owning
48
std::shared_ptr<TCanvas> fCanvas;
49
UInt_t fIndex;
50
51
ClassDef(
R3BNeulandVisualizer
, 0);
52
};
53
54
#endif
// R3BNEULANDVISUALIZER_H
R3BNeulandVisualizer
Definition
R3BNeulandVisualizer.h:24
R3BNeulandVisualizer::R3BNeulandVisualizer
R3BNeulandVisualizer(const TString &input_file, const TString &what)
Definition
R3BNeulandVisualizer.cxx:32
R3BNeulandVisualizer::ShowNext
void ShowNext()
Definition
R3BNeulandVisualizer.h:35
R3BNeulandVisualizer::~R3BNeulandVisualizer
virtual ~R3BNeulandVisualizer()=default
R3BNeulandVisualizer::ShowEvent
void ShowEvent(const UInt_t i)
Definition
R3BNeulandVisualizer.h:29
R3BNeulandVisualizer::Visualize
void Visualize()
Definition
R3BNeulandVisualizer.cxx:51
neuland
shared
R3BNeulandVisualizer.h
Generated by
1.13.2