GGS(GenericGEANT4Simulation)Software
2.7.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... | |
void | SetTouchableIDComputer (const std::string &tidcClassName) |
Sets the touchable ID computer class. 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... | |
void | SetIntHitThreshold (float minEnergy) |
Sets the minimum energy for integrated hits. More... | |
void | SetPartHitThreshold (float minEnergy) |
Sets the minimum energy for particle hits. More... | |
void | SetPosHitThreshold (float minEnergy) |
Sets the minimum energy for position hits. 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 29 of file GGSIntHitSD.h.
GGSIntHitSD::GGSIntHitSD | ( | G4String | name | ) |
Constructor.
name | The sensitive detector's name. |
Definition at line 23 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 249 of file GGSIntHitSD.cpp.
|
inline |
Return current status of particle hits storage (i.e. persistence).
Definition at line 117 of file GGSIntHitSD.h.
|
inline |
Return current status of particle hits storage (i.e. persistence).
Definition at line 142 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 109 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 117 of file GGSIntHitSD.cpp.
|
inline |
Sets the minimum energy for integrated hits.
Hits below this threshold will be removed from the hits array.
minEnergy | The minimum energy for integrated hits. |
Definition at line 150 of file GGSIntHitSD.h.
|
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 97 of file GGSIntHitSD.h.
|
inline |
Sets the minimum energy for particle hits.
Hits below this threshold will be removed from the hits array.
minEnergy | The minimum energy for particle hits. |
Definition at line 158 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 131 of file GGSIntHitSD.h.
|
inline |
Sets the minimum energy for position hits.
Hits below this threshold will be removed from the hits array.
minEnergy | The minimum energy for position hits. |
Definition at line 166 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.
void GGSIntHitSD::SetTouchableIDComputer | ( | const std::string & | tidcClassName | ) |
Sets the touchable ID computer class.
This method sets the touchable ID computer class that will be used by the sensitive detector.
tidcClassName | the name of the touchable ID computer class. |
Definition at line 102 of file GGSIntHitSD.cpp.