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