Message: problem physicslist with G4IonInelasticProccess Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question problem physicslist with G4IonInelasticProccess 

Forum: Physics List
Date: 12 Sep, 2011
From: T.D.Trong <T.D.Trong>

I'm new in Geant4, I am simulating nuclear reaction in Carbon target with beam C11,12,13,14. To start simulation I modify example N03. But I have a problem with "Segmentation fault". Please help me: I am using geant4.9.4.p01 and modify "ExN03PhysicsList.cc" of example Novice N03. when I added process "G4IonInelasticProcess" to ion's process:

#include "G4IonInelasticProcess.hh"
#include "G4BinaryLightIonReaction.hh"
#include "G4TripathiCrossSection.hh"
.............
 } else if( particleName == "GenericIon" ) { 
      //Ions 
      pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
      pmanager->AddProcess(new G4ionIonisation,       -1, 2, 2);     

//* new add
	G4IonInelasticProcess* theIonInelasticProcess = new G4IonInelasticProcess();
	G4BinaryLightIonReaction* theIonInelasticModel  = new G4BinaryLightIonReaction();
	theIonInelasticModel->SetMinEnergy(100*MeV);
  	theIonInelasticModel->SetMaxEnergy(10*GeV);
	theIonInelasticProcess->RegisterMe(theIonInelasticModel);
	G4TripathiCrossSection* tripathiData = new G4TripathiCrossSection();
	theIonInelasticProcess->AddDataSet(tripathiData);
	pmanager->AddDiscreteProcess(theIonInelasticProcess);
// end add

      } else if ((!particle->IsShortLived()) &&  
...........

When I run it has segmentation fault. I don't know why? please help me. Thanks. ps: Sorry, because my English not good. :D

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

1 Feedback: Re: problem physicslist with G4IonInelasticProccess   (Joel Long - 13 Sep, 2011)
1 None: Re: problem physicslist with G4IonInelasticProccess   (T.D.Trong - 13 Sep, 2011)
2 Idea: Re: problem physicslist with G4IonInelasticProccess   (Vladimir Ivanchenko - 19 Sep, 2011)
 Add Message Add Message
to: "problem physicslist with G4IonInelasticProccess"

 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 ]