nuisance is hosted by Hepforge, IPPP Durham
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.

Changes between Version 3 and Version 4 of HowToNuWro


Ignore:
Timestamp:
Nov 6, 2016, 10:25:00 AM (8 years ago)
Author:
Patrick Stowell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToNuWro

    v3 v4  
    1818Once you have generated events the MC sample can be loaded in by specifying the "NUWRO" type in the NUISANCE sample input field. An example of this is shown in the following card file.
    1919
     20'''nuwro_v12_comparison.card:'''
     21{{{
     22#sample   sample_id    type:input_file
     23##########################################
    2024sample    MiniBooNE_CCQE_XSec_1DQ2_nu    NUWRO:/path/to/nuwro/events.root
     25}}}
     26
     27'''nuwro_v12_comparison.card(without comments):'''
     28{{{
     29sample    MiniBooNE_CCQE_XSec_1DQ2_nu    NUWRO:/path/to/nuwro/events.root
     30}}}
    2131
    2232
     
    2838The following cardfile is an example of how to setup this type of input for the MiniBooNE CCQE dataset.
    2939
     40'''nuwro_oldversion_comparison.card:'''
     41{{{
     42# Config   Name                Value
     43##########################
     44config input.regen_plots 1
     45
     46#sample   sample_id    type:input_file
     47##########################################
     48sample    MiniBooNE_CCQE_XSec_1DQ2_nu    NUWRO:/path/to/old/nuwro/events.root
     49}}}
     50
     51
     52'''nuwro_oldversion_comparison.card (without comments):'''
     53{{{
     54config input.regen_plots 1
     55sample    MiniBooNE_CCQE_XSec_1DQ2_nu    NUWRO:/path/to/old/nuwro/events.root
     56}}}
     57
    3058= Using !NuWro reweight for comparisons =
    3159Support for the !NuWro reweight package is built into NUISANCE. It has immediate access to any reweight dial available in the version of !NuWro you built NUISANCE against. An example of a nuiscomp cardfile that will generate predictions with alternate model predictions is shown below:
    3260
    3361
     62'''nuwro_reweighted_comparison.card:'''
     63{{{
     64# par_type      dial_name    value
     65###########################
     66nuwro_paramater  MaCCQE  +1.0
     67
     68# sample   SAMPLE_ID    TYPE:INPUT_TYPE
     69########################################
     70sample    MiniBooNE_CCQE_XSec_1DQ2_nu    NUWRO:/path/to/nuwro/events.root
     71}}}
     72
     73
     74'''nuwro_reweighted_comparison.card(without comments):'''
     75{{{
     76neut_paramater  MaCCQE  +1.0
     77sample    MiniBooNE_CCQE_XSec_1DQ2_nu    NUWRO:/path/to/nuwro/events.root
     78}}}
     79
     80A list of available dial strings
    3481
    3582= Using !NuWro reweight for dial tuning =