|
SND@LHC Software
|
Functions | |
| get_1D_flux_name (nupdg) | |
| get_2D_flux_name (nupdg) | |
| make_splines (nupdglist, targetcode, emax, nknots, outputfile) | |
| generate_genie_events (nevents, nupdg, emin, emax, targetcode, inputflux, spline, process=None, seed=None, irun=None) | |
| make_ntuples (inputfile, outputfile) | |
| add_hists (inputflux, simfile, nupdg) | |
| genie_interface.add_hists | ( | inputflux, | |
| simfile, | |||
| nupdg | |||
| ) |
add histogram with p-pt flux to simulation file inputflux = path of neutrino inputflux simfile = path of simulation file to UPDATE nupdg = neutrino pdg
Definition at line 127 of file genie_interface.py.
| genie_interface.generate_genie_events | ( | nevents, | |
| nupdg, | |||
| emin, | |||
| emax, | |||
| targetcode, | |||
| inputflux, | |||
| spline, | |||
process = None, |
|||
seed = None, |
|||
irun = None |
|||
| ) |
make Genie simulation, parameters:
events = number of events to generate
nupdg = neutrino pdg
targetcode = string with target material in GENIE code
emin, emax = min and max neutrino energy to generate
process = simulate a specific neutrino process (CCDIS, CCQE, CC, NC, CCRES, NCRES, etc.),
if not set, GENIE's comprehensive collection of event generators will be used.
inputflux = input neutrino flux
spline = input neutrino spline
Definition at line 58 of file genie_interface.py.
| genie_interface.get_1D_flux_name | ( | nupdg | ) |
returns name of TH1D p spectrum as stored in input files: example: nue: 12 -> 1012, anue: -12 -> 2012
Definition at line 7 of file genie_interface.py.
| genie_interface.get_2D_flux_name | ( | nupdg | ) |
returns name of TH2D p-pt flux as stored in input files: ie for nue: 12 -> 1212, anue: -12 -> 2212 nupdg: neutrino pdg
Definition at line 18 of file genie_interface.py.
| genie_interface.make_ntuples | ( | inputfile, | |
| outputfile | |||
| ) |
convert gntp GENIE file to gst general ROOT file inputfile = path of gntp inputfile (gntp.0.ghep.root) outputfile = path of gst outputfile
Definition at line 115 of file genie_interface.py.
| genie_interface.make_splines | ( | nupdglist, | |
| targetcode, | |||
| emax, | |||
| nknots, | |||
| outputfile | |||
| ) |
prepare splines with neutrino interaction cross sections nupdg = list of input neutrino pdgs targetcode = string with target material in GENIE code outputfile = path of outputfile
Definition at line 30 of file genie_interface.py.