BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
HistogramDef4D.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef HISTOGRAMDEF4D_H
19#define HISTOGRAMDEF4D_H
20#include "BinSpecification.hh"
21#include "HistogramDef3D.hh"
22
23#include <string>
24
25#include "Rtypes.h" // for classdef
26
34{
35public:
38
40 HistogramDef4D(const std::string& treeNameIn,
41 const std::string& histNameIn,
42 const BinSpecification& xBinningIn,
43 const BinSpecification& yBinningIn,
44 const BinSpecification& zBinningIn,
45 const BinSpecification& eBinningIn,
46 const std::string& variableIn,
47 const std::string& eScaleIn,
48 const std::string& selectionIn = "1",
49 bool perEntryIn = true);
50
51 virtual ~HistogramDef4D();
52
54 virtual std::string GetBinningString() const;
55
57 virtual std::string GetHistogramString() const;
58
59 BinSpecification eBinning;
60 std::string eScale;
61
62 ClassDef(HistogramDef4D, 1);
63};
64
65#endif
Binning specification for a single dimension.
Specification for 3D Histogram.
Specification for 4D Histogram.
HistogramDef4D()
Public constructor only for compatibility with ROOT - not indended for use.
virtual std::string GetHistogramString() const
Get the first string that defines the histogram in rebdsim for feedback.
virtual std::string GetBinningString() const
Return n bins and ranges.