Message: set environment variable Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question set environment variable 

Forum: Physics List
Date: 30 May, 2013
From: sergi <sergi>

Dear Geant4 users,

I want to simulate neutrons against a boron target and I need high precision neutron models. For this purpouse i have copied the physics list from "Space Electronics Physics List Description" ( In "" i have to include the high-precision neutron models which, acordint to the web page, are automatically invoked when the environmental variable NeutronHPCrossSection is set.

In my :

void SENeutronPhysics::ConstructProcess()
  G4bool HPN;
  if (getenv("NeutronHPCrossSections")) {
    G4cout << "physics list: Constructing high precision neutron models" << G4endl;
    G4cout << "              using cross sections in "
           << getenv("NeutronHPCrossSections") << G4endl;
    HPN = true;
  } else {
    G4cout << "physics list: Constructing non-high-precision neutron models" << G4endl;
    HPN = false;

  G4ProcessManager* pManager = G4Neutron::Neutron()->GetProcessManager();

  G4double HPNLimit = 19.9*MeV;

  // After that the Neutron elastic process, the Neutron inelastic process etc, models and cross sections are described for both high precision and non-high- precision.

My question is where or how I have to write:

setenv /opt/geant/4.9.6.p01/share/Geant4-9.6.1/data/G4NDL4.2

so the G4bool HPN returns a true.

(G4NDL4.2 is a folder with subfolders like capture, elastic, inelastic...inside each of this folders appear a folder called CrossSection among others)

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: set environment variable   (Zach Hartwig - 30 May, 2013)
 Add Message Add Message
to: "set environment variable"

 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 ]