BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSHitEnergyDepositionExtra.cc
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#include "BDSHitEnergyDepositionExtra.hh"
19
20#include "globals.hh" // geant4 types / globals
21#include "G4Allocator.hh"
22
23G4Allocator<BDSHitEnergyDepositionExtra> BDSAllocatorEnergyDepositionExtra;
24
26 G4double XIn,
27 G4double YIn,
28 G4double ZIn,
29 G4double xIn,
30 G4double yIn,
31 G4double zIn,
32 G4double globalTimeIn,
33 G4int partIDIn,
34 G4int trackIDIn,
35 G4int parentIDIn,
36 G4int turnsTakenIn,
37 G4double stepLengthIn,
38 G4int beamlineIndexIn,
39 G4int postStepProcessTypeIn,
40 G4int postStepProcessSubTypeIn):
41 preStepKineticEnergy(preStepKineticEnergyIn),
42 X(XIn),
43 Y(YIn),
44 Z(ZIn),
45 x(xIn),
46 y(yIn),
47 z(zIn),
48 globalTime(globalTimeIn),
49 partID(partIDIn),
50 trackID(trackIDIn),
51 parentID(parentIDIn),
52 turnsTaken(turnsTakenIn),
53 stepLength(stepLengthIn),
54 beamlineIndex(beamlineIndexIn),
55 postStepProcessType(postStepProcessTypeIn),
56 postStepProcessSubType(postStepProcessSubTypeIn)
57{;}
58
~BDSHitEnergyDepositionExtra()
Note this should not be inline when we use a G4Allocator.
BDSHitEnergyDepositionExtra()=delete
Private default constructor.