BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSSDEnergyDepositionGlobal.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 BDSSDENERGYDEPOSITIONGLOBAL_H
19#define BDSSDENERGYDEPOSITIONGLOBAL_H
20
21#include "BDSHitEnergyDepositionGlobal.hh"
22#include "BDSSensitiveDetector.hh"
23
24class G4HCofThisEvent;
25class G4Step;
26class G4TouchableHistory;
27class G4Track;
28
42{
43public:
44 explicit BDSSDEnergyDepositionGlobal(const G4String& name,
45 G4bool killedParticleMassAddedToElossIn = false);
47
48 virtual void Initialize(G4HCofThisEvent* HCE);
49
53 virtual G4bool ProcessHits(G4Step* aStep,
54 G4TouchableHistory* th);
55
60 virtual G4bool ProcessHitsTrack(const G4Track* track,
61 G4TouchableHistory* th);
62
64 virtual G4VHit* last() const;
65
66private:
71
72 G4bool killedParticleMassAddedToEloss;
73 G4String colName;
75 G4int HCIDe;
76
78 G4double energy;
81 G4double stepLength;
82 G4double weight;
83 G4double X,Y,Z; // Global coordinates.
84 G4double globalTime; // Time since start of event.
85 G4int pdgID;
86 G4int trackID;
87 G4int parentID;
90};
91
92#endif
93
Generates BDSHitsEnergyDepositionGlobal from step information.
G4double postStepKineticEnergy
Per hit variable.
virtual G4VHit * last() const
Provide access to last hit.
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *th)
virtual G4bool ProcessHitsTrack(const G4Track *track, G4TouchableHistory *th)
G4double preStepKineticEnergy
Per hit variable.
BDSSDEnergyDepositionGlobal & operator=(const BDSSDEnergyDepositionGlobal &)
assignment and copy constructor not implemented nor used
Virtual class to define interface for ordered multi-sensitive detector.