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


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

--

Legend:

Unmodified
Added
Removed
Modified
  • CardFileExamples

    v9 v10  
    1919
    2020== XML Card Structures ==
     21
     22=== XML Structure ===
     23When writing XML card files you also need to wrap eveything in a '<nuisance>' root element.
     24{{{
     25<nuisance>
     26
     27  ...
     28
     29</nuisance>
     30}}}
     31
     32If you don't do this, the ROOT XML parser will fail and NUISANCE will think your card file is empty. For example **the following card file is valid**
     33{{{
     34<nuisance>
     35 
     36  <parameter type="genie_parameter" name="MaCCQE" nominal="1.0" state="FIX" />
     37  <sample name="MiniBooNE_CCQE_XSec_1DQ2_nu" input="GENIE:/path/to/neut/file.root" />
     38
     39</nuisance>
     40}}}
     41
     42but **the following card file is NOT valid** as it is missing the root element
     43{{{
     44  <parameter type="genie_parameter" name="MaCCQE" nominal="1.0" state="FIX" />
     45  <sample name="MiniBooNE_CCQE_XSec_1DQ2_nu" input="GENIE:/path/to/neut/file.root" />
     46}}}
     47
     48
     49=== Sample Structure ===
     50Data comparison samples are specified by including the 'sample structure, listing the name of the sample and the input. These structures are read by '''nuiscomp''', '''nuismin''', and '''nuissyst'''
     51{{{
     52<sample  name="NAME"   input="TYPE:/path/to/FILE"   option="[OPTION]"  norm="[NORMVALUE]" />
     53}}}
     54- **NAME** : Name string of the sample of interest specified in src/FCN/SampleList.cxx.
     55- **TYPE** : Generator Input Type string telling NUISANCE what the file type is (e.g. GENIE)
     56- **OPTION** : (Optional Argument) Specifying extra sample options that change the way the sample behaves at run time (e.g. SHAPE). If none given, this is left as DEFAULT.
     57- **NORMVALUE** : (Optional Argument) Starting sample normalisation value used to shift total MC normalisation. If none given this is left at the value 1.0.
     58
     59In the XML format, if you don't want to provide optional arguments, these can just be left out completely from the xml entry.
     60
     61Multiple sample structures can be given in the NUISANCE card file to include many data comparisons at once.
     62
     63{{{
     64#!div class="important"
     65NOTE: Reading in Generators requires that Generator to be built and have NUISANCE built against it. E.g. to read GENIE files, you need to have a working install of GENIE and NUISANCE built against that version.
     66}}}
     67
     68
     69**Example 1** : MiniBooNE CCQE comparison using a GENIE file
     70{{{
     71<sample  name="MiniBooNE_CCQE_XSec_1DQ2_nu"  input="GENIE:/path/to/my/geniefile.root" /> 
     72}}}
     73
     74**Example 2** : MiniBooNE CCQE comparison using a NuWro file
     75{{{
     76<sample  name="MiniBooNE_CCQE_XSec_1DQ2_nu"  input="NEUT:/path/to/my/nuwrofile.root" /> 
     77}}}
     78
     79**Example 3** : MiniBooNE CC1pi comparison using a NEUT file
     80{{{
     81<sample  name="MiniBooNE_CC1pi_XSec_1DTpi_nu"  input="NEUT:/path/to/my/neutfile.root" /> 
     82}}}
     83
     84**Example 4** : MiniBooNE CC1pi comparison using a GiBUU file and the SHAPE option
     85{{{
     86<sample  name="MiniBooNE_CC1pi_XSec_1DTpi_nu"  input="GiBUU:/path/to/my/gibuufile.root"  option="SHAPE" />
     87}}}
     88
     89**Example 5** : MINERvA CCQE comparison using a NEUT file and shifting the MC normalisation by 1.0 / 0.9.
     90{{{
     91<sample  name="MINERvA_CCQE_XSec_1DQ2_nu"  input="NEUT:/path/to/my/neutfile.root"  option="DEFAULT"  norm="0.9" />
     92}}}
     93
     94**Example 6** : MiniBooNE CCQE comparison using a NuWro, shifting the MC by 0.9 / 1.0 but also adding a normalisation penalty to the likelihood (option=NORM)
     95{{{
     96<sample  name="MiniBooNE_CCQE_XSec_1DQ2_nu"  input="NEUT:/path/to/my/neutfile.root"  option="NORM"  norm="0.9" />
     97}}}
     98
     99**Example 7** : Include both MiniBooNE CCQE and CC1pip data
     100{{{
     101<sample  name="MiniBooNE_CC1pi_XSec_1DTpi_nu"  input="NEUT:/path/to/my/neutfile.root" /> 
     102<sample  name="MiniBooNE_CCQE_XSec_1DQ2_nu"    input="NEUT:/path/to/my/neutfile.root" />
     103}}}
    21104
    22105== Simple Card Structures ==