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;
144 std::vector<G4double> _timeBins;
146 std::string _intHitClass, _partHitClass, _posHitClass;
Sensitive detector class 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 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).
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.
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROHist)
The hit processing method.
The integrated hit SD messenger class.