Message: RE: Problem with physics lists Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None RE: Problem with physics lists 

Forum: Physics List
Re: Question Problem with physics lists (Justin Dingley)
Date: 31 Jan, 2007
From: Vladimir Ivanchenko <Vladimir Ivanchenko>

-----Original Message-----
From: Justin Dingley [] 
Sent: Wednesday, January 31, 2007 4:49 PM
Subject: Problem with physics lists

*** Discussion title: Physics List
Email replies to must include:
  In-Reply-To: <"/phys-list/338">
  Subject: ...change this to be about your reply.

Hello all,

I am using a slightly modified version of the extended example
"Radioactive decay" from geant 4.8.1p01 and experiencing problems with
the hadron physics. The file was only changed to
include LHEP_PRECO_HP:

#include "HadronPhysicsLHEP_PRECO_HP.hh"


void exrdmPhysicsList::SelectPhysicsList(const G4String& name) {
  if (verboseLevel>1) {
    G4cout << "exrdmPhysicsList::SelectPhysicsList: <" << name << ">" <<
  // default  Had physics
  if (name == "Hadron") {
    if (hadPhysicsList) delete hadPhysicsList;
    hadPhysicsList = new exrdmPhysListHadron("hadron");
  } else if (name == "LHEP_PRECO_HP") {
    if (emPhysicsList) delete emPhysicsList;
    emPhysicsList = new exrdmPhysListEmStandard("std-h-em");
    if (hadPhysicsList) delete hadPhysicsList;
    hadPhysicsList = new HadronPhysicsLHEP_PRECO_HP("std-hadron");
The problem is that whenever I try to use any physics besides "Hadron",
I get the following error:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208150336 (LWP 16642)]
0x081f4b18 in G4VEnergyLossProcess::GetMeanFreePath ()

The physics libraries have been built, so I'm not really sure what the
problem is. Any help would be greatly appreciated.


Justin Dingley
Renesselaer Polytechnic
Nuclear Engineering


Please, have a look into example/hadronic/Hadr01 - there a coreect
method to include different PhysList is shown.
In your case EM physics incorrectly instantiated.


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "RE: Problem with physics lists"

 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 ]