13 #include "G4VSensitiveDetector.hh"
16 class G4HCofThisEvent;
44 void Initialize(G4HCofThisEvent *hitCollection);
55 G4bool
ProcessHits(G4Step *aStep, G4TouchableHistory *ROHist);
61 void EndOfEvent(G4HCofThisEvent *hitCollection);
71 _timeBins.push_back(time);
72 std::sort(_timeBins.begin(), _timeBins.end());
83 const std::vector<G4double> &
GetTimeBins() {
return _timeBins; }
98 _storePartHits = store;
132 _storePosHits = store;
170 std::vector<G4double> _timeBins;
172 std::string _intHitClass, _partHitClass, _posHitClass;
175 std::unique_ptr<GGSTouchableIDComputer> _idComputer;
176 float _intHitThreshold, _partHitThreshold, _posHitThreshold;
Sensitive detector class for integrated hits.
void SetIntHitThreshold(float minEnergy)
Sets the minimum energy for integrated hits.
void SetTimeBin(G4double time)
Time bins setter.
void EndOfEvent(G4HCofThisEvent *hitCollection)
Sets the hits collection, as required by specifications of mother class.
void SetPartHitThreshold(float minEnergy)
Sets the minimum energy for particle hits.
void SetPosHitsStorage(bool store)
Turn on or off the storage (i.e. persistence) of position hits.
bool GetPosHitsStorage()
Return current status of particle hits storage (i.e. persistence).
Definition of GGS Particle Hit.
const std::vector< G4double > & GetTimeBins()
Time bins getter.
GGSIntHitSD(G4String name)
Constructor.
void Initialize(G4HCofThisEvent *hitCollection)
Initializes the sensitive detector.
void SetPartHitsStorage(bool store)
Turn on or off the storage (i.e. persistency) of particle hits.
bool GetPartHitsStorage()
Return current status of particle hits storage (i.e. persistence).
~GGSIntHitSD()
Destructor.
G4THitsCollection< GGSIntHit > GGSIntHitsCollection
Alias for G4 template hits collection for GGSIntHit.
void SetPosHitThreshold(float minEnergy)
Sets the minimum energy for position hits.
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROHist)
The hit processing method.
The integrated hit SD messenger class.
Interface for volume ID calculator classes.
void SetTouchableIDComputer(const std::string &tidcClassName)
Sets the touchable ID computer class.