26#ifndef PAR04SENSITIVEDETECTOR_HH
27#define PAR04SENSITIVEDETECTOR_HH
29#include <CLHEP/Units/SystemOfUnits.h>
32#include "G4SystemOfUnits.hh"
33#include "G4ThreeVector.hh"
34#include "G4VFastSimSensitiveDetector.hh"
35#include "G4VSensitiveDetector.hh"
37#include <unordered_map>
84 std::unordered_map<G4int, std::unique_ptr<Par04Hit>>
fHitsMap;
G4THitsCollection< Par04Hit > Par04HitsCollection
Hit class to store energy deposited in the sensitive detector.
G4ThreeVector fMeshSizeOfCells
Size of mesh readout cells in cylindrical coordinates.
G4ThreeVector fEntrancePosition
Retrieved once per event: position of entering particle.
std::unordered_map< G4int, std::unique_ptr< Par04Hit > > fHitsMap
Map of hits to be used in runtime.
G4ThreeVector fMeshNbOfCells
Number of mesh readout cells in cylindrical coordinates.
Par04Hit * RetrieveAndSetupHit(G4ThreeVector aPosition)
Process energy deposit - common part for full and fast simulation It is invoked from ProcessHits() me...
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *aROhist) final
Process energy deposit from the full simulation.
virtual ~Par04SensitiveDetector()
G4int fHitCollectionID
ID of collection of hits.
virtual void EndOfEvent(G4HCofThisEvent *aHC) final
Rewrite hits map to a vector.
G4ThreeVector fEntranceDirection
Retrieved once per event: direction of entering particle.
Par04HitsCollection * fHitsCollection
Collection of hits.