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 10 and Version 11 of CardFileExamples


Ignore:
Timestamp:
Jun 13, 2017, 1:18:36 PM (7 years ago)
Author:
Patrick Stowell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CardFileExamples

    v10 v11  
    103103}}}
    104104
     105
     106
     107=== Fixed Parameter Structure ===
     108Fixed parameters can be specified by using any of the 'parameter' type structures. You must specify the type of parameter first, before listing the name, starting value, and state. These structures are read by '''nuiscomp''', '''nuismin''', and '''nuissyst'''
     109{{{
     110<parameter type="TYPE_parameter"  name="NAME"   nominal="VALUE"  state="STATE" />
     111}}}
     112
     113- **TYPE** : Type of RW parameter, (e.g. genie_parameter, neut_parameter, norm_parameter)
     114- **NAME** : Name of RW parameter, can be any string given in the RW engine. In GENIE this list is given in $GENIE/src/ReWeight/GSyst.h.
     115
     116For normalisation parameters the name of the dial corresponds to SAMPLENAME_norm. (e.g. 'MiniBooNE_CCQELike_XSec_1DQ2_nu_norm')
     117
     118- **VALUE** : Starting value for the dial. In general for RW engine parameters this is given in terms of 1-sigma variations away from the nominal, so that VALUE=0.0 is the nominal generator value. For everything else, like normalisation parameters, this value is in units of the true value.
     119
     120- **STATE** : State of the dial. This should always be left as FIX as this is the only support option for the time being.
     121
     122
     123Multiple parameter structures can be listed in the nuisance card file to make comparisons with many model parameters changed at once.
     124
     125
     126{{{
     127#!div class="important"
     128NOTE: Running with RW parameters changed in Generators requires that specific Generator to be built and have NUISANCE built against it. E.g. to using GENIE RW, you need to have a working install of GENIE+GENIE-RW and NUISANCE built against that version.
     129}}}
     130
     131
     132**Example 1** : Fixed GENIE RW 'MaCCQE' to +1 sigma
     133{{{
     134<parameter type="genie_parameter" name="MaCCQE"  nominal="+1.0"  state="FIX" />
     135}}}
     136
     137**Example 2** : Fixed NuWro RW 'kNuwro_Ma_CCQE' to -1 sigma
     138{{{
     139<parameter type="nuwro_parameter" name="kNuwro_Ma_CCQE"  nominal="-1.0"  state="FIX"/>
     140}}}
     141
     142**Example 3** : Shift both 'MaCCQE' and 'MaCCRES' in NEUT by 1 sigma
     143{{{
     144<parameter type="neut_parameter" name="MaCCQE"  nominal="-1.0"  state="FIX" />
     145<parameter type="neut_parameter" name="MaCCRES" nominal="+1.0"  state="FIX" />
     146}}}
     147
     148**Example 4** : Change MiniBooNE sample normalisation (alternative to using sample NORMVALUE option)
     149{{{
     150<parameter type="norm_parameter" name="MiniBooNE_CCQE_XSec_1DQ2_nu_norm"  nominal="0.9"  state="FIX" />
     151<sample name="MiniBooNE_CCQE_XSec_1DQ2_nu"  input="NEUT:/path/to/neutinput.root" />
     152}}}
     153
     154
     155
     156=== Free Parameter Structure ===
     157Free parameters can be specified by using any of the 'parameter' type structures. You must specify the type of parameter first, before listing the name, starting value, lower and upper limits, step size and state. This is an extension of the fixed parameter case to include extra information needed by routines that vary parameters.
     158These structures are read by '''nuismin''', and '''nuissyst'''. It is possible to use these structures also in nuiscomp, but the dial limits and step sizes will be ignored, fixing the parameter at the chosen value instead.
     159{{{
     160<parameter type="TYPE_parameter"  name="NAME"  nominal="VALUE"  low="LOW"  high="HIGH" step="STEP" state="STATE" />
     161}}}
     162
     163
     164- **TYPE** : Type of RW parameter, (e.g. genie_parameter, neut_parameter, norm_parameter)
     165- **NAME** : Name of RW parameter, can be any string given in the RW engine. In GENIE this list is given in $GENIE/src/ReWeight/GSyst.h.
     166
     167For normalisation parameters the name of the dial corresponds to SAMPLENAME_norm. (e.g. 'MiniBooNE_CCQELike_XSec_1DQ2_nu_norm')
     168
     169- **VALUE** : Starting value for the dial. In general for RW engine parameters this is given in terms of 1-sigma variations away from the nominal, so that VALUE=0.0 is the nominal generator value. For everything else, like normalisation parameters, this value is in units of the true value.
     170
     171- **LOW**  : Lower limit of the dial in the same units as **VALUE**
     172- **HIGH** : Upper limit of the dial in the same units as **VALUE**
     173- **STEP** : Starting step size of the dial in the same units as **VALUE**. This is the stepsize passed to the minimizer, as well as the step size used in various functions that randomly scan the parameter space.
     174
     175- **STATE** : State of the dial. This can be left as FREE or FIX. If FREE this tells NUISANCE that we will allow the dial to be varied. If FIX then NUISANCE will make sure it is left at  **VALUE** for the entire time. FIX is a useful option if you decide you would like to stop a single parameter being floated but would like to keep its limit definitions in case you would like to vary it at a later point.
     176
     177
     178Multiple parameter structures can be listed in the nuisance card file to make comparisons with many model parameters changed at once.
     179
     180
     181{{{
     182#!div class="important"
     183NOTE: Running with RW parameters changed in Generators requires that specific Generator to be built and have NUISANCE built against it. E.g. to using GENIE RW, you need to have a working install of GENIE+GENIE-RW and NUISANCE built against that version.
     184}}}
     185
     186
     187**Example 1** : Free GENIE RW 'MaCCQE' to starting at 0.0 and between -1.0 and 1.0 sigma
     188{{{
     189<parameter type="genie_parameter" name="MaCCQE"  nominal="0.0"  low="-1.0"  high="1.0"  step="0.5"  state="FREE" />
     190}}}
     191
     192**Example 2** : Free NuWro RW 'kNuwro_Ma_CCQE'
     193{{{
     194<parameter type="nuwro_parameter" name="kNuwro_Ma_CCQE" nominal="0.0" low="-1.0" high="1.0" step="0.5" state="FREE" />
     195}}}
     196
     197**Example 3** : Shift both 'MaCCQE' and 'MaCCRES' in NEUT by 1 sigma. Vary MaCCQE.
     198{{{
     199<parameter type="neut_parameter" name="MaCCQE"  nominal="-1.0"  low="-3.0"  high="3.0"  step="1.0"  state="FREE" />
     200<parameter type="neut_parameter" name="MaCCRES" nominal="+1.0"  state="FIX" />
     201}}}
     202
     203**Example 4** : Shift both 'MaCCQE' and 'MaCCRES' in NEUT by 1 sigma. Vary MaCCQE.
     204{{{
     205<parameter type="neut_parameter" name="MaCCQE"  nominal="-1.0"  low="-3.0"  high="3.0"  step="1.0"  state="FREE" />
     206<parameter type="neut_parameter" name="MaCCRES" nominal="+1.0"  low="-3.0"  high="3.0"  step="1.0"  state="FIX" />
     207}}}
     208
     209**Example 5** : Shift both 'MaCCQE' and 'MaCCRES' in NEUT by 1 sigma. Vary both.
     210{{{
     211<parameter type="neut_parameter" name="MaCCQE"  nominal="-1.0"  low="-3.0"  high="3.0"  step="1.0"  state="FREE" />
     212<parameter type="neut_parameter" name="MaCCRES" nominal="+1.0"  low="-3.0"  high="3.0"  step="1.0"  state="FREE" />
     213}}}
     214
     215
     216**Example 6** : Vary MiniBooNE sample normalisation between user chosen limits (alternative to using sample NORMVALUE option)
     217{{{
     218norm_parameter MiniBooNE_CCQE_XSec_1DQ2_nu_norm  0.9  0.8  1.1  0.05 FREE
     219sample MiniBooNE_CCQE_XSec_1DQ2_nu  NEUT:/path/to/neutinput.root
     220}}}
     221
     222**Example 7** : Example 5 with a shifted order
     223{{{
     224<parameter state="FREE" type="neut_parameter" name="MaCCQE"  nominal="-1.0"  low="-3.0"  high="3.0"  step="1.0"   />
     225<parameter   nominal="+1.0"  low="-3.0" type="neut_parameter" high="3.0"  step="1.0"  state="FIX" name="MaCCRES" />
     226}}}
     227
     228
     229
    105230== Simple Card Structures ==
    106231
     
    229354- **STATE** : State of the dial. This can be left as FREE or FIX. If FREE this tells NUISANCE that we will allow the dial to be varied. If FIX then NUISANCE will make sure it is left at  **VALUE** for the entire time. FIX is a useful option if you decide you would like to stop a single parameter being floated but would like to keep its limit definitions in case you would like to vary it at a later point.
    230355
     356
     357Multiple parameter structures can be listed in the nuisance card file to make comparisons with many model parameters changed at once.
     358
     359
     360{{{
     361#!div class="important"
     362NOTE: Running with RW parameters changed in Generators requires that specific Generator to be built and have NUISANCE built against it. E.g. to using GENIE RW, you need to have a working install of GENIE+GENIE-RW and NUISANCE built against that version.
     363}}}
     364
     365
    231366**Example 1** : Free GENIE RW 'MaCCQE' to starting at 0.0 and between -1.0 and 1.0 sigma
    232367{{{