BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSScorerHistogramDef.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 BDSSCORERHISTOGRAMDEF_H
20#define BDSSCORERHISTOGRAMDEF_H
21
22#include "BDSHistBinMapper.hh"
23#include "BDSScorerMeshInfo.hh"
24
25#include "globals.hh" // geant4 types / globals
26
37{
38public:
40 const G4String& uniqueNameIn,
41 const G4String& primitiveScorerNameIn,
42 G4double primitiveScorerUnitValueIn,
43 const BDSHistBinMapper& coordinateMapperIn);
44
45 virtual ~BDSScorerHistogramDef(){;}
46
47 G4String uniqueName;
48 G4String outputName;
52
53private:
56};
57
58#endif
Mapping from axis indices to 1D index.
Definition for a scorer histogram.
BDSScorerHistogramDef()=delete
No default constructor required.
G4double primitiveScorerUnitValue
Numerical factor to use for scorer units.
G4String primitiveScorerName
Primitive scorer name used to look up units.
G4String uniqueName
Unique name of mesh/scorer -> slash required by Geant4.
G4String outputName
Copy of unique name that's safe for output.
BDSHistBinMapper coordinateMapper
Coordinate mapper - this class owns it.
Recipe class for a scoring mesh.