Problem 379 - G4hLowEnergyIonisation::SetStoppingPowerTableName(const char[13])
Summary: G4hLowEnergyIonisation::SetStoppingPowerTableName(const char[13])
Status: RESOLVED FIXED
Alias: None
Product: Examples/Advanced
Classification: Unclassified
Component: underground_physics (show other problems)
Version: 4.0
Hardware: Sun Solaris
: P2 normal
Assignee: a.s.howard
URL:
Depends on:
Blocks:
 
Reported: 2002-06-19 07:20 CEST by inguimbert
Modified: 2007-04-08 18:56 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 inguimbert 2002-06-19 07:20:44 CEST
in the advanced example "underground_physics"
In the DMXPhysicsList.cc
When I add the following line to choose the stopping power table :

ahadronLowEIon->SetStoppingPowerTableName("Ziegler1977H") ;

or another table,
I have during the compilation this error message :

Compiling DMXPhysicsList.cc ...
src/DMXPhysicsList.cc: In member function `virtual void
   DMXPhysicsList::ConstructEM()':
src/DMXPhysicsList.cc:379: no matching function for call to
   `G4hLowEnergyIonisation::SetStoppingPowerTableName(const char[13])'
gmake: *** [/v/desp/inguimbe/geantwk440/tmp/Linux-g++/DMX/DMXPhysicsList.o]
Error 1
Comment 1 Makoto.Asai 2002-06-28 22:02:59 CEST
This is for Low-E EM category.
Comment 2 a.s.howard 2002-07-23 04:58:59 CEST
The correct code to change the model should look like:

    ahadronLowEIon->SetNuclearStoppingPowerModel("ICRU_R49") ;
    ahadronLowEIon->SetNuclearStoppingOn() ;

    ahadronLowEIon->SetElectronicStoppingPowerModel
      (G4GenericIon::GenericIonDefinition(), "ICRU_R49p") ;
    ahadronLowEIon->SetElectronicStoppingPowerModel
      (G4Proton::ProtonDefinition(), "ICRU_R49p")