Message: Re: Problem with rdecay02 example Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Problem with rdecay02 example 

Forum: Documentation and Examples
Re: Question Problem with rdecay02 example (Robert Pattie)
Date: 22 Jul, 2015
From: Enrique Muņoz <Enrique Muņoz>

Hi, I am not a very experienced user, but I had the same error when trying to simulate a radioactive decay of Na22 in GATE (a toolkit for medical physics simulations based on Geant4). I don't think this is the best solution, but I managed to fix the issue like this:

In your geant4 install folder you should have this file:


The error is thrown by that file, after looking for the cross section in the database, in these lines:

  190   G4cout << "G4CrossSectionDataStore::GetCrossSection ERROR: "
  191      << " no isotope cross section found"
  192      << G4endl;
  193   G4cout << "  for " << part->GetDefinition()->GetParticleName() 
  194      << " off Element " << elm->GetName()
  195          << "  in " << mat->GetName() 
  196      << " Z= " << Z << " A= " << A
  197      << " E(MeV)= " << part->GetKineticEnergy()/MeV << G4endl; 
  198   throw G4HadronicException(__FILE__, __LINE__, 
  199                       " no applicable data set found for the isotope");
  200   return 0.0;
  201   //return dataSetList[idx]->ComputeCrossSection(part, elm, mat);
  202 }

As I understand it, lines 190-200 just give information about the error. What I did was comment all those lines and uncomment line 201 which, I think, then computes a new Cross Section even if it isn't in the database.

Someone more experienced would be more suitable to give a proper answer, but for now this did the trick for my simulation. Hope this is helpful to you!

 Add Message Add Message
to: "Re: Problem with rdecay02 example"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]