Sensitive detector. More...
#include <Doxymodules_parameterisations.h>
Public Member Functions | |
Par03SensitiveDetector (G4String aName) | |
Par03SensitiveDetector (G4String aName, G4int aNumLayers, G4int aNumPhi, G4int aNumRho) | |
virtual | ~Par03SensitiveDetector () |
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. | |
Par03Hit * | RetrieveAndSetupHit (G4TouchableHistory *aTouchable) |
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. | |
Public Member Functions inherited from G4VFastSimSensitiveDetector | |
G4bool | Hit (const G4FastHit *aHit, const G4FastTrack *aTrack, G4TouchableHandle *aTouchable) |
Private Attributes | |
Par03HitsCollection * | fHitsCollection = nullptr |
Collection of hits. | |
G4int | fHitCollectionID = -1 |
ID of collection of hits. | |
G4int | fCellNoZ = 10 |
Number of readout cells along z axis. | |
G4int | fCellNoRho = 10 |
Number of readout cells along radius of cylinder. | |
G4int | fCellNoPhi = 10 |
Number of readout cells along azimuthal angle. | |
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 68 of file Doxymodules_parameterisations.h.
Par03SensitiveDetector::Par03SensitiveDetector | ( | G4String | aName | ) |
Definition at line 35 of file Par03SensitiveDetector.cc.
Par03SensitiveDetector::Par03SensitiveDetector | ( | G4String | aName, |
G4int | aNumLayers, | ||
G4int | aNumPhi, | ||
G4int | aNumRho | ||
) |
Definition at line 42 of file Par03SensitiveDetector.cc.
|
virtualdefault |
|
finalvirtual |
Create hit collection.
Definition at line 58 of file Par03SensitiveDetector.cc.
|
finalvirtual |
Process energy deposit from the full simulation.
Definition at line 81 of file Par03SensitiveDetector.cc.
|
finalvirtual |
Process energy deposit from the fast simulation.
Implements G4VFastSimSensitiveDetector.
Definition at line 111 of file Par03SensitiveDetector.cc.
Par03Hit * Par03SensitiveDetector::RetrieveAndSetupHit | ( | G4TouchableHistory * | aTouchable | ) |
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 141 of file Par03SensitiveDetector.cc.
|
private |
Collection of hits.
Definition at line 74 of file Par03SensitiveDetector.hh.
|
private |
ID of collection of hits.
Definition at line 76 of file Par03SensitiveDetector.hh.
|
private |
Number of readout cells along z axis.
Definition at line 78 of file Par03SensitiveDetector.hh.
|
private |
Number of readout cells along radius of cylinder.
Definition at line 80 of file Par03SensitiveDetector.hh.
|
private |
Number of readout cells along azimuthal angle.
Definition at line 82 of file Par03SensitiveDetector.hh.