Message: Re: TS neutron data with Geant4.9.6.p02 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: TS neutron data with Geant4.9.6.p02 

Forum: Installation and Configuration
Re: None TS neutron data with Geant4.9.6.p02 (Matthew Mottram)
Date: 27 May, 2014
From: Ben Morgan <Ben Morgan>

On Thu, 15 May 2014 08:59:27 GMT, Matthew Mottram wrote:
> Hi,
> 
> I'm trying to install geant4.9.6.p02 with the thermal scattering neutron
> libraries (and trying to implement this installation as part of a
> software package manager). If I install the thermal libraries to the
> geant4.9.6.p02/data/G4NDL4.2 directory prior to running cmake (with
> -DGEANT4_INSTALL_DATA=ON) then the G4NDL directory is overwritten and
> the TS datasets are lost; if I download them after running cmake (do the
> same directory) then they are not found when running geant.
> 
> I see that I should actually install them to
> geant4.9.6.p02/share/Geant4-9.6.2/data/G4NDL4.2 as this is where the
> G4NEUTRONHPDATA points. I'm just wondering why the system should install
> the datasets twice (these do not appear to be links) and whether simply
> downloading to the g4xxx/share/G4xxx/data directory is the recommended
> way to install the datasets?
> 
> Cheers, Matt
>

The build/installation procedure will download and unpack the datasets under the build directory, so it's possible that is overwriting things - though could you clarify what the root directory of the first path "geant4.9.6.p02/data/G4NDL4.2" is?

The installation can be tuned to reuse existing datasets, see the GEANT4_INSTALL_DATA and GEANT4_INSTALL_DATADIR options. For use under a package management system, it may be easiest to package the datasets separately and then make the main Geant4 package depend on these. For example, get the package to install datasets under /usr/share/geant4data, then when building Geant4, pass CMake the options -DGEANT4_INSTALL_DATA=ON -DGEANT4_INSTALL_DATADIR=/usr/share/geant4data. Provided the required datasets are present, that should make Geant4 reuse the existing data.

Cheers,

Ben.

 Add Message Add Message
to: "Re: TS neutron data with Geant4.9.6.p02"

 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 ]