| Message: Re: neutron production via (p,n) reaction: problem with *_BERT_HP physics list | Not Logged In (login) |
|
Hi, the problem is still not solved... unfortunately.
I use the G4VModularPhysicsList. When I comment out the setcuts method by:
#include "ErsterVersuchPhysicsList.hh" #include "G4ParticleTypes.hh" #include "HadronPhysicsQGSP_BERT_HP.hh" ErsterVersuchPhysicsList::ErsterVersuchPhysicsList() : G4VModularPhysicsList() {
RegisterPhysics( new HadronPhysicsQGSP_BERT_HP("hadron") );
}
ErsterVersuchPhysicsList::~ErsterVersuchPhysicsList() {;}
//void ErsterVersuchPhysicsList::SetCuts() // setting a range cut value for all particles
//{
// uppress error messages
// G4int temp = GetVerboseLevel();
// SetVerboseLevel(0);
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
// the default cut value for all particle types
// SetCutsWithDefault();
// Retrieve verbose level // SetVerboseLevel(temp); //} I cannot compile. With the SetCutsWithDefault() I get the same output (compiling works naturally)... -> ========= Table of registered couples ==============================
Index : 0 used in the geometry : Yes recalculation needed : No
Material : Vacuum
Range cuts : gamma 0 fm e- 0 fm e+ 0 fm
Energy thresholds : gamma -1 MeV e- -1 MeV e+ -1 MeV
Region(s) which use this couple :
DefaultRegionForTheWorld
Index : 1 used in the geometry : Yes recalculation needed : No
Material : Lithium
Range cuts : gamma 0 fm e- 0 fm e+ 0 fm
Energy thresholds : gamma -1 MeV e- -1 MeV e+ -1 MeV
Region(s) which use this couple :
DefaultRegionForTheWorld
==================================================================== I did not manage to use the example from examples/extended/hadronic/Hadr01 for the setcuts yet. I think this could be because of the G4VModularPhysicsList(), but I'm not sure. When I use the part of the code about the setcuts I get the right range cuts in my output, but the hadronic physics seem not to work. Should I implement the hadronic physics in another way? A colleague also experienced some trouble with these physics lists and the cut ranges... Kind regards, Jörg
|
| Inline Depth: | Outline Depth: | Add message: |
|
to: |