GGS(GenericGEANT4Simulation)Software
2.6.0
|
Sensitive detector class for integrated hits. More...
#include <GGSIntHitSD.h>
Public Member Functions | |
GGSIntHitSD (G4String name) | |
Constructor. More... | |
~GGSIntHitSD () | |
Destructor. | |
void | Initialize (G4HCofThisEvent *hitCollection) |
Initializes the sensitive detector. More... | |
G4bool | ProcessHits (G4Step *aStep, G4TouchableHistory *ROHist) |
The hit processing method. More... | |
void | EndOfEvent (G4HCofThisEvent *hitCollection) |
Sets the hits collection, as required by specifications of mother class. More... | |
void | SetTimeBin (G4double time) |
Time bins setter. More... | |
const std::vector< G4double > & | GetTimeBins () |
Time bins getter. More... | |
void | SetPartHitsStorage (bool store) |
Turn on or off the storage (i.e. persistency) of particle hits. More... | |
bool | GetPartHitsStorage () |
Return current status of particle hits storage (i.e. persistence). More... | |
void | SetPosHitsStorage (bool store) |
Turn on or off the storage (i.e. persistence) of position hits. More... | |
bool | GetPosHitsStorage () |
Return current status of particle hits storage (i.e. persistence). More... | |
Sensitive detector class for integrated hits.
This sensitive detector takes care of summing up all energy releases inside the sensitive volume it manages, so that a single hit is produced for each single volume with non-zero energy release for each event.
Definition at line 28 of file GGSIntHitSD.h.
GGSIntHitSD::GGSIntHitSD | ( | G4String | name | ) |
Constructor.
name | The sensitive detector's name. |
Definition at line 22 of file GGSIntHitSD.cpp.
void GGSIntHitSD::EndOfEvent | ( | G4HCofThisEvent * | hitCollection | ) |
Sets the hits collection, as required by specifications of mother class.
hitCollection | The hits collection. |
Definition at line 253 of file GGSIntHitSD.cpp.
|
inline |
Return current status of particle hits storage (i.e. persistence).
Definition at line 110 of file GGSIntHitSD.h.
|
inline |
Return current status of particle hits storage (i.e. persistence).
Definition at line 137 of file GGSIntHitSD.h.
|
inline |
Time bins getter.
First element is the end time of first bin (which always starts at t=0). Last element is the ending time of last bin but one, which corresponds to start time of last bin (last bin always ends at the end of event).
Definition at line 83 of file GGSIntHitSD.h.
void GGSIntHitSD::Initialize | ( | G4HCofThisEvent * | hitCollection | ) |
Initializes the sensitive detector.
hitCollection | Unused (needed by the interface). |
Definition at line 105 of file GGSIntHitSD.cpp.
G4bool GGSIntHitSD::ProcessHits | ( | G4Step * | aStep, |
G4TouchableHistory * | ROHist | ||
) |
The hit processing method.
For each physical sensitive volume, this method sums up the total energy release during this step to the total releases of previous steps.
aStep | The current step |
ROHist | Unused (needed by the interface). |
Definition at line 115 of file GGSIntHitSD.cpp.
|
inline |
Turn on or off the storage (i.e. persistency) of particle hits.
This method tells to the SD whether to activate the storage of particle hits or not. By default, storage is not activated.
Calling this method with "false" parameter will automatically disable position hits storage, i.e., it will call SetPartsHitStorage(false).
store | if true, steps will be stored as position hits. |
Definition at line 99 of file GGSIntHitSD.h.
|
inline |
Turn on or off the storage (i.e. persistence) of position hits.
This method tells to the SD whether to activate the storage of position hits or not. By default, storage is not activated.
Calling this method with "true" parameter will automatically enable particle hits storage, i.e., it will call SetPartHitsStorage(true).
store | if true, steps will be stored as position hits. |
Definition at line 126 of file GGSIntHitSD.h.
|
inline |
Time bins setter.
This method adds a division in the timeline, effectively adding a time bin.
time | The time of first energy deposit. |
Definition at line 70 of file GGSIntHitSD.h.