BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSSDVolumeExit.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 BDSSDVOLUMEEXIT_H
19#define BDSSDVOLUMEEXIT_H
20
21#include "BDSHitEnergyDepositionGlobal.hh"
22
23#include "globals.hh"
24#include "G4StepStatus.hh"
25#include "G4VSensitiveDetector.hh"
26
27
29
30class G4HCofThisEvent;
31class G4Step;
32class G4TouchableHistory;
33
41class BDSSDVolumeExit: public G4VSensitiveDetector
42{
43public:
44 BDSSDVolumeExit(G4String name,
45 G4bool worldExit = true);
46
47 virtual ~BDSSDVolumeExit(){;}
48
49 virtual void Initialize(G4HCofThisEvent* HCE);
50 virtual G4bool ProcessHits(G4Step* step,
51 G4TouchableHistory* th);
52
53private:
57 BDSSDVolumeExit() = delete;
58
59 G4String colName;
60 G4int HCIDve;
61 G4StepStatus statusToMatch;
63};
64
65#endif
66
Extra G4Navigator to get coordinate transforms.
Generates BDSHitEnergyDepositionGlobals if a particle is leaving a volume.
G4int HCIDve
Hits collection ID for volume exit.
G4String colName
Name prepared for collection.
BDSSDVolumeExit & operator=(const BDSSDVolumeExit &)
assignment and copy constructor not implemented nor used
G4StepStatus statusToMatch
World or volume exit status cache.
BDSHitsCollectionEnergyDepositionGlobal * hits
Hits collection.