Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Running GENIE at NevisTo run the GENIE Neutrino Monte Carlo![]() | ||||||||
Deleted: | ||||||||
< < |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
I recommend against trying to install it on your laptop or in your own work area on the cluster; GENIE requires quite a few external packages, is finicky about those packages' versions, and the complete build/installation process has a number of pitfalls. Even the supposedly pre-configured lamp![]() | ||||||||
Line: 76 to 76 | ||||||||
What's next? | ||||||||
Added: | ||||||||
> > | The output of gevgen and related applications is a ROOT file that can only be conveniently read using another GENIE application. To convert that output file into a form that can be read by a non-GENIE program, you probably want to use gntpc . In this example, the output will be a "gtrac" file that can be read using ROOT without involving GENIE load libraries:
gntpc -i gntp.inuke.0.ghep.root -f rootracker gntpc is described on page 147 of the manual. | |||||||
As described in the GENIE manual, to turn various models on/off you need to generate new spline files. The program for doing that is gmkspl , described on page 103 of the manual. You'll want to copy the directory $GENIE/config/ to your work area, then copy and edit file EventGeneratorListAssembler.xml ; that revised file will become an input list to gmkspl . An possible example (νμ on Ar40, up to 10 GeV):
gmkspl -p 14 -t 1000180400 -e 10 \ | ||||||||
Line: 83 to 91 | ||||||||
--output-cross-sections my-splines.xml | ||||||||
Deleted: | ||||||||
< < | Note that gmkspl typically takes several hours to run. | |||||||
\ No newline at end of file | ||||||||
Added: | ||||||||
> > | Note that gmkspl typically takes several hours to run. You may want to learn about the tmux![]() |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Running GENIE at Nevis | ||||||||
Changed: | ||||||||
< < | To run the GENIE Neutrino Monte Carlo![]() ![]() ![]() | |||||||
> > | To run the GENIE Neutrino Monte Carlo![]() | |||||||
Changed: | ||||||||
< < | Setting up GENIE | |||||||
> > |
![]() Use the one already at NevisThis may seem like a reasonable approach. Be aware that, as time goes on, that suite of software will probably become more and more obsolete. With that warning out of the way:module load /nevis/amsterdam/share/seligman/genie/genie-setup.modNote that this command will make changes to your shell environment. I strongly suggest that you do not mix this setup with any other software frameworks (e.g., LArSoft for the Neutrino group; Athena for the ATLAS group). Setting up GENIE via UPS | |||||||
First, set up the Fermilab UPS![]() | ||||||||
Line: 33 to 48 | ||||||||
Running GENIE | ||||||||
Changed: | ||||||||
< < | The GENIE manual is here![]() -f option. . | |||||||
> > | The GENIE manual is here![]() -f option. . | |||||||
# Create a work area for transient output files | ||||||||
Line: 42 to 57 | ||||||||
# Define variables to point at directories with flux and cross-section files. export GENIE_FLUXES=/nevis/westside/data/uboone/flux | ||||||||
Changed: | ||||||||
< < | export GENIE_XSECS=/nevis/westside/data/uboone/genie/genie_xsec | |||||||
> > | export GENIE_XSECS=/nevis/amsterdam/data/seligman/genie_xsec | |||||||
# Generate 10,000 numu+Ar events with energies between 0 and 10 GeV gevgen -n 10000 -p 14 -t 1000180400 -e 0,10 --run 100 | ||||||||
Line: 51 to 66 | ||||||||
--cross-sections $GENIE_XSECS/v2_12_0/NULL/DefaultPlusMECWithNC/data/gxspl-FNALsmall.xml | ||||||||
Changed: | ||||||||
< < | Archeology: on 5-Apr-2017, I copied the flux files from uboonegpvm01.fnal.gov:/uboone/data/flux , and the GENIE spline files from https://www.hepforge.org/archive/genie/data/![]() | |||||||
> > |
| |||||||
This example is straight from the manual: π+ on O16, with kinetic energy 200 MeV:
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Running GENIE at Nevis | ||||||||
Line: 8 to 8 | ||||||||
First, set up the Fermilab UPS![]() | ||||||||
Changed: | ||||||||
< < | source /a/share/amsterdam/seligman/microboone/setup_uboone.sh | |||||||
> > | source /nevis/amsterdam/share/seligman/microboone/setup_uboone.sh | |||||||
You can look over the available versions of GENIE: |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Running GENIE at Nevis | ||||||||
Line: 37 to 37 | ||||||||
# Create a work area for transient output files | ||||||||
Changed: | ||||||||
< < | mkdir -p /a/data/westside/seligman/work cd /a/data/westside/seligman/work | |||||||
> > | mkdir -p /nevis/westside/data/seligman/work cd /nevis/westside/data/seligman/work | |||||||
# Define variables to point at directories with flux and cross-section files. | ||||||||
Changed: | ||||||||
< < | export GENIE_FLUXES=/a/data/westside/uboone/flux export GENIE_XSECS=/a/data/westside/uboone/genie/genie_xsec | |||||||
> > | export GENIE_FLUXES=/nevis/westside/data/uboone/flux export GENIE_XSECS=/nevis/westside/data/uboone/genie/genie_xsec | |||||||
# Generate 10,000 numu+Ar events with energies between 0 and 10 GeV gevgen -n 10000 -p 14 -t 1000180400 -e 0,10 --run 100 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Running GENIE at Nevis | ||||||||
Changed: | ||||||||
< < | To run the GENIE Neutrino Monte Carlo![]() ![]() ![]() | |||||||
> > | To run the GENIE Neutrino Monte Carlo![]() ![]() ![]() | |||||||
Setting up GENIE |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Running GENIE at Nevis | ||||||||
Line: 46 to 46 | ||||||||
# Generate 10,000 numu+Ar events with energies between 0 and 10 GeV gevgen -n 10000 -p 14 -t 1000180400 -e 0,10 --run 100 | ||||||||
Changed: | ||||||||
< < | -f $GENIE_FLUXES/bnb/current/histograms/ub470_r200_bnb_fhc/numode_bnb_470m_r200.root,numu --seed 2989819 --cross-sections $GENIE_XSECS/v2_12_0/NULL/DefaultPlusMECWithNC/data/gxspl-FNALsmall.xml | |||||||
> > | -f $GENIE_FLUXES/bnb/current/histograms/ub470_r200_bnb_fhc/numode_bnb_470m_r200.root,numu --seed 2989819 --cross-sections $GENIE_XSECS/v2_12_0/NULL/DefaultPlusMECWithNC/data/gxspl-FNALsmall.xml | |||||||
Archeology: on 5-Apr-2017, I copied the flux files from uboonegpvm01.fnal.gov:/uboone/data/flux , and the GENIE spline files from https://www.hepforge.org/archive/genie/data/![]() |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Running GENIE at Nevis | ||||||||
Line: 25 to 25 | ||||||||
Changed: | ||||||||
< < | It appears that tthe latest version of GENIE available at FNAL is v2_12_2b. To set up the environment necessary to run the GENIE programs for that version: | |||||||
> > | It appears that the latest version of GENIE available at FNAL is v2_12_4. To set up the environment necessary to run the GENIE programs for that version: | |||||||
Changed: | ||||||||
< < | setup genie v2_12_2b -q e10:prof | |||||||
> > | setup genie v2_12_4 -q e10:prof:r6 | |||||||
Changed: | ||||||||
< < | Note that you don't include the OS version in the setup command, but you do have to include the "qualifier" to select the options that were used to compile GENIE. Typically you'll just copy the C++ compiler version ("eNN") and you'll want the "prof" version for the fastest execution. | |||||||
> > | Note that you don't include the OS version in the setup command, but you do have to include the "qualifier" to select the options that were used to compile GENIE. Just copy whatever is in the quotes and put it after the -q option. | |||||||
Running GENIE |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Running GENIE at Nevis | ||||||||
Line: 33 to 33 | ||||||||
Running GENIE | ||||||||
Changed: | ||||||||
< < | The GENIE manual is here![]() | |||||||
> > | The GENIE manual is here![]() -f option. . | |||||||
# Create a work area for transient output files mkdir -p /a/data/westside/seligman/work | ||||||||
Changed: | ||||||||
< < | cd a/data/westside/seligman/work | |||||||
> > | cd /a/data/westside/seligman/work | |||||||
# Define variables to point at directories with flux and cross-section files. export GENIE_FLUXES=/a/data/westside/uboone/flux | ||||||||
Line: 52 to 52 | ||||||||
Archeology: on 5-Apr-2017, I copied the flux files from uboonegpvm01.fnal.gov:/uboone/data/flux , and the GENIE spline files from https://www.hepforge.org/archive/genie/data/![]() | ||||||||
Changed: | ||||||||
< < | This example is straight from the manual: π+ on O, with kinetic energy 200 MeV: | |||||||
> > | This example is straight from the manual: π+ on O16, with kinetic energy 200 MeV: | |||||||
gevgen_hadron -n 10000 -p 211 -t 1000080160 -k 0.2 --seed 9839389 What's next? | ||||||||
Changed: | ||||||||
< < | As described in the GENIE manual, to turn various models on/off you need to generate new spline files. The program for doing that is gmkspl , described on page 63 of the manual. You'll want to copy the directory $GENIE/config/ to your work area, then copy and edit file EventGeneratorListAssembler.xml ; that revised file will become an input list to gmkspl . An possible example (νμ on Ar, up to 10 GeV): | |||||||
> > | As described in the GENIE manual, to turn various models on/off you need to generate new spline files. The program for doing that is gmkspl , described on page 63 of the manual. You'll want to copy the directory $GENIE/config/ to your work area, then copy and edit file EventGeneratorListAssembler.xml ; that revised file will become an input list to gmkspl . An possible example (νμ on Ar40, up to 10 GeV): | |||||||
gmkspl -p 14 -t 1000180400 -e 10 \ --event-generator-list my-edited-process-list.xml \ |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Running GENIE at Nevis | ||||||||
Line: 33 to 33 | ||||||||
Running GENIE | ||||||||
Changed: | ||||||||
< < | The GENIE manual is here![]() | |||||||
> > | The GENIE manual is here![]() | |||||||
# Create a work area for transient output files | ||||||||
Line: 52 to 52 | ||||||||
Archeology: on 5-Apr-2017, I copied the flux files from uboonegpvm01.fnal.gov:/uboone/data/flux , and the GENIE spline files from https://www.hepforge.org/archive/genie/data/![]() | ||||||||
Changed: | ||||||||
< < | This example is straight from the manual: pi+ on O, with kinetic energy 200 MeV: | |||||||
> > | This example is straight from the manual: π+ on O, with kinetic energy 200 MeV: | |||||||
gevgen_hadron -n 10000 -p 211 -t 1000080160 -k 0.2 --seed 9839389 What's next? | ||||||||
Changed: | ||||||||
< < | As described in the GENIE manual, to turn various models on/off you need to generate new spline files. The program for doing that is gmkspl , described on page 63 of the manual. You'll want to copy the directory $GENIE/config/ to your work area, then copy and edit file EventGeneratorListAssembler.xml ; that revised file will become an input list to gmkspl . An possible example (numu on Ar, up to 10 GeV): | |||||||
> > | As described in the GENIE manual, to turn various models on/off you need to generate new spline files. The program for doing that is gmkspl , described on page 63 of the manual. You'll want to copy the directory $GENIE/config/ to your work area, then copy and edit file EventGeneratorListAssembler.xml ; that revised file will become an input list to gmkspl . An possible example (νμ on Ar, up to 10 GeV): | |||||||
gmkspl -p 14 -t 1000180400 -e 10 \ --event-generator-list my-edited-process-list.xml \ |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Running GENIE at NevisTo run the GENIE Neutrino Monte Carlo![]() ![]() ![]() Setting up GENIEFirst, set up the Fermilab UPS![]() source /a/share/amsterdam/seligman/microboone/setup_uboone.shYou can look over the available versions of GENIE: ups list -aK+ genieAs of 5-Apr-2017, some of the output of that command includes: "genie" "v2_12_4" "Linux64bit+2.6-2.12" "debug:e10:r6" "" "genie" "v2_12_4" "Linux64bit+2.6-2.12" "e10:prof:r6" "" "genie" "v2_12_2b" "Linux64bit+2.6-2.12" "e10:prof" "" "genie" "v2_12_2b" "Linux64bit+2.6-2.12" "debug:e10" ""It appears that tthe latest version of GENIE available at FNAL is v2_12_2b. To set up the environment necessary to run the GENIE programs for that version: setup genie v2_12_2b -q e10:profNote that you don't include the OS version in the setup command, but you do have to include the "qualifier" to select the options that were used to compile GENIE. Typically you'll just copy the C++ compiler version ("eNN") and you'll want the "prof" version for the fastest execution. Running GENIEThe GENIE manual is here![]() # Create a work area for transient output files mkdir -p /a/data/westside/seligman/work cd a/data/westside/seligman/work # Define variables to point at directories with flux and cross-section files. export GENIE_FLUXES=/a/data/westside/uboone/flux export GENIE_XSECS=/a/data/westside/uboone/genie/genie_xsec # Generate 10,000 numu+Ar events with energies between 0 and 10 GeV gevgen -n 10000 -p 14 -t 1000180400 -e 0,10 --run 100 \ -f $GENIE_FLUXES/bnb/current/histograms/ub470_r200_bnb_fhc/numode_bnb_470m_r200.root,numu --seed 2989819 --cross-sections $GENIE_XSECS/v2_12_0/NULL/DefaultPlusMECWithNC/data/gxspl-FNALsmall.xmlArcheology: on 5-Apr-2017, I copied the flux files from uboonegpvm01.fnal.gov:/uboone/data/flux , and the GENIE spline files from https://www.hepforge.org/archive/genie/data/![]() gevgen_hadron -n 10000 -p 211 -t 1000080160 -k 0.2 --seed 9839389 What's next?As described in the GENIE manual, to turn various models on/off you need to generate new spline files. The program for doing that isgmkspl , described on page 63 of the manual. You'll want to copy the directory $GENIE/config/ to your work area, then copy and edit file EventGeneratorListAssembler.xml ; that revised file will become an input list to gmkspl . An possible example (numu on Ar, up to 10 GeV):
gmkspl -p 14 -t 1000180400 -e 10 \ --event-generator-list my-edited-process-list.xml \ --output-cross-sections my-splines.xmlNote that gmkspl typically takes several hours to run. |