#include <SensitiveDetector.hh>
Definition at line 43 of file SensitiveDetector.hh.
◆ SensitiveDetector()
Definition at line 39 of file SensitiveDetector.cc.
void insert(G4String str)
AnalysisManager * analysis
SensitiveDetectorHitsCollection * fHitsCollection
G4VSensitiveDetector(G4String name)
G4CollectionNameVector collectionName
◆ ~SensitiveDetector()
SensitiveDetector::~SensitiveDetector |
( |
| ) |
|
|
virtual |
◆ EndOfEvent()
Reimplemented from G4VSensitiveDetector.
Definition at line 87 of file SensitiveDetector.cc.
96 for (
G4int i=0;i<NbHits;i++)
99 totalEdepInOneEvent = totalEdepInOneEvent +
edep;
103 if (totalEdepInOneEvent!=0)
analysis-> StoreEnergyDeposition(totalEdepInOneEvent/
keV);
AnalysisManager * analysis
SensitiveDetectorHitsCollection * fHitsCollection
◆ Initialize()
Reimplemented from G4VSensitiveDetector.
Definition at line 51 of file SensitiveDetector.cc.
G4String SensitiveDetectorName
G4int GetCollectionID(G4String colName)
G4THitsCollection< SensitiveDetectorHit > SensitiveDetectorHitsCollection
SensitiveDetectorHitsCollection * fHitsCollection
static G4SDManager * GetSDMpointer()
G4CollectionNameVector collectionName
◆ ProcessHits()
Implements G4VSensitiveDetector.
Definition at line 65 of file SensitiveDetector.cc.
71 if (edep==0.)
return false;
73 G4String volumeName = aStep -> GetPreStepPoint() -> GetPhysicalVolume()->
GetName();
75 if(volumeName !=
"SV_phys1")
80 newHit -> SetEdep(edep);
SensitiveDetectorHitsCollection * fHitsCollection
◆ analysis
◆ fHitsCollection
The documentation for this class was generated from the following files: