BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSPSCellFluxScaledPerParticle3D.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 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
29class G4PhysicsVector;
30
38{
39public:
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
53public:
54 virtual G4double GetConversionFactor(G4int particleID, G4double kineticEnergy) const override;
55
56private:
57 std::map<G4int, G4PhysicsVector*> conversionFactors;
58};
59
60#endif
Mapping from axis indices to 1D index.
Primitive scorer for cell flux in a 3D mesh with a conversion factor.
Primitive scorer for a 3D mesh with a conversion factor.