Sensitive detector. More...
#include <Doxymodules_parameterisations.h>
Public Member Functions | |
Par04SensitiveDetector (G4String aName) | |
Par04SensitiveDetector (G4String aName, G4ThreeVector aNbOfCells, G4ThreeVector aNSizeOfCells) | |
virtual | ~Par04SensitiveDetector () |
virtual void | Initialize (G4HCofThisEvent *HCE) final |
Create hit collection. | |
virtual G4bool | ProcessHits (G4Step *aStep, G4TouchableHistory *aROhist) final |
Process energy deposit from the full simulation. | |
virtual G4bool | ProcessHits (const G4FastHit *aHit, const G4FastTrack *aTrack, G4TouchableHistory *aROhist) final |
Process energy deposit from the fast simulation. | |
Par04Hit * | RetrieveAndSetupHit (G4ThreeVector aPosition) |
Process energy deposit - common part for full and fast simulation It is invoked from ProcessHits() methods, and sets basic hit properties (position, etc.), common for hit from fast and full simulation. | |
virtual void | EndOfEvent (G4HCofThisEvent *aHC) final |
Rewrite hits map to a vector. | |
Public Member Functions inherited from G4VFastSimSensitiveDetector | |
G4bool | Hit (const G4FastHit *aHit, const G4FastTrack *aTrack, G4TouchableHandle *aTouchable) |
Private Attributes | |
Par04HitsCollection * | fHitsCollection = nullptr |
Collection of hits. | |
std::unordered_map< G4int, std::unique_ptr< Par04Hit > > | fHitsMap |
Map of hits to be used in runtime. | |
G4int | fHitCollectionID = -1 |
ID of collection of hits. | |
G4ThreeVector | fMeshNbOfCells = { 10, 10, 10 } |
Number of mesh readout cells in cylindrical coordinates. | |
G4ThreeVector | fMeshSizeOfCells = { 1 * m, 2 * CLHEP::pi / 10., 1 * m } |
Size of mesh readout cells in cylindrical coordinates. | |
G4ThreeVector | fEntrancePosition = { -1, -1, -1 } |
Retrieved once per event: position of entering particle. | |
G4ThreeVector | fEntranceDirection = { -1, -1, -1 } |
Retrieved once per event: direction of entering particle. | |
Sensitive detector.
Describes how to store the energy deposited within the detector. It derives from two classes: G4VSensitiveDetector and G4VFastSimSensitiveDetector. Addition of G4VFastSimSensitiveDetector is necessary in order to handle the energy deposits from the fast simulation.
Two ProcessHits() methods are introduced to handle energy deposited from full (detailed) simulation, and from fast simulation. The common part is handled by RetrieveAdnSetupHit() method.
Definition at line 92 of file Doxymodules_parameterisations.h.
Par04SensitiveDetector::Par04SensitiveDetector | ( | G4String | aName | ) |
Definition at line 52 of file Par04SensitiveDetector.cc.
Par04SensitiveDetector::Par04SensitiveDetector | ( | G4String | aName, |
G4ThreeVector | aNbOfCells, | ||
G4ThreeVector | aNSizeOfCells | ||
) |
Definition at line 59 of file Par04SensitiveDetector.cc.
|
virtualdefault |
|
finalvirtual |
Create hit collection.
Definition at line 74 of file Par04SensitiveDetector.cc.
|
finalvirtual |
Process energy deposit from the full simulation.
Definition at line 90 of file Par04SensitiveDetector.cc.
|
finalvirtual |
Process energy deposit from the fast simulation.
Implements G4VFastSimSensitiveDetector.
Definition at line 120 of file Par04SensitiveDetector.cc.
Par04Hit * Par04SensitiveDetector::RetrieveAndSetupHit | ( | G4ThreeVector | aPosition | ) |
Process energy deposit - common part for full and fast simulation It is invoked from ProcessHits() methods, and sets basic hit properties (position, etc.), common for hit from fast and full simulation.
Definition at line 152 of file Par04SensitiveDetector.cc.
|
finalvirtual |
Rewrite hits map to a vector.
Definition at line 206 of file Par04SensitiveDetector.cc.
|
private |
Collection of hits.
Definition at line 82 of file Par04SensitiveDetector.hh.
|
private |
Map of hits to be used in runtime.
Definition at line 84 of file Par04SensitiveDetector.hh.
|
private |
ID of collection of hits.
Definition at line 86 of file Par04SensitiveDetector.hh.
|
private |
Number of mesh readout cells in cylindrical coordinates.
Definition at line 88 of file Par04SensitiveDetector.hh.
|
private |
Size of mesh readout cells in cylindrical coordinates.
Definition at line 90 of file Par04SensitiveDetector.hh.
|
private |
Retrieved once per event: position of entering particle.
Definition at line 92 of file Par04SensitiveDetector.hh.
|
private |
Retrieved once per event: direction of entering particle.
Definition at line 94 of file Par04SensitiveDetector.hh.