|
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.
- Timestamp:
-
Dec 21, 2016, 11:54:04 AM (8 years ago)
- Author:
-
Clarence Wret
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v12
|
v13
|
|
9 | 9 | == Compiling NEUT and running neutroot2 == |
10 | 10 | |
11 | | The main neutrino-nucleus interaction generator lives in `$NEUT_ROOT/src/neutsmpl/neutroot`. NEUT has two dependencies: ROOT and the lesser known CERNLIB. You need to have `$ROOTSYS`, `$CERN` and `$CERN_LEVEL` environment variables set-up to compile NEUT. These are all specified in `$NEUT_ROOT/src/neutsmpl/Envmakeneutsmpl.csh`. |
| 11 | The main neutrino-nucleus interaction generator lives in `$NEUT_ROOT/src/neutsmpl/neutroot`. NEUT has two dependencies: ROOT and the lesser known 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`. |
12 | 12 | |
13 | | Compilation is done (somewhat inconveniently) by running `./Makeneutsmpl` in `src/neutsmpl/`: this calls a host of makefiles, sets up symlinks and so on. If you have some time on your hands and want to fix this, please contact us or Hayato-san. |
| 13 | Compilation is done (somewhat inconveniently) by running `./Makeneutsmpl` in `src/neutsmpl/`: this sources the above `EnvMakeneutsmpl.csh`, runs through a host of makefiles, sets up symlinks and builds the project. If you have some time on your hands and want to fix this by e.g. CMake, please contact us or Hayato-san. |
14 | 14 | |
15 | 15 | Running the main executable is done by `./neutroot2 NEUT_CARD_FILE.card OUTPUT_ROOT_FILE.root`, where `NEUT_CARD_FILE.card` is a card file compliant with your chosen NEUT version, and `OUTPUT_ROOT_FILE.root` is the ROOT output file where the events are to be saved, and is the input for NUISANCE analyses. |
… |
… |
|
17 | 17 | Examples of NEUT card files can be found in the `$NEUT_ROOT/src/neutsmpl/Cards` directory, or have a look at what team NUISANCE used for 2016 analyses at |
18 | 18 | [wiki:Winter2016] and https://imperialcollegelondon.app.box.com/files/0/f/13226969736/neut_cards |
| 19 | |
19 | 20 | |
20 | 21 | Hot tip: NEUT can be quite verbose and you might want to pipe the output to file (or /dev/null...) rather than dump it to screen. This can actually speed up NEUT considerably. |
… |
… |
|
25 | 26 | NEUT has a load of defaults set on run-time if the user does not supply them, which means you're running with "reference" NEUT. |
26 | 27 | |
27 | | Some things are good to specify though, and here's a list for generating all modes on T2K H2O. We can specify how many events we want, the incoming neutrino type, the flux file, number of bound protons and neutrons and free protons, what interaction modes, and so on. |
| 28 | Some things are good to specify though, and here's a list for generating all modes on T2K H2O. We can specify how many events we want, the input flux in TH1D format, the incoming neutrino type, the flux file, number of bound protons and neutrons and free protons, what interaction modes, and so on. |
28 | 29 | |
29 | 30 | The "C" at the start of each line is just a comment and will not be parsed by NEUT. |
| 31 | |
| 32 | The `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. |
| 33 | |
30 | 34 | {{{ |
31 | 35 | C Number of events ; EVCT-NEVT |
|