nuisance is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" ("(default)" is not readable or not a Git repository.). Look in the Trac log for more information.

Changes between Version 24 and Version 25 of HowToNeut


Ignore:
Timestamp:
Feb 26, 2017, 7:17:41 PM (7 years ago)
Author:
Clarence Wret
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToNeut

    v24 v25  
    1515
    1616[=#point_compile]
    17 == Compiling NEUT and running neutroot2 ==
     17== Compiling NEUT and generating events ==
    1818
    1919This guide assumes you've got your hand on a copy of NEUT and CERNLIB. To request a copy, please kindly inquire to Hayato-san at `hayato@icrr.u-tokyo.ac.jp`.
     
    2323NEUT has two dependencies: ROOT and CERNLIB. You need to have `$ROOTSYS`, `$CERN` and `$CERN_LEVEL` environment variables set-up to compile NEUT. These should all be specified by the user in `$NEUT_ROOT/src/neutsmpl/EnvMakeneutsmpl.csh`.
    2424
    25 Compilation is done by running `./Makeneutsmpl` in `$NEUT_ROOT/src/neutsmpl/`: this sources the above `EnvMakeneutsmpl.csh`, runs through a host of makefiles, sets up symlinks and builds the project.
     25`$ROOTSYS` should be set to your ROOT installation (e.g. sourcing `YOUR_DIR/root/bin/thisroot.sh`). `$CERNLIB` is your CERNLIB installation folder. `$CERN_LEVEL` is the folder inside `$CERNLIB` which you've installed: in my case (2017) the folder is called `2005`, so I set `export CERN_LEVEL=2005`.
    2626
    27 Running the main executable is done by
     27Once the environment variables are set (or included in `EnvMakeneutsmpl.csh`, compilation is done by running `./Makeneutsmpl` in `$NEUT_ROOT/src/neutsmpl/`. This sources the above `EnvMakeneutsmpl.csh`, runs through a host of makefiles, sets up symlinks and builds the project.
     28
     29You can now run the main executable by:
    2830
    2931{{{
     
    8385
    8486The `EVCT-MPV 3` says the flux is coming from a file, `EVCT-FILENM` specifies the file location of the flux, `EVCT-HISTNM` is the name of the TH1D inside `EVCT-FILENM`, and `EVCT-INMEV` specifies if the input histogram is in MeV or not.
     87
     88
     89= Compiling NUISANCE against NEUT =
     90Once you have a working NEUT installation and generated events, you can link NUISANCE against NEUT.
     91
     92To run NUISANCE with NEUT you'll need to specify the `$NEUT_ROOT`, `$CERNLIB` and `$CERN_LEVEL` variables.
     93
     94When building, set the environment variables and specify `-DUSE_NEUT=1` when generating the makefiles with `cmake`. Do:
     95
     96{{{
     97cd YOUR_NUISANCE_PATH
     98mkdir -pv build
     99cd build
     100cmake ../ -DUSE_NEUT=1
     101source $uname/setup.sh
     102make
     103make install
     104make docs
     105}}}
     106
     107For multiple generator support (e.g. NEUT and GENIE enabled), simply set the environment variables for the generators, and compile with
     108
     109{{{
     110cmake ../ -DUSE_NEUT=1 -DUSE_GENIE=1
     111}}}
     112
     113instead.
    85114
    86115