From 3e8f7d48262c79ee6752a2ca5cc0ac39e17a4489 Mon Sep 17 00:00:00 2001 From: Luis Antonio Obis Aparicio Date: Thu, 7 Mar 2024 11:14:34 +0100 Subject: [PATCH] atomic mass number int --- src/DataModel.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DataModel.cxx b/src/DataModel.cxx index 5a78a4a..2e18db9 100644 --- a/src/DataModel.cxx +++ b/src/DataModel.cxx @@ -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) { @@ -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,