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 49 and Version 50 of HowToAddSample


Ignore:
Timestamp:
Jan 6, 2017, 4:42:40 PM (8 years ago)
Author:
Clarence Wret
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToAddSample

    v49 v50  
    5050The inheritance tree is simple and goes `Specific_Measurement -> MeasurementXD -> MeasurementBase`
    5151
    52 
     52[=#point_naming]
    5353== Naming the sample ==
    5454
     
    452452Now 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.
    453453
    454 FCN/SampleList
    455 
    456 
    457 
    458 = Possible extensions =
    459 2D is similar
     454As 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
     458Add 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
     471after the last T2K entry.
     472
     473
     474
    460475
    461476
     
    545560
    546561
     562= What about 2D distributions? =
     563
     5642D 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
     566You'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
     571We're friendly and don't bite.