BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
HistogramDef2D.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 HISTOGRAMDEF2D_H
19#define HISTOGRAMDEF2D_H
20#include "BinSpecification.hh"
21#include "HistogramDef1D.hh"
22
23#include <string>
24
25#include "Rtypes.h" // for classdef
26
34{
35public:
38
40 HistogramDef2D(const std::string& treeNameIn,
41 const std::string& histNameIn,
42 const BinSpecification& xBinningIn,
43 const BinSpecification& yBinningIn,
44 const std::string& variableIn,
45 const std::string& selectionIn = "1",
46 bool perEntryIn = true);
47
48 virtual ~HistogramDef2D();
49
51 virtual HistogramDef* Clone() const {return new HistogramDef2D(*this);}
52
54 virtual std::string GetBinningString() const;
55
57 virtual std::string GetHistogramString() const;
58
59 BinSpecification yBinning;
60
61 ClassDef(HistogramDef2D, 1);
62};
63
64#endif
Binning specification for a single dimension.
Specification for 1D histogram.
Specification for 2D histogram.
virtual std::string GetBinningString() const
Return n bins and ranges.
virtual HistogramDef * Clone() const
Copy this instance. Virtual to be overridden in derived classes.
HistogramDef2D()
Public constructor only for compatibility with ROOT - not intended for use.
virtual std::string GetHistogramString() const
Get the first string that defines the histogram in rebdsim for feedback.
Common specification for a histogram.