BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSScorerMeshInfo.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 BDSSCORERMESHINFO_H
19#define BDSSCORERMESHINFO_H
20
21#include "BDSBH4DTypeDefs.hh"
22#include "BDSExtent.hh"
23
24#include "G4String.hh"
25#include "G4Types.hh"
26
27namespace GMAD
28{
29 class ScorerMesh;
30}
31
42{
43public:
44 explicit BDSScorerMeshInfo(const GMAD::ScorerMesh& scorer);
45
46 virtual ~BDSScorerMeshInfo(){;}
47
48 G4String name;
49 G4String geometryType;
50 G4int nBinsX;
51 G4int nBinsY;
52 G4int nBinsZ;
53 G4int nBinsR;
54 G4int nBinsPhi;
55 G4int nBinsE;
56 G4double xLow;
57 G4double xHigh;
58 G4double yLow;
59 G4double yHigh;
60 G4double zLow;
61 G4double zHigh;
62 G4double rInner;
63 G4double rOuter;
64 G4double eLow;
65 G4double eHigh;
66 std::string eScale;
67 std::vector<double> eBinsEdges ={};
68#ifdef USE_BOOST
69 boost_histogram_axes_variant energyAxis;
70#endif
71
72 inline G4double ScoringMeshX() const {return 0.5*(xHigh-xLow);}
73 inline G4double ScoringMeshY() const {return 0.5*(yHigh-yLow);}
74 inline G4double ScoringMeshZ() const {return 0.5*(zHigh-zLow);}
75 inline G4double ScoringMeshE() const {return 0.5*(eHigh-eLow);}
76 inline BDSExtent Extent() const {return extent;}
77
78private:
79 BDSScorerMeshInfo() = delete;
80
81 BDSExtent extent;
82};
83
84#endif
Holder for +- extents in 3 dimensions.
Definition BDSExtent.hh:38
Recipe class for a scoring mesh.
ScorerMesh class for parser.
Definition scorermesh.h:39
Parser namespace for GMAD language. Combination of Geant4 and MAD.