BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
__w
bdsim
bdsim
include
BDSPSCellFluxScaledPerParticle3D.hh
1
/*
2
Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4
This file is part of BDSIM.
5
6
BDSIM is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published
8
by the Free Software Foundation version 3 of the License.
9
10
BDSIM is distributed in the hope that it will be useful, but
11
WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
#ifndef BDSPSCELLFLUXSCALEDPERPARTICLE3D_H
19
#define BDSPSCELLFLUXSCALEDPERPARTICLE3D_H
20
21
#include "BDSPSCellFluxScaled3D.hh"
22
23
#include "G4String.hh"
24
#include "G4Types.hh"
25
26
#include <map>
27
28
class
BDSHistBinMapper
;
29
class
G4PhysicsVector;
30
37
class
BDSPSCellFluxScaledPerParticle3D
:
public
BDSPSCellFluxScaled3D
38
{
39
public
:
40
BDSPSCellFluxScaledPerParticle3D
(
const
G4String& scorerName,
41
const
BDSHistBinMapper
* mapperIn,
42
const
G4String& pathname,
43
const
G4String& unitIn =
"percm2"
,
44
G4int ni=1,
45
G4int nj=1,
46
G4int nk=1,
47
G4int depi=2,
48
G4int depj=1,
49
G4int depk=0);
50
51
virtual
~BDSPSCellFluxScaledPerParticle3D
()
override
;
52
53
public
:
54
virtual
G4double GetConversionFactor(G4int particleID, G4double kineticEnergy)
const override
;
55
56
private
:
57
std::map<G4int, G4PhysicsVector*> conversionFactors;
58
};
59
60
#endif
BDSHistBinMapper
Mapping from axis indices to 1D index.
Definition
BDSHistBinMapper.hh:31
BDSPSCellFluxScaled3D
Primitive scorer for cell flux in a 3D mesh with a conversion factor.
Definition
BDSPSCellFluxScaled3D.hh:42
BDSPSCellFluxScaledPerParticle3D
Primitive scorer for a 3D mesh with a conversion factor.
Definition
BDSPSCellFluxScaledPerParticle3D.hh:38
Generated on Thu Nov 12 2026 21:36:59 for BDSIM by
1.9.8