|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
The sensitive detector class that provides sensitivity to BDSSamplerLink instances. More...
#include <BDSSDSamplerLink.hh>


Public Member Functions | |
| BDSSDSamplerLink (const G4String &name) | |
| Construct a sampler with name and type (plane/cylinder). | |
| virtual void | Initialize (G4HCofThisEvent *HCE) |
| virtual G4bool | ProcessHits (G4Step *aStep, G4TouchableHistory *readOutTH) |
| virtual G4VHit * | last () const |
| Provide access to last hit. | |
| void | SetLinkRegistry (BDSLinkRegistry *registryIn) |
| Update cached pointer of link registry. | |
| void | SetMinimumEK (G4double minimumEKIn) |
| void | SetProtonsAndIonsOnly (G4bool protonsAndIonsOnlyIn) |
Public Member Functions inherited from BDSSensitiveDetector | |
| BDSSensitiveDetector (const G4String &name) | |
| virtual G4bool | ProcessHitsOrdered (G4Step *step, G4TouchableHistory *rOHist, const std::vector< G4VHit * > &hits) |
| G4bool | HitOrdered (G4Step *step, const std::vector< G4VHit * > &hits) |
Private Attributes | |
| BDSHitsCollectionSamplerLink * | samplerLinkCollection |
| The hits collection for this sensitive detector class that's owned by each instance. | |
| G4String | itsCollectionName |
| The name of the hits collection that's created and registered. | |
| G4int | itsHCID |
| BDSLinkRegistry * | registry |
| Cached pointer to registry as accessed many times. | |
| G4double | minimumEK |
| Minimum kinetic energy to generate a hit for. | |
| G4bool | protonsAndIonsOnly |
| Whether to return protons and ions only. | |
The sensitive detector class that provides sensitivity to BDSSamplerLink instances.
It creates BDSHitSamplerLink instances for each particle impact on a sampler this SD is attached to.
Definition at line 41 of file BDSSDSamplerLink.hh.
|
explicit |
Construct a sampler with name and type (plane/cylinder).
Definition at line 40 of file BDSSDSamplerLink.cc.
|
virtual |
Definition at line 52 of file BDSSDSamplerLink.cc.
|
virtual |
Overridden from G4VSensitiveDetector. Creates hits collection and registers it with the hits collection of this event (HCE).
Definition at line 55 of file BDSSDSamplerLink.cc.
References itsCollectionName, itsHCID, and samplerLinkCollection.
|
virtual |
Provide access to last hit.
Implements BDSSensitiveDetector.
Definition at line 167 of file BDSSDSamplerLink.cc.
References samplerLinkCollection.
|
virtual |
Overridden from G4VSensitiveDetector. Creates hit instances and appends them to the hits collection.
Definition at line 66 of file BDSSDSamplerLink.cc.
References BDS::IsIon(), minimumEK, protonsAndIonsOnly, registry, and samplerLinkCollection.

|
inline |
Update cached pointer of link registry.
Definition at line 60 of file BDSSDSamplerLink.hh.
References registry.
Referenced by BDSSDManager::SetLinkRegistry().

|
inline |
Definition at line 62 of file BDSSDSamplerLink.hh.
|
inline |
Definition at line 63 of file BDSSDSamplerLink.hh.
|
private |
The name of the hits collection that's created and registered.
Definition at line 70 of file BDSSDSamplerLink.hh.
Referenced by Initialize().
|
private |
Hits collection ID - an integer look up for the hits collection provided by G4SDManager (a registry) that is given to the G4HCofThisEvent (Hits collection of the event).
Definition at line 75 of file BDSSDSamplerLink.hh.
Referenced by Initialize().
|
private |
Minimum kinetic energy to generate a hit for.
Definition at line 81 of file BDSSDSamplerLink.hh.
Referenced by ProcessHits().
|
private |
Whether to return protons and ions only.
Definition at line 84 of file BDSSDSamplerLink.hh.
Referenced by ProcessHits().
|
private |
Cached pointer to registry as accessed many times.
Definition at line 78 of file BDSSDSamplerLink.hh.
Referenced by ProcessHits(), and SetLinkRegistry().
|
private |
The hits collection for this sensitive detector class that's owned by each instance.
Definition at line 67 of file BDSSDSamplerLink.hh.
Referenced by Initialize(), last(), and ProcessHits().