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 84 and Version 85 of HowToAddSample


Ignore:
Timestamp:
Jan 9, 2017, 4:08:54 PM (7 years ago)
Author:
Clarence Wret
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToAddSample

    v84 v85  
    271271It's possible that these will be automated in the future, so please look at [https://nuisance.hepforge.org/trac/browser/src?order=date&desc=1 recently implemented samples] for up-to-date references.
    272272
    273 {{{
    274 #!div class=important
     273
     274{{{
     275#!div class="important"
     276'''What to do:'''
     277The data and covariance matrix are available in a ROOT file for the sample, so I used `Measurement1D::SetDataFromFile` to set up the data and `Measurement1D::SetCovarFromDataFile` to set up the covariances.
     278
     279----
    275280This is where we are sensitive to the the input data format. If using a .csv or .txt file instead, `Measurement1D::SetDataValues` might be a better option.
    276281
    277282Please look through the `Measurement1D::SetData*` functions and decide on which works best for you, or extend the current implementations to match your requirements and/or [mailto:nuisance@projects.hepforge.org contact us]'''
    278 }}}
    279 
    280 {{{
    281 #!div class="important"
    282 '''What to do:'''
    283 The data and covariance matrix are available in a ROOT file for the sample, so I used `Measurement1D::SetDataFromFile` to set up the data and `Measurement1D::SetCovarFromDataFile` to set up the covariances.
     283----
    284284
    285285`fName` and the other `std::string`s were set to reasonable names and `fScaleFactor` was set to the default mentioned above.