BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
The sensitive detector class that provides sensitivity to BDSSamplerSphere instances. More...
#include <BDSSDSamplerSphere.hh>
Public Member Functions | |
BDSSDSamplerSphere (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. | |
![]() | |
BDSSensitiveDetector (const G4String &name) | |
virtual G4VHit * | last () const =0 |
virtual G4bool | ProcessHitsOrdered (G4Step *step, G4TouchableHistory *rOHist, const std::vector< G4VHit * > &hits) |
G4bool | HitOrdered (G4Step *step, const std::vector< G4VHit * > &hits) |
Private Attributes | |
BDSHitsCollectionSamplerSphere * | samplerHitsCollection |
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. | |
int | itsHCID |
BDSSamplerRegistry * | registry |
Cached pointer to registry as accessed many times. | |
BDSGlobalConstants * | globals |
Cached pointer to global constants as accessed many times. | |
The sensitive detector class that provides sensitivity to BDSSamplerSphere instances.
It creates BDSHitSamplerSphere instances for each particle impact on a sampler this SD is attached to.
Written and edited by many authors over time.
Definition at line 43 of file BDSSDSamplerSphere.hh.
|
explicit |
Construct a sampler with name and type (plane/cylinder).
Definition at line 43 of file BDSSDSamplerSphere.cc.
|
virtual |
Definition at line 54 of file BDSSDSamplerSphere.cc.
|
virtual |
Overriden from G4VSensitiveDetector. Creates hits collection and registers it with the hits collection of this event (HCE).
Definition at line 57 of file BDSSDSamplerSphere.cc.
References globals, BDSGlobalConstants::Instance(), BDSSamplerRegistry::Instance(), itsCollectionName, itsHCID, registry, and samplerHitsCollection.
|
virtual |
Provide access to last hit.
Implements BDSSensitiveDetector.
Definition at line 166 of file BDSSDSamplerSphere.cc.
References samplerHitsCollection.
|
virtual |
Overriden from G4VSensitiveDetector. Creates hit instances and appends them to the hits collection.
Definition at line 71 of file BDSSDSamplerSphere.cc.
References BDSSamplerPlacementRecord::BeamlineIndex(), BDSSamplerRegistry::GetInfo(), BDSSamplerRegistry::GetTransformInverse(), globals, BDS::IsFinite(), registry, BDS::Rigidity(), samplerHitsCollection, and BDSSamplerPlacementRecord::SPosition().
|
private |
Cached pointer to global constants as accessed many times.
Definition at line 77 of file BDSSDSamplerSphere.hh.
Referenced by Initialize(), and ProcessHits().
|
private |
The name of the hits collection that's created and registered.
Definition at line 66 of file BDSSDSamplerSphere.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 71 of file BDSSDSamplerSphere.hh.
Referenced by Initialize().
|
private |
Cached pointer to registry as accessed many times.
Definition at line 74 of file BDSSDSamplerSphere.hh.
Referenced by Initialize(), and ProcessHits().
|
private |
The hits collection for this sensitive detector class that's owned by each instance.
Definition at line 63 of file BDSSDSamplerSphere.hh.
Referenced by Initialize(), last(), and ProcessHits().