BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
HistogramDef.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2022.
4
5This file is part of BDSIM.
6
7BDSIM is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published
9by the Free Software Foundation version 3 of the License.
10
11BDSIM is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef HISTOGRAMDEF_H
20#define HISTOGRAMDEF_H
21
22#include <string>
23
24#include "Rtypes.h" // for classdef
25
33{
34public:
37
39 HistogramDef(const std::string& treeNameIn,
40 const std::string& histNameIn,
41 int nDimensionsIn,
42 const std::string& variable,
43 const std::string& selectionIn = "1",
44 bool perEnetry = true);
45 virtual ~HistogramDef(){;};
46
48 virtual HistogramDef* Clone() const {return new HistogramDef(*this);}
49
50 std::string treeName;
51 std::string histName;
52 int nDimensions;
53 std::string variable;
54 std::string selection;
55 bool perEntry;
56
57 ClassDef(HistogramDef, 1);
58};
59
60#endif
Common specification for a histogram.
Definition: HistogramDef.hh:33
HistogramDef()
Public constructor only for compatibility with ROOT - not intended for use.
virtual HistogramDef * Clone() const
Copy this instance. Virtual to be overridden in derived classes.
Definition: HistogramDef.hh:48