1 #ifndef MSensitiveDetector_H 7 #define MSensitiveDetector_H 1 12 #include "G4VSensitiveDetector.hh" 14 #include "G4HCofThisEvent.hh" 15 #include "G4TouchableHistory.hh" 66 virtual void Initialize(G4HCofThisEvent*);
67 virtual G4bool ProcessHits(G4Step*, G4TouchableHistory*);
68 virtual void EndOfEvent(G4HCofThisEvent*);
97 MHit* find_existing_hit(vector<identifier>);
SDId SDID
SDId used for identification.
int id
Sensitive Detector identifier. This is also the bank ID.
double ProdThreshold
Production Threshold in the detector.
double TimeWindow
If two steps happens withing the same TimeWindow, they belong to the same Hit.
map< string, MPHB_Factory > * MProcessHit_Map
Hit Process Routine Factory Map.
G4THitsCollection< MHit > MHitCollection
map< string, detector > * Hall_Map
detector map
vector< string > IDnames
Identifier names as they should be in identifier.
gemc_opts gemcOpt
gemc option class
double minEnergy
Minimum energy of the hit to be recorded in the output stream.
MHitCollection * GetMHitCollection()
returns hit collection
double MaxStep
Maximum Acceptable Step in the detector.
G4String HCname
Sensitive Detector/Hit Collection Name.
string GetDetectorHitType(string name)
returns detector hitType
set< vector< identifier > > Id_Set
Identifier Set. Used to determine if a step is inside a new/existing element.
vector< identifier > GetDetectorIdentifier(string name)
returns detector identity
SDId get_SDId(string, gemc_opts)
Connects to DB and retrieve SDId.