BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSHitEnergyDepositionGlobal.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 BDSHITENERGYDEPOSITIONGLOBAL_H
19#define BDSHITENERGYDEPOSITIONGLOBAL_H
20
21#include "globals.hh"
22#include "G4VHit.hh"
23#include "G4THitsCollection.hh"
24
31class BDSHitEnergyDepositionGlobal: public G4VHit
32{
33public:
37 BDSHitEnergyDepositionGlobal(G4double totalEnergyIn,
38 G4double preStepKineticEnergyIn,
39 G4double postStepKineticEnergyIn,
40 G4double stepLengthIn,
41 G4double XIn,
42 G4double YIn,
43 G4double ZIn,
44 G4double TIn,
45 G4int pdgIDIn,
46 G4int trackIDIn,
47 G4int parentIDIn,
48 G4double weightIn,
49 G4int turnsTakenIn);
50
53
54 inline G4double TotalEnergyWeighted() const {return weight * totalEnergy;}
55 inline G4double KineticEnergyWeighted() const {return weight * postStepKineticEnergy;}
56
57 G4double totalEnergy;
58 G4double preStepKineticEnergy;
59
64 G4double stepLength;
65
67 G4double X;
68 G4double Y;
69 G4double Z;
70 G4double T;
72
73 G4int pdgID;
74 G4int trackID;
75 G4int parentID;
76 G4double weight;
77 G4int turnsTaken;
78
79private:
82};
83
85
86#endif
Information recorded for a step leaving a volume.
BDSHitEnergyDepositionGlobal()=delete
Private default constructor (not implemented) as the constructor.
virtual ~BDSHitEnergyDepositionGlobal()
Note this should not be inline when we use a G4Allocator.