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 HowToUseNUISMIN-GENIE


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

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToUseNUISMIN-GENIE

    v2 v3  
    248248If you want to check this is valid you could run this card file with 'nuiscomp' as shown in the tutorial here [wiki:HowToUseNUISCOMP-GENIE] and check the nominal prediction looks okay.
    249249
     250
     251=== Reweighting GENIE Comparisons ===
     252The comparisons application also allows different GENIE reweight parameters to be provided in our card file.
     253
     254The format for fixed dial values is:
     255{{{
     256genie_parameter  NAME   VALUE   STATE
     257}}}
     258or for free dial variations
     259{{{
     260genie_parameter  NAME   VALUE  LOW HIGH STEP STATE
     261}}}
     262
     263- **NAME** : Specifies the name of the reweight dial. These can be found in '$GENIE/src/ReWeight/GSyst.cxx'
     264- **VALUE**: Value of the reweight dial in units of 1-sigma variations (1-sigma defined by GENIE)
     265- **LOW** : Lower limit that the dial is allowed to float to.
     266- **HIGH** : Upper limit that the dial is allowed to float to.
     267- **STEP** : Step size passed to Minuit.
     268- **STATE**: State of this parameter dial, for most cases this should be left as 'FIX'.
     269
     270For further examples on how to include these structures in card files please see [wiki:CardFileExamples Card File Examples].
     271
     272
     273In our example we shall generate another set of comparisons this time with two parameters shifted.
     274- Charged Current Quasielastic Axial Mass : Axial mass parameter used in the quasielastic form factor
     275- Charged Current Quasielastic Normalisation : Total normalisation of CCQE events.
     276
     277First we look for the possible name in GENIE reweight:
     278
     279**$GENIE/src/ReWeight/GSyst.h**
     280{{{
     281class GSyst {
     282public:
     283 //......................................................................................
     284 static string AsString(GSyst_t syst)
     285 {
     286   switch(syst) {
     287     case ( kXSecTwkDial_MaNCEL           ) : return "MaNCEL";               break;
     288     
     289     ...
     290
     291     case ( kXSecTwkDial_NormCCRES        ) : return "NormCCRES";            break;
     292     case ( kXSecTwkDial_MaCCRESshape     ) : return "MaCCRESshape";         break;
     293     case ( kXSecTwkDial_MvCCRESshape     ) : return "MvCCRESshape";         break;
     294     case ( kXSecTwkDial_MaCCRES          ) : return "MaCCRES";              break;
     295     case ( kXSecTwkDial_MvCCRES          ) : return "MvCCRES";              break;
     296}}}
     297
     298We can see the dials we are interested in this list, specified by the strings: 'MaCCQE' and 'NormCCQE' respectively.
     299
     300Now 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:
     301
     302{{{
     303genie_parameter MaCCRES       +1.0  FIX
     304genie_parameter NormCCRES   -1.0   FIX
     305}}}
     306
     307so that it now looks like the following
     308
     309**genie_tutorial.card**
     310{{{
     311genie_parameter MaCCRES       +1.0  FIX
     312genie_parameter NormCCRES   -1.0   FIX
     313
     314sample MiniBooNE_CC1pip_XSec_1DTpi_nu  GENIE: gntp.2063030.ghep.root
     315sample MiniBooNE_CC1pip_XSec_1DTu_nu GENIE: gntp.2063030.ghep.root 
     316}}}
     317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
     330
     331
     332
     333
     334
     335
     336
     337
     338
     339
     340
    250341=== Setting up our reweight dials ===
    251342
     343Now that we have our samples, the next thing we want to do is choose some dials to vary. If we look inside
     344
     345
    252346==== Defining Free dials ====
    253347