|Message: Re: How to implement random engines in GEANT4 projects?||Not Logged In (login)|
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Hi Jeremy, thank you for your answer, but I am sorry to say it doesn't help too much. :-(. It was me that installed and configured GEANT4 on my machine (it's a Linux g++). I provided to download the CLHEP, and environment variables are set correctly, as you can see in the following, which is an extact of the output produced by env.csh script (I'm on a tcsh shell):
<>On this machine <>the G4SYSTEM=Linux-g++ <>On this machine the CLHEP_BASE_DIR=/usr/local/CLHEPdir/CLHEP_184.108.40.206/ <>On this machine the CLHEP_INCLUDE_DIR=/usr/local/CLHEPdir/CLHEP_220.127.116.11/include <>On this machine the CLHEP_LIB_DIR=/usr/local/CLHEPdir/CLHEP_18.104.22.168/lib <>On this machine the CLHEP_LIB=CLHEP <>On this machine the G4VIS_BUILD_OPENGLX_DRIVER=1 <>On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=1 <>On this machine the G4VIS_USE_OPENGLX=1 <>On this machine the G4VIS_USE_RAYTRACERX=1 <>On this machine the XMFLAGS= <>On this machine the XMLIBS= <>On this machine the XMFLAGS= <>On this machine the XMLIBS= <>On this machine the XAWFLAGS= <>On this machine the XAWLIBS= <>On this machine the G4LIB_BUILD_STATIC=1 <>On this machine the G4LIB_USE_GRANULAR=1 <>On this machine the G4UI_USE_TCSH=1 <>In your environment you have the G4WORKDIR=/home/giulia/geant4
Still, it can be that the CLHEP are not correctly included by GEANT4... but how can I check the case, since the environment is apparentely well set?
My collegue wrote and executed the first version of the project using a MacBook PowerPC (Darwin) and a previous version of GEANT4 and CLHEP. Can this be the reason for the non-compatibility? At present, I tried to go on, modifying the project having the Example N03 as a model, including only "Randomize.hh" in the main, where I put the lines: CLHEP::HepRandom::setTheEngine(new CLHEP::RanecuEngine); G4long seed=time(0); CLHEP::HepRandom::setTheSeed(seed); CLHEP::HepRandom::showEngineStatus(); and using G4UniformRand and G4RandGauss in the PrimaryGeneratorAction. It is apparentely working, but still I am curious to know why the original version is not good.
Thank you again, Giulia
|Inline Depth:||Outline Depth:||Add message:|