| 250 | |
| 251 | === Reweighting GENIE Comparisons === |
| 252 | The comparisons application also allows different GENIE reweight parameters to be provided in our card file. |
| 253 | |
| 254 | The format for fixed dial values is: |
| 255 | {{{ |
| 256 | genie_parameter NAME VALUE STATE |
| 257 | }}} |
| 258 | or for free dial variations |
| 259 | {{{ |
| 260 | genie_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 | |
| 270 | For further examples on how to include these structures in card files please see [wiki:CardFileExamples Card File Examples]. |
| 271 | |
| 272 | |
| 273 | In 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 | |
| 277 | First we look for the possible name in GENIE reweight: |
| 278 | |
| 279 | **$GENIE/src/ReWeight/GSyst.h** |
| 280 | {{{ |
| 281 | class GSyst { |
| 282 | public: |
| 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 | |
| 298 | We can see the dials we are interested in this list, specified by the strings: 'MaCCQE' and 'NormCCQE' respectively. |
| 299 | |
| 300 | Now 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 | {{{ |
| 303 | genie_parameter MaCCRES +1.0 FIX |
| 304 | genie_parameter NormCCRES -1.0 FIX |
| 305 | }}} |
| 306 | |
| 307 | so that it now looks like the following |
| 308 | |
| 309 | **genie_tutorial.card** |
| 310 | {{{ |
| 311 | genie_parameter MaCCRES +1.0 FIX |
| 312 | genie_parameter NormCCRES -1.0 FIX |
| 313 | |
| 314 | sample MiniBooNE_CC1pip_XSec_1DTpi_nu GENIE: gntp.2063030.ghep.root |
| 315 | sample 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 | |