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) Royal Holloway,
3University of London 2001 - 2023.
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#include "BDSHitEnergyDepositionExtra.hh"
20
21#include "globals.hh" // geant4 types / globals
22#include "G4Allocator.hh"
23
24G4Allocator<BDSHitEnergyDepositionExtra> BDSAllocatorEnergyDepositionExtra;
25
27 G4double XIn,
28 G4double YIn,
29 G4double ZIn,
30 G4double xIn,
31 G4double yIn,
32 G4double zIn,
33 G4double globalTimeIn,
34 G4int partIDIn,
35 G4int trackIDIn,
36 G4int parentIDIn,
37 G4int turnsTakenIn,
38 G4double stepLengthIn,
39 G4int beamlineIndexIn,
40 G4int postStepProcessTypeIn,
41 G4int postStepProcessSubTypeIn):
42 preStepKineticEnergy(preStepKineticEnergyIn),
43 X(XIn),
44 Y(YIn),
45 Z(ZIn),
46 x(xIn),
47 y(yIn),
48 z(zIn),
49 globalTime(globalTimeIn),
50 partID(partIDIn),
51 trackID(trackIDIn),
52 parentID(parentIDIn),
53 turnsTaken(turnsTakenIn),
54 stepLength(stepLengthIn),
55 beamlineIndex(beamlineIndexIn),
56 postStepProcessType(postStepProcessTypeIn),
57 postStepProcessSubType(postStepProcessSubTypeIn)
58{;}
59
61{;}
~BDSHitEnergyDepositionExtra()
Note this should not be inline when we use a G4Allocator.
BDSHitEnergyDepositionExtra()=delete
Private default constructor.