Message: Re: How to implement random engines in GEANT4 projects? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to implement random engines in GEANT4 projects? 

Keywords: Ranecu random
Forum: Run Management
Re: None How to implement random engines in GEANT4 projects? (Giulia De Bonis)
Re: None Re: How to implement random engines in GEANT4 projects? (Jeremy McCormick)
Date: 12 Oct, 2007
From: Giulia De Bonis <Giulia De Bonis>

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_2.0.3.1/
<>On this machine the CLHEP_INCLUDE_DIR=/usr/local/CLHEPdir/CLHEP_2.0.3.1/include
<>On this machine the CLHEP_LIB_DIR=/usr/local/CLHEPdir/CLHEP_2.0.3.1/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:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: How to implement random engines in GEANT4 projects?"

 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 ]