W
pliku
MyPhysicsList.cc
(zmiany kolorem czerwonym)
.................................................................
#include
"G4Scintillation.hh"
.................................................................
void MyPhysicsList::ConstructGeneral()
{
// Add Decay Process
G4Decay* theDecayProcess = new G4Decay();
//
Add Scintillation Process
G4Scintillation* theScintillationProcess = new
G4Scintillation();
theParticleIterator->reset();
while( (*theParticleIterator)() ){
G4ParticleDefinition* particle =
theParticleIterator->value();
G4ProcessManager* pmanager =
particle->GetProcessManager();
if
(theDecayProcess->IsApplicable(*particle)) {
pmanager
->AddProcess(theDecayProcess);
// Set ordering for PostStepDoIt
and AtRestDoIt
pmanager
->SetProcessOrdering(theDecayProcess, idxPostStep);
pmanager
->SetProcessOrdering(theDecayProcess, idxAtRest);
}
if (theScintillationProcess->IsApplicable(*particle)) {
pmanager ->AddProcess(theScintillationProcess);
// Set ordering for PostStepDoIt and AtRestDoIt
pmanager ->SetProcessOrdering(theScintillationProcess,
idxPostStep);
pmanager ->SetProcessOrdering(theScintillationProcess,
idxAtRest);
}
}
}
ooooooooooooooooooooooooooooooooooooooooooooooooo
W pliku
MyDetectorConstruction.cc
(zmiany
kolorem czerwonym)
...........................................................................................
void
MyDetectorConstruction::DefineMaterials()
......................................................................................
Scnt_MPT->AddConstProperty("SCINTILLATIONYIELD", 1./MeV);