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());
100 _storePartHits = store;
101 if (store ==
false) {
111 return _storePartHits;
127 _storePosHits = store;
138 return _storePosHits;
148 _intHitThreshold = minEnergy;
158 _partHitThreshold = minEnergy;
169 _posHitThreshold = minEnergy;
176 std::vector<G4double> _timeBins;
178 std::string _intHitClass, _partHitClass, _posHitClass;
182 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.