BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSSDSampler.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 BDSSDSAMPLER_H
20#define BDSSDSAMPLER_H
21
22#include "BDSHitSampler.hh"
23#include "BDSSensitiveDetector.hh"
24
25#include "globals.hh" // geant4 types / globals
26
29
30class G4Step;
31class G4HCofThisEvent;
32class G4TouchableHistory;
33
44{
45public:
47 explicit BDSSDSampler(const G4String& name);
48 virtual ~BDSSDSampler();
49
52 virtual void Initialize(G4HCofThisEvent* HCE);
53
56 virtual G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* readOutTH);
57
59 virtual G4VHit* last() const;
60
61private:
64
67
72
75
78};
79
80#endif
81
A class that holds global options and constants.
The sensitive detector class that provides sensitivity to BDSSampler instances.
Definition: BDSSDSampler.hh:44
BDSGlobalConstants * globals
Cached pointer to global constants as accessed many times.
Definition: BDSSDSampler.hh:77
virtual void Initialize(G4HCofThisEvent *HCE)
Definition: BDSSDSampler.cc:57
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *readOutTH)
Definition: BDSSDSampler.cc:71
virtual G4VHit * last() const
Provide access to last hit.
BDSHitsCollectionSampler * SamplerCollection
The hits collection for this sensitive detector class that's owned by each instance.
Definition: BDSSDSampler.hh:63
BDSSamplerRegistry * registry
Cached pointer to registry as accessed many times.
Definition: BDSSDSampler.hh:74
G4String itsCollectionName
The name of the hits collection that's created and registered.
Definition: BDSSDSampler.hh:66
Associated information for the placement of a sampler.
Virtual class to define interface for ordered multi-sensitive detector.