Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing value in DNA PTB Ionization Structure; missing GetMaterial() in DNA PTB Excitation and Elastic models; #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ void G4DNAPTBElasticModel::SampleSecondaries(std::vector<G4DynamicParticle*>* /*
}

G4double electronEnergy0 = aDynamicElectron->GetKineticEnergy();
const std::size_t& materialID = couple->GetIndex();
const std::size_t& materialID = couple->GetMaterial()->GetIndex();
auto p = aDynamicElectron->GetParticleDefinition();

// set killBelowEnergy value for material
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void G4DNAPTBExcitationModel::SampleSecondaries(std::vector<G4DynamicParticle*>*
const G4DynamicParticle* aDynamicParticle,
G4double /*tmin*/, G4double /*tmax*/)
{
const std::size_t& materialID = (std::size_t)couple->GetIndex();
const std::size_t& materialID = (std::size_t)couple->GetMaterial()->GetIndex();

// Get the incident particle kinetic energy
G4double k = aDynamicParticle->GetKineticEnergy();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ G4DNAPTBIonisationStructure::G4DNAPTBIonisationStructure()
energyConstant[index].push_back(17.07 * eV);
energyConstant[index].push_back(21.00 * eV);
energyConstant[index].push_back(41.72 * eV);
energyConstant[index].push_back(409.9*eV);
}

// MPietrzak
Expand Down