#include <StoppedParticleFastSim.h>
Definition at line 16 of file StoppedParticleFastSim.h.
◆ StoppedParticleFastSim()
StoppedParticleFastSim::StoppedParticleFastSim |
( |
const std::string & |
name, |
|
|
const std::string & |
fsSDname |
|
) |
| |
◆ ~StoppedParticleFastSim()
StoppedParticleFastSim::~StoppedParticleFastSim |
( |
| ) |
|
|
inline |
◆ DoIt()
void StoppedParticleFastSim::DoIt |
( |
const G4FastTrack & |
fastTrack, |
|
|
G4FastStep & |
fastStep |
|
) |
| |
|
finaloverride |
Definition at line 56 of file StoppedParticleFastSim.cxx.
61 G4SDManager *sdm = G4SDManager::GetSDMpointer();
62 G4VSensitiveDetector * vsd = sdm->FindSensitiveDetector(
m_fsSDname );
67 description <<
"DoIt: Could not cast the SD into an instance of TrackFasSimSD.";
68 G4Exception(
"StoppedParticleFastSim",
"MissingTrackFastSimSD", FatalException,
description);
73 G4cout <<
"StoppedParticleFastSim::DoIt INFO Could not get TrackFastSimSD sensitive detector. If you are not writing track records this is expected." << G4endl;
77 const int id = fastTrack.GetPrimaryTrack()->GetDynamicParticle()->GetDefinition()->GetPDGEncoding();
84 fastStep.KillPrimaryTrack();
◆ IsApplicable()
G4bool StoppedParticleFastSim::IsApplicable |
( |
const G4ParticleDefinition & |
| ) |
|
|
finaloverride |
◆ ModelTrigger()
G4bool StoppedParticleFastSim::ModelTrigger |
( |
const G4FastTrack & |
fastTrack | ) |
|
|
finaloverridevirtual |
Definition at line 34 of file StoppedParticleFastSim.cxx.
37 int id = fastTrack.GetPrimaryTrack()->GetDynamicParticle()->GetDefinition()->GetPDGEncoding();
38 if (id<1000000 || id>1100000)
return true;
42 G4Material *
mat = fastTrack.GetPrimaryTrack()->GetMaterial();
44 for (
unsigned int i=0;
i<
mat->GetNumberOfElements();++
i){
45 if (
mat->GetElement(
i) &&
46 minA>
mat->GetElement(
i)->GetN()){
47 minA=
mat->GetElement(
i)->GetN();
◆ m_fsSD
◆ m_fsSDname
std::string StoppedParticleFastSim::m_fsSDname {""} |
|
protected |
◆ m_init
bool StoppedParticleFastSim::m_init {false} |
|
protected |
The documentation for this class was generated from the following files: