#include <EnergyLossRecorder.h>
Definition at line 39 of file EnergyLossRecorder.h.
◆ EnergyLossRecorder()
EnergyLossRecorder::EnergyLossRecorder |
( |
const Config & |
config | ) |
|
◆ BeginOfEventAction()
void EnergyLossRecorder::BeginOfEventAction |
( |
const G4Event * |
| ) |
|
|
overridevirtual |
◆ BeginOfRunAction()
void EnergyLossRecorder::BeginOfRunAction |
( |
const G4Run * |
| ) |
|
|
overridevirtual |
◆ EndOfEventAction()
void EnergyLossRecorder::EndOfEventAction |
( |
const G4Event * |
| ) |
|
|
overridevirtual |
◆ EndOfRunAction()
void EnergyLossRecorder::EndOfRunAction |
( |
const G4Run * |
| ) |
|
|
overridevirtual |
◆ UserSteppingAction()
void EnergyLossRecorder::UserSteppingAction |
( |
const G4Step * |
aStep | ) |
|
|
overridevirtual |
Definition at line 54 of file EnergyLossRecorder.cxx.
57 if (aStep->GetTrack()->GetParentID()) {
58 aStep->GetTrack()->SetTrackStatus(fStopAndKill);
65 const G4TouchableHistory* touchHist =
static_cast<const G4TouchableHistory*
>(aStep->GetPreStepPoint()->GetTouchable());
67 const G4LogicalVolume *lv= touchHist ? touchHist->GetVolume()->GetLogicalVolume() :
nullptr;
68 const G4Material *
mat = lv ? lv->GetMaterial() :
nullptr;
71 if (
mat &&
mat->GetRadlen() < 200000.) {
73 G4ThreeVector
pos = aStep->GetPreStepPoint()->GetPosition();
74 double px = aStep->GetPreStepPoint()->GetMomentum().x();
75 double py = aStep->GetPreStepPoint()->GetMomentum().y();
76 double pz = aStep->GetPreStepPoint()->GetMomentum().z();
84 double m = aStep->GetTrack()->GetDynamicParticle()->GetMass();
85 int pdgCode = aStep->GetTrack()->GetDynamicParticle()->GetPDGcode();
◆ m_config
Config G4UA::EnergyLossRecorder::m_config |
|
private |
◆ m_entries
unsigned int G4UA::EnergyLossRecorder::m_entries |
|
private |
The documentation for this class was generated from the following files: