Message: Problem with a heavy ion source Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Problem with a heavy ion source 

Forum: Particles
Date: 17 Feb, 2006
From: jazmin schwartz <jazmin schwartz>

Dear GEANT4 memebers:

I am trying to calculate energy loss of some ions in water. I am testing my code with carbon, but have tried it with several other ions and I get an error message as soon as it tries to track the ion.

The following is my particle definition:

  particleGun1 = new G4ParticleGun(n_particle);
  G4ParticleDefinition* Ac225 = particleTable->GetIon(6, 12, 0.0);
  particleGun1->SetParticleDefinition(Ac225); 
  particleGun1->SetParticleEnergy(100*keV);

I get the error message below regardless of wether I include a physics list for the ion or not!!!

Any ideas?

Thanks Jazmin

---> Begin of event: 0

*********************************************************************************************************
* G4Track Information:   Particle = C12[0.0],   Track ID = 1,   Parent ID = 0
*********************************************************************************************************

Step#    X(mm)    Y(mm)    Z(mm) KinE(MeV)  dE(MeV) StepLeng TrackLeng  NextVolume ProcName
    0  0.00356  0.00306   0.0847       0.1        0        0         0       Cells initStep

 *** Break *** segmentation violation
 Generating stack trace...
 0x00002aaab33b4b46 in G4SteppingManager::DefinePhysicalStepLength() + 0x96 from /geant/geant4.7.1/lib/Linux-g++/libG4tracking.so
 0x00002aaab33b7637 in G4SteppingManager::Stepping() + 0xd7 from /geant/geant4.7.1/lib/Linux-g++/libG4tracking.so
 0x00002aaab33c0778 in G4TrackingManager::ProcessOneTrack(G4Track*) + 0x168 from /geant/geant4.7.1/lib/Linux-g++/libG4tracking.so
 0x00002aaab30ffb3f in G4EventManager::DoProcessing(G4Event*) + 0x32f from /geant/geant4.7.1/lib/Linux-g++/libG4event.so
 0x00002aaab1e07e80 in G4RunManager::DoEventLoop(int, char const*, int) + 0x230 from /geant/geant4.7.1/lib/Linux-g++/libG4run.so
 0x00002aaab1e05e4a in G4RunManager::BeamOn(int, char const*, int) + 0x6a from /geant/geant4.7.1/lib/Linux-g++/libG4run.so
 0x00002aaab1e0a359 in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) + 0x259 from /geant/geant4.7.1/lib/Linux-g++/libG4run.so
 0x00002aaab4ec7a20 in G4UIcommand::DoIt(G4String) + 0x860 from /geant/geant4.7.1/lib/Linux-g++/libG4intercoms.so
 0x00002aaab4ed33f6 in G4UImanager::ApplyCommand(char const*) + 0x426 from /geant/geant4.7.1/lib/Linux-g++/libG4intercoms.so
 0x00002aaaae537e3f in G4UIterminal::ExecuteCommand(G4String) + 0x5f from /geant/geant4.7.1/lib/Linux-g++/libG4UIbasic.so
 0x00002aaaae5393b6 in G4UIterminal::SessionStart() + 0x56 from /geant/geant4.7.1/lib/Linux-g++/libG4UIbasic.so
 0x000000000041904d in main + 0x527 from ./exampleN01
 0x00000036bd91c4cc in __libc_start_main + 0xdc from /lib64/libc.so.6
 0x0000000000418799 in G4VUserPhysicsList::RetrievePhysicsTable(G4ParticleDefinition*, G4String const&, bool) + 0xa9 from ./exampleN01
Abort

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

 Add Message Add Message
to: "Problem with a heavy ion source"

 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 ]