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.
- Timestamp:
-
Jan 6, 2017, 4:42:40 PM (8 years ago)
- Author:
-
Clarence Wret
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v49
|
v50
|
|
50 | 50 | The inheritance tree is simple and goes `Specific_Measurement -> MeasurementXD -> MeasurementBase` |
51 | 51 | |
52 | | |
| 52 | [=#point_naming] |
53 | 53 | == Naming the sample == |
54 | 54 | |
… |
… |
|
452 | 452 | Now we've got all we need to include the sample in NUISANCE. The full implementation is listed at the [#point_full_imp bottom of this page] for reference. |
453 | 453 | |
454 | | FCN/SampleList |
455 | | |
456 | | |
457 | | |
458 | | = Possible extensions = |
459 | | 2D is similar |
| 454 | As mentioned earlier, NUISANCE loads samples through `src/FCN/SampleList.cxx` and specifically `bool SampleUtilss::LoadSample`. We need to add our new sample to this long `if else` statement, making sure we string compare to the name set [#point_naming previously]. |
| 455 | |
| 456 | '''What to do:''' |
| 457 | |
| 458 | Add in |
| 459 | {{{ |
| 460 | /* |
| 461 | T2K CC1pi+ H2O samples |
| 462 | */ |
| 463 | |
| 464 | } else if (!name.compare("T2K_CC1pip_H2O_XSec_1DEnuMB_nu")) { |
| 465 | fChain->push_back(new T2K_CC1pip_H2O_XSec_1DEnuMB_nu(file, rw, type, fkdt)); |
| 466 | |
| 467 | } else if (!name.compare("T2K_CC1pip_H2O_XSec_1Dpmu_nu")) { |
| 468 | fChain->push_back(new T2K_CC1pip_H2O_XSec_1Dpmu_nu(file, rw, type, fkdt)); |
| 469 | }}} |
| 470 | |
| 471 | after the last T2K entry. |
| 472 | |
| 473 | |
| 474 | |
460 | 475 | |
461 | 476 | |
… |
… |
|
545 | 560 | |
546 | 561 | |
| 562 | = What about 2D distributions? = |
| 563 | |
| 564 | 2D distributions follow a similar implementation pattern: find a suitable set of base-class functions to use in the constructor, specify the `FillEventVariables` and `isSignal`, and make additions to the signal definition (`SignalDef`) and utility (`FitUtils`) namespaces. |
| 565 | |
| 566 | You'll have to add the new sample to the CMake process just like in the 1D case, and add the sample into the `SampleList`. |
| 567 | |
| 568 | = Getting help = |
| 569 | [mailto:nuisance@projects.hepforge.org Just email us!] |
| 570 | |
| 571 | We're friendly and don't bite. |