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:28:32 AM (8 years ago)
- Author:
-
Clarence Wret
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v4
|
v5
|
|
6 | 6 | == Compiling NEUT and running neutsmpl == |
7 | 7 | |
8 | | The main neutrino-nucleus interaction generator lives in src/neutsmpl/neutroot. NEUT has two dependecies: ROOT and the lesser known CERNLIB. You need to have $ROOTSYS, $CERN and $CERN_LEVEL environment variables set-up to compile NEUT. 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 want to fix this and have the time, please contact us or Hayato-san. |
| 8 | 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. |
9 | 9 | |
10 | | Running the main executable is done by ./neutroot CARD_FILE.card OUTPUT_ROOT_FILE.root, where CARD_FILE.card is a card file compliant with your chosen NEUT version, and OUTPUT_ROOT_FILE.root is the output file where the events are to be saved. |
| 10 | 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. |
| 11 | |
| 12 | Running the main executable is done by ./neutroot2 NEUT_CARD_FILE.card OUTPUT_ROOT_FILE.root, where CARD_FILE.card is a card file compliant with your chosen NEUT version, and OUTPUT_ROOT_FILE.root is the output file where the events are to be saved. |
| 13 | |
| 14 | Examples of NEUT card files can be found in the $NEUT_ROOT/src/neutsmpl/Cards directory, or have a look at what we used for 2016 at https://nuisance.hepforge.org/trac/wiki/Winter2016 and https://imperialcollegelondon.app.box.com/files/0/f/13226969736/neut_cards |
11 | 15 | |
12 | 16 | 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. |
… |
… |
|
17 | 21 | |
18 | 22 | = NEUT inputs for NUISANCE = |
| 23 | |
19 | 24 | The output of neutroot, a neutvect, can be read in by NUISANCE to generate predictions. neutroot also saves the predicted flux and event rate predictions automatically into the neutvect files so NUISANCE already has everything it needs. |
20 | 25 | |
… |
… |
|
24 | 29 | }}} |
25 | 30 | |
26 | | = Using NEUT ReWeight = |
| 31 | = Using NEUT \ReWeight = |
27 | 32 | |
28 | 33 | |