Problem 476 - Application base on test 30 problems.
Summary: Application base on test 30 problems.
Status: RESOLVED WORKSFORME
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/models (show other problems)
Version: other
Hardware: Other All
: P2 critical
Assignee: Hans-Peter.Wellisch
URL:
: 475 (view as problem list)
Depends on:
Blocks:
 
Reported: 2003-04-03 09:30 CEST by simone.gilardoni
Modified: 2003-05-25 12:12 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description simone.gilardoni 2003-04-03 09:30:13 CEST
I would like to develop a G4 application for pion production
at low energy. The scope is essentially to see pions produced from a proton beam
of few GeV impinging light and heavy materials.
At the time being I am still in a learning process, namely I took the
G4 test number 30 to try to understand how the G4 hadronic models work
(Geant4 5.0 version).
My problem is that once I try to use the Bertini model I have suddenly
a Segmentation fault from the application which I don't have if
I use the LEparametrisation model, or the CHIPS or the Kinetic model.

I am calling Bertini in the physics list with:

else if( gen_name == "bertini" )
  {
    G4CascadeInterface* hkm=new G4CascadeInterface();

    sg = new Sh01SecondaryGenerator(hkm, mat);
    theProcess->SetSecondaryGenerator(sg);

    man->AddDiscreteProcess(theProcess);
  }

An there is the only place where the application distinguish between
the different models.

My geometry and beam configuration is a proton beam of 1.8 GeV on lead target 2
mm thick.
First I thought the error I have could come from a wrong compilation of the G4
libraries. I am using the gcc 3.2 on a linux machine but I get the same error
running on w2000 with CYGWIN and gcc 3.2.
Then I am wondering if my Physic list needs something else.
Comment 1 Hans-Peter.Wellisch 2003-04-22 05:17:59 CEST
Hi,

  with binary cascade, I have now run a complete ATLAS test-beam simulation.
There are a few fixes, that will go (hopefully) into the next release. You can
pick them up at http://cmsdoc.cern.ch/~hpw/GHAD/scattering.tar.gz

Many greetings,

Hans-Peter.
Comment 2 Gabriele Cosmo 2003-05-08 04:57:59 CEST
*** Bug 475 has been marked as a duplicate of this bug. ***
*** 'Hans-Peter.Wellisch@cern.ch' will be responsible for bug 475. ***
Comment 3 Hans-Peter.Wellisch 2003-05-25 12:12:59 CEST
as discussed