Example scripts for MC production with genie-reader¶
Two example scripts are provided, as well as example cluster submissin scripts: one is mimicking the step 1 of oscNext production and the other one is a generic generation script. For both of these scripts their operation consists of the two main parts:
GENIE is ran through subprocess. First, events are generated with
gevgen
. Then output GHEP root-files are converted into both GST and gRooTracker formats usinggntpc
. After this, if non-empty list of systematics was passed, systematic weight files are generated withgrwght1p
.Resulting output files are passed to genie-reader, which samples event geometry and converts them to I3Files.
Caution
Unlike genie-icetray, gevgen
and, consequently, the two described production
scripts can not simulate a mix of neutrinos and antineutrinos.
This means that, for example, in order to get NuMu and NuMuBar mix one
would need to run the choosen script separately for NuMu and NuMuBar.
Step1 oscNext-style GENIE production¶
Location: reosurces/scripts/step1_genie.py
.
This script is based on the script for the step 1 of oscNext neutrino production: http://code.icecube.wisc.edu/svn/sandbox/hignight/oscnext_scripts/step_1_genie.py. The main feature is that it uses predefined energy ranges with corresponding cylinder length and radius, as well as spectral indeces, which were optimized for oscNext. Also, if generated neutrino type is NuMu or NuMuBar, outgoing muon will be propagated with PROPOSAL.
Random seed¶
Random number generator seed in this script is calculated based on input parameters:
seed = int( str(run_id) + str(file_number) )
The same seed is used for both GENIE and IceTray random generators.
Arguments¶
The summary of the step1_genie.py
arguments is provided here. The same information can also
be accessed by running
$ python step1_genie.py --help
Main:¶
'genie.i3'
)1
)1
)10000
)'NuE'
)'P'
)100.0
)9999.9
)800.0
)16000.0
)0*I3Units.degree
)180*I3Units.degree
)0*I3Units.degree
)360*I3Units.degree
)2
)0.8881016
)'/cvmfs/icecube.opensciencegrid.org/users/mliubarska/py2-v3.1.1/GENIE/xsec_splines/GENIE_2_12_8_Water_splines.xml'
)False
)Select specific GENIE tune or event generato list (optional):¶
''
)''
)GENIE Reweight configuration:¶
['MaCCRES','MaNCRES','MaCCQE','MaNCEL','MaCOHpi','AhtBY','BhtBY','CV1uBY','CV2uBY']
)4
)-2
)2
)It is possible to not delete intermediate GENIE files after conversion:¶
False
)Subprocess environment setup (will only affect GENIE):¶
'/cvmfs/icecube.opensciencegrid.org/users/mliubarska/py2-v3.1.1/GENIE/R-2_12_8'
)''
)'/cvmfs/icecube.opensciencegrid.org/users/mliubarska/py2-v3.1.1/ROOT/build-6.09.02'
)'/cvmfs/icecube.opensciencegrid.org/py2-v3.1.1/RHEL_7_x86_64/lib'
)'/cvmfs/icecube.opensciencegrid.org/py2-v3.1.1/RHEL_7_x86_64/lib'
)''
)Generic GENIE production¶
Location: reosurces/scripts/genie-generator.py
.
This script is similar to step1_genie.py
, the main differences being that energy
and cylinder parameters need to be specified directly (predifined energy ranges aren’t
available). The same applies to the seed - it is not composed from other input parameters
and should be specified directly.
With this outgoing muon (or any other particle) is not propagated in the ice.
Random seed¶
If random number generator seed is provided through the corresponding argument,
the provided number will be used. Is seed is not specified, file number (filenr
) will be used instead.
Arguments¶
The summary of the genie-generator.py
arguments is provided here. The same information can also
be accessed by running
$ python genie-generator.py --help
Main:¶
'genie.i3'
)1
)1
)10000
)'NuE'
)1950.*I3Units.m
)1200.*I3Units.m
)0*I3Units.degree
)180*I3Units.degree
)0*I3Units.degree
)360*I3Units.degree
)1
)1
)2
)0.8881016
)'/cvmfs/icecube.opensciencegrid.org/users/mliubarska/py2-v3.1.1/GENIE/xsec_splines/GENIE_2_12_8_Water_splines.xml'
)None
)filenr
will be used as a seed.GENIE Reweight configuration:¶
['MaCCRES','MaNCRES','MaCCQE','MaNCEL','MaCOHpi','AhtBY','BhtBY','CV1uBY','CV2uBY']
)4
)-2
)2
)It is possible to not delete intermediate GENIE files after conversion:¶
False
)Subprocess environment setup (will only affect GENIE):¶
'/cvmfs/icecube.opensciencegrid.org/users/mliubarska/py2-v3.1.1/GENIE/R-2_12_8'
)''
)'/cvmfs/icecube.opensciencegrid.org/users/mliubarska/py2-v3.1.1/ROOT/build-6.09.02'
)'/cvmfs/icecube.opensciencegrid.org/py2-v3.1.1/RHEL_7_x86_64/lib'
)'/cvmfs/icecube.opensciencegrid.org/py2-v3.1.1/RHEL_7_x86_64/lib'
)''
)