Skip to content

Commit

Permalink
atomic mass number int
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Mar 7, 2024
1 parent 0dab832 commit 3e8f7d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DataModel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void TRestGeant4Hits::InsertStep(const G4Step* step) {

string isotopeName;
int atomicNumber = 0;
double atomicMass = 0;
int atomicMassNumber = 0;

if (metadata->GetStoreHadronicTargetInfo() && track->GetCurrentStepNumber() != 0 &&
process->GetProcessType() == G4ProcessType::fHadronic) {
Expand All @@ -224,14 +224,14 @@ void TRestGeant4Hits::InsertStep(const G4Step* step) {
if (isotope) {
isotopeName = isotope->GetName();
atomicNumber = isotope->GetZ();
atomicMass = isotope->GetN();
atomicMassNumber = isotope->GetN();
}
}

if (metadata->GetStoreHadronicTargetInfo()) {
fHadronicTargetIsotopeName.emplace_back(isotopeName);
fHadronicTargetIsotopeA.emplace_back(atomicMass);
fHadronicTargetIsotopeZ.emplace_back(atomicNumber);
fHadronicTargetIsotopeA.emplace_back(atomicMassNumber);
}

SimulationManager::GetOutputManager()->AddEnergyToVolumeForParticleForProcess(energy, volumeName,
Expand Down

0 comments on commit 3e8f7d4

Please sign in to comment.