Message: Problem with G4ionLowEnergyIonisation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Problem with G4ionLowEnergyIonisation 

Keywords: G4ionLowEnergyIonisation
Forum: Particles
Date: 13 Apr, 2005
From: Ville Föhr <vilfohr@cc.jyu.fi>

Hi,

I'm trying to simulate low energy (~2.5 keV) Xe ions in liquid Xenon
tank and I'm having problem with G4ionLowEnergyIonisation
process. This process sounds about right to be used in the simulation
like this or what? 

I have the following in my physicslist (short version):

#include "G4MultipleScattering.hh"
#include "G4ionIonisation.hh"
#include "G4ionLowEnergyIonisation.hh"

void TPCPhysicsList::ConstructEM()
{
  theParticleIterator->reset();
  while( (*theParticleIterator)() ){
    G4ParticleDefinition* particle = theParticleIterator->value();
    G4ProcessManager* pmanager = particle->GetProcessManager();
    G4String particleName = particle->GetParticleName();
  
    if (particleName == "GenericIon") {
      G4MultipleScattering* aMultipleScattering = new G4MultipleScattering();
      G4ionIonisation * ionIonisation = new G4ionIonisation();
      G4ionLowEnergyIonisation * ionLowEIoni = new G4ionLowEnergyIonisation();
      
      pmanager->AddProcess(aMultipleScattering,-1,1,1); // order for RestDoIt, AlongStepDoIt, PostStepDoIt?      
      pmanager->AddProcess(ionIonisation, -1, 2,2); 
      pmanager->AddProcess(ionLowEIoni, -1, 2,2);

     }
  }
}


First I wasn't using shared libraries and I was getting: 

/home/vilfohr/myG4work/tmp/Linux-g++/TPCgun/libTPCgun.a(TPCPhysicsList.o)(.text+0xe71): In function `TPCPhysicsList::ConstructEM()':
#: undefined reference to
`G4ionLowEnergyIonisation::G4ionLowEnergyIonisation(G4String const&)'

Then for some reason I got the idea that I should be using shared
libraries and I compiled geant4 with shared libraries and now i'm getting 

% gmake
Using granular libraries ...
Linking TPCgun ...
/home/vilfohr/myG4work/tmp/Linux-g++/TPCgun/libTPCgun.so: undefined reference to `G4ionLowEnergyIonisation::G4
ionLowEnergyIonisation(G4String const&)'
collect2: ld returned 1 exit status
gmake: *** [/home/vilfohr/myG4work/bin//Linux-g++/TPCgun] Error 1

I know the problem isn't with LD_LIBRARY_PATH environment variable
because I have set it correctly

setenv LD_LIBRARY_PATH $G4LIB/$G4SYSTEM

and for example I can compile and run novice example NO3.
Also the file exist:  
./geant4.7.0/source/processes/electromagnetic/lowenergy/include/G4ionLowEnergyIonisation.hh
 
I'm running Mandrake 10.1: 
Linux version 2.6.8.1-24mdk 
(gcc version 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)) 

Is there a bug or am I doing something wrong?

I haven't found the use of G4ionLowEnergyIonisatio in any of the examples.  

Thanks.

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

 Add Message Add Message
to: "Problem with G4ionLowEnergyIonisation"

 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 ]