#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 54 of file StoppedParticleFastSim.cxx.
59 G4SDManager *sdm = G4SDManager::GetSDMpointer();
60 G4VSensitiveDetector * vsd = sdm->FindSensitiveDetector(
m_fsSDname );
62 G4cout <<
"StoppedParticleFastSim::DoIt WARNING Could not get TrackFastSimSD sensitive detector. If you are not writing track records this is expected." << G4endl;
65 G4cout <<
"StoppedParticleFastSim::DoIt WARNING Could not cast the SD. If you are not writing track records this is expected." << G4endl;
70 if (
isSUSYParticle(fastTrack.GetPrimaryTrack()->GetDynamicParticle()->GetDefinition()->GetPDGEncoding()) &&
74 fastStep.KillPrimaryTrack();
◆ IsApplicable()
G4bool StoppedParticleFastSim::IsApplicable |
( |
const G4ParticleDefinition & |
| ) |
|
|
finaloverride |
◆ isSUSYParticle()
bool StoppedParticleFastSim::isSUSYParticle |
( |
const int |
id | ) |
const |
|
protected |
Definition at line 77 of file StoppedParticleFastSim.cxx.
79 if (
id==1000021 ||
id==1000005 ||
id==1000006 ||
id==1000512 ||
id==1000522 ||
id==1000991 ||
id==1000993 ||
80 id==1000612 ||
id==1000622 ||
id==1000632 ||
id==1000642 ||
id==1000652 ||
id==1005211 ||
81 id==1006113 ||
id==1006211 ||
id==1006213 ||
id==1006223 ||
id==1006311 ||
82 id==1006313 ||
id==1006321 ||
id==1006323 ||
id==1006333 ||
83 id==1009111 ||
id==1009113 ||
id==1009211 ||
id==1009213 ||
id==1009311 ||
84 id==1009313 ||
id==1009321 ||
id==1009323 ||
id==1009223 ||
id==1009333 ||
85 id==1092112 ||
id==1091114 ||
id==1092114 ||
id==1092212 ||
id==1092214 ||
id==1092224 ||
86 id==1093114 ||
id==1093122 ||
id==1093214 ||
id==1093224 ||
id==1093314 ||
id==1093324 ||
id==1093334)
◆ 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;
40 G4Material *
mat = fastTrack.GetPrimaryTrack()->GetMaterial();
42 for (
unsigned int i=0;
i<
mat->GetNumberOfElements();++
i){
43 if (
mat->GetElement(
i) &&
44 minA>
mat->GetElement(
i)->GetN()){
45 minA=
mat->GetElement(
i)->GetN();
◆ m_fsSD
◆ m_fsSDname
std::string StoppedParticleFastSim::m_fsSDname |
|
protected |
◆ m_init
bool StoppedParticleFastSim::m_init |
|
protected |
The documentation for this class was generated from the following files:
bool isSUSYParticle(const int) const