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