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 55 and Version 56 of HowToAddSample


Ignore:
Timestamp:
Jan 6, 2017, 5:05:11 PM (8 years ago)
Author:
Clarence Wret
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToAddSample

    v55 v56  
    114114== Writing the header ==
    115115
    116 In the case of our T2K CC1pi+ H,,2,,O data, we're dealing with 1D distributions. They should therefore inherit from the `Measurement1D` base class, as mentioned  [#point_base earlier]. The `Measurement1D` class is implemented in `src/FitBase/Measurement1D.cxx`.
     116In the case of our T2K CC1pi+ H,,2,,O data, we're dealing with 1D distributions. They should therefore inherit from the `Measurement1D` base class, as mentioned [#point_base earlier]. The `Measurement1D` class is implemented in `src/FitBase/Measurement1D.cxx`.
    117117
    118118NUISANCE requires a `constructor` and `destructor` for the class, and we'll need to overload `MeasurementBase` methods which define the dependent variable(s) (p,,mu,, in our case) and what our signal is (CC interaction with one muon and one positive pion with no other pions or mesons and any number of nucleons in our case). The `MeasurementBase` functions which we need to overload are `MeasurementBase::isSignal(FitEvent *event)` and `MeasurementBase::FillEventVariables(FitEvent *event)`.
     
    450450= Make NUISANCE aware of the sample =
    451451
    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.
     452Now we've got all we need to include the sample in NUISANCE. The full implementation is listed at the [#point_fullimp bottom of this page] for reference.
    453453
    454454As 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].
     
    479479}}
    480480
    481 [=#point_full_imp]
     481
     482[=#point_fullimp]
    482483= The final implementation =
    483484