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) 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 BDSSDSAMPLERLINK_H
19#define BDSSDSAMPLERLINK_H
20
21#include "BDSHitSamplerLink.hh"
22#include "BDSSensitiveDetector.hh"
23
24#include "G4Types.hh"
25
26class BDSLinkRegistry;
27
28class G4Step;
29class G4HCofThisEvent;
30class G4TouchableHistory;
31
42{
43public:
45 explicit BDSSDSamplerLink(const G4String& name);
46 virtual ~BDSSDSamplerLink();
47
50 virtual void Initialize(G4HCofThisEvent* HCE);
51
54 virtual G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* readOutTH);
55
57 virtual G4VHit* last() const;
58
60 inline void SetLinkRegistry(BDSLinkRegistry* registryIn) {registry = registryIn;}
61
62 inline void SetMinimumEK(G4double minimumEKIn) {minimumEK = minimumEKIn;}
63 inline void SetProtonsAndIonsOnly(G4bool protonsAndIonsOnlyIn) {protonsAndIonsOnly = protonsAndIonsOnlyIn;}
64
65private:
68
71
75 G4int itsHCID;
76
79
81 G4double minimumEK;
82
85};
86
87#endif
88
Registry / map of components for tracker linkage.
Virtual class to define interface for ordered multi-sensitive detector.