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 [mailto:dinglj@rpi.edu] 
Sent: Wednesday, January 31, 2007 4:49 PM
To: PublicHyperNews@slac.stanford.edu
Subject: Problem with physics lists

*** Discussion title: Physics List
Email replies to PublicHyperNews@slac.stanford.edu must include:
  In-Reply-To: <"/phys-list/338"@geant4-hn.slac.stanford.edu>
  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 exrdmPhysicsList.cc file was only changed to
include LHEP_PRECO_HP:

#include "HadronPhysicsLHEP_PRECO_HP.hh"

and

void exrdmPhysicsList::SelectPhysicsList(const G4String& name) {
  if (verboseLevel>1) {
    G4cout << "exrdmPhysicsList::SelectPhysicsList: <" << name << ">" <<
G4endl;
  }
  // 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.

Thanks,

Justin Dingley
Renesselaer Polytechnic
Nuclear Engineering

Hello,

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.

VI

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 ]