BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSSDEnergyDeposition.hh
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#ifndef BDSSDENERGYDEPOSITION_H
20#define BDSSDENERGYDEPOSITION_H
21
22#include "BDSHitEnergyDeposition.hh"
23#include "BDSSensitiveDetector.hh"
24
26
27class G4HCofThisEvent;
28class G4Step;
29class G4TouchableHistory;
30class G4Track;
31
42{
43public:
44 BDSSDEnergyDeposition(const G4String& name,
45 G4bool storeExtrasIn,
46 G4bool killedParticleMassAddedToElossIn = false);
47 virtual ~BDSSDEnergyDeposition();
48
52 BDSSDEnergyDeposition() = delete;
53
54 virtual void Initialize(G4HCofThisEvent* HCE);
55
59 virtual G4bool ProcessHits(G4Step* aStep,
60 G4TouchableHistory* th);
61
66 virtual G4bool ProcessHitsTrack(const G4Track* track,
67 G4TouchableHistory* th);
68
70 virtual G4VHit* last() const;
71
72private:
73 G4bool storeExtras;
75 G4String colName;
77 G4int HCIDe;
78
81};
82
83#endif
84
Extra G4Navigator to get coordinate transforms.
Generates BDSHitsEnergyDepositions from step information - uses curvilinear coords.
G4bool killedParticleMassAddedToEloss
In the case of a G4Track being deposited.
G4String colName
Collection name.
G4bool storeExtras
Whether to store extra information.
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *th)
BDSAuxiliaryNavigator * auxNavigator
Navigator for checking points in read out geometry.
BDSSDEnergyDeposition & operator=(const BDSSDEnergyDeposition &)=delete
assignment and copy constructor not implemented nor used
virtual G4VHit * last() const
Provide access to last hit.
virtual G4bool ProcessHitsTrack(const G4Track *track, G4TouchableHistory *th)
Virtual class to define interface for ordered multi-sensitive detector.