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) 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 BDSSDENERGYDEPOSITION_H
19#define BDSSDENERGYDEPOSITION_H
20
21#include "BDSHitEnergyDeposition.hh"
22#include "BDSSensitiveDetector.hh"
23
25
26class G4HCofThisEvent;
27class G4Step;
28class G4TouchableHistory;
29class G4Track;
30
41{
42public:
43 BDSSDEnergyDeposition(const G4String& name,
44 G4bool storeExtrasIn,
45 G4bool killedParticleMassAddedToElossIn = false);
46 virtual ~BDSSDEnergyDeposition();
47
51 BDSSDEnergyDeposition() = delete;
52
53 virtual void Initialize(G4HCofThisEvent* HCE);
54
58 virtual G4bool ProcessHits(G4Step* aStep,
59 G4TouchableHistory* th);
60
65 virtual G4bool ProcessHitsTrack(const G4Track* track,
66 G4TouchableHistory* th);
67
69 virtual G4VHit* last() const;
70
71private:
72 G4bool storeExtras;
74 G4String colName;
76 G4int HCIDe;
77
80};
81
82#endif
83
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.