BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSSDSamplerLink.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 BDSSDSAMPLERLINK_H
20#define BDSSDSAMPLERLINK_H
21
22#include "BDSHitSamplerLink.hh"
23#include "BDSSensitiveDetector.hh"
24
25#include "G4Types.hh"
26
27class BDSLinkRegistry;
28
29class G4Step;
30class G4HCofThisEvent;
31class G4TouchableHistory;
32
43{
44public:
46 explicit BDSSDSamplerLink(const G4String& name);
47 virtual ~BDSSDSamplerLink();
48
51 virtual void Initialize(G4HCofThisEvent* HCE);
52
55 virtual G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* readOutTH);
56
58 virtual G4VHit* last() const;
59
61 inline void SetLinkRegistry(BDSLinkRegistry* registryIn) {registry = registryIn;}
62
63 inline void SetMinimumEK(G4double minimumEKIn) {minimumEK = minimumEKIn;}
64 inline void SetProtonsAndIonsOnly(G4bool protonsAndIonsOnlyIn) {protonsAndIonsOnly = protonsAndIonsOnlyIn;}
65
66private:
69
72
76 G4int itsHCID;
77
80
82 G4double minimumEK;
83
86};
87
88#endif
89
Registry / map of components for tracker linkage.
Virtual class to define interface for ordered multi-sensitive detector.