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 2 and Version 3 of HowToUseNUISCOMP-GENIE


Ignore:
Timestamp:
Jun 12, 2017, 6:04:20 PM (7 years ago)
Author:
Patrick Stowell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToUseNUISCOMP-GENIE

    v2 v3  
    240240}}}
    241241
    242 This will produce a lot of logging output , but eventually, if there are no errors, it should finish with:
    243 {{{
     242In total this will produce a lot of logging output, so only some snippets are included below for comparison.
     243{{{
     244[LOG Fitter]: Starting nuiscomp.exe
     245
     246...
     247
     248[LOG Minmzr]:- Loading Sample : MiniBooNE_CC1pip_XSec_1DTpi_nu
     249[LOG Sample]:-- Loading Sample : MiniBooNE_CC1pip_XSec_1DTpi_nu
     250[LOG Sample]:-- Creating GENIEInputHandler : MiniBooNE_CC1pip_XSec_1DTpi_nu
     251                |-> Total Entries    : 2500000
     252                |-> Event Integral   : 1.47491e-28 events/nucleon
     253                |-> Flux Integral    : 1.67753e+10 /cm2
     254                |-> Event/Flux       : 8.79217e-39 cm2/nucleon
     255
     256
     257...
     258
     259[LOG Fitter]: Generating Comparison.
     260[LOG Reconf]:--- Starting Reconfigure iter. 0
     261[LOG Reconf]:--- Event Manager Reconfigure
     262[LOG Reconf]:--- MiniBooNE_CC1pip_XSec_1DTpi_nu : Processed 0 events. [M, W] = [33, 1]
     263[LOG Reconf]:--- MiniBooNE_CC1pip_XSec_1DTpi_nu : Processed 500000 events. [M, W] = [13, 1]
     264
     265...
     266
    244267[LOG Fitter]: Saving current full FCN predictions
    245268[LOG Minmzr]:- Writing each of the data classes...
     
    249272[LOG Fitter]: Comparison Complete.
    250273[LOG Fitter]: ------------------------------------ -
    251 }}}
     274
     275}}}
     276
     277
    252278
    253279To check that the comparison definitely finished successfully, lets open the root file and check the file is not empty.
     
    262288If you see something similar to this then the comparisons should have ran successfully.
    263289
     290== Analysing the output ==
     291
     292== Providing reweight parameters ==
     293The comparisons application also allows different GENIE reweight parameters to be provided in our card file.
     294
     295The format for this is:
     296{{{
     297genie_parameter  NAME   VALUE   STATE
     298}}}
     299
     300- **NAME** : Specifies the name of the reweight dial. These can be found in '$GENIE/src/ReWeight/GSyst.cxx'
     301- **VALUE**: Value of the reweight dial in units of 1-sigma variations (1-sigma defined by GENIE)
     302- **STATE**: State of this parameter dial, for most cases this should be left as 'FIX'.
     303
     304In our example we shall generate another set of comparisons this time with two parameters shifted.
     305- Charged Current Resonant Axial Mass : Axial mass parameter used in the resonant form factor
     306- Charged Current Resonant Normalisation : Total normalisation of CCRES events.
     307
     308First we look for the possible name in GENIE reweight:
     309
     310**$GENIE/src/ReWeight/GSyst.h**
     311{{{
     312class GSyst {
     313public:
     314 //......................................................................................
     315 static string AsString(GSyst_t syst)
     316 {
     317   switch(syst) {
     318     case ( kXSecTwkDial_MaNCEL           ) : return "MaNCEL";               break;
     319     
     320     ...
     321
     322     case ( kXSecTwkDial_NormCCRES        ) : return "NormCCRES";            break;
     323     case ( kXSecTwkDial_MaCCRESshape     ) : return "MaCCRESshape";         break;
     324     case ( kXSecTwkDial_MvCCRESshape     ) : return "MvCCRESshape";         break;
     325     case ( kXSecTwkDial_MaCCRES          ) : return "MaCCRES";              break;
     326     case ( kXSecTwkDial_MvCCRES          ) : return "MvCCRES";              break;
     327}}}
     328
     329We can see the dials we are interested in this list, specified by the strings: 'MaCCRES' and 'NormCCRES' respectively.
     330
     331Now we want to change these dials to +1 for MaCCES and -1 sigma for NormCCRES. Therefore we add the following lines to our card file:
     332
     333{{{
     334genie_parameter MaCCRES       +1.0  FIX
     335genie_parameter NormCCRES   -1.0   FIX
     336}}}
     337
     338so that it now looks like the following
     339
     340**genie_tutorial.card**
     341{{{
     342genie_parameter MaCCRES       +1.0  FIX
     343genie_parameter NormCCRES   -1.0   FIX
     344
     345sample MiniBooNE_CC1pip_XSec_1DTpi_nu  GENIE: gntp.2063030.ghep.root
     346sample MiniBooNE_CC1pip_XSec_1DTu_nu GENIE: gntp.2063030.ghep.root 
     347}}}
     348
     349With this new card file we can then run our comparisons again,
     350