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 20 and Version 21 of HowToAddSample


Ignore:
Timestamp:
Jan 5, 2017, 4:10:41 PM (8 years ago)
Author:
Clarence Wret
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToAddSample

    v20 v21  
    6565'''What to do:'''
    6666
    67 Following the above convention, we end up with '''`T2K_CC1pip_H2O_XSec_1Dpmu_nu`''' which I'm happy with: '''there is no question about what the class describes and there is no way of confusing it with other samples.'''
     67Following the above convention, we end up with '''`T2K_CC1pip_H2O_XSec_1Dpmu_nu`''' which I'm happy with: there is no ambiguity what the class describes and there is no way of confusing it with other classes in NUISANCE.
    6868
    6969
     
    123123
    124124=== Specifying a signal definition ===
     125
     126
     127== The final implementation ==
     128`T2K_CC1pip_H2O_XSec_1Dpmu_nu.cxx`:
    125129
    126130{{{
     
    179183}}}
    180184
     185`T2K_CC1pip_H2O_XSec_1Dpmu_nu.h`:
     186
     187#ifndef T2K_CC1PIP_H2O_XSEC_1DPMU_NU_H_SEEN
     188#define T2K_CC1PIP_H2O_XSEC_1DPMU_NU_H_SEEN
     189
     190#include "Measurement1D.h"
     191#include "T2K_SignalDef.h"
     192
     193class T2K_CC1pip_H2O_XSec_1Dpmu_nu : public Measurement1D {
     194public:
     195  T2K_CC1pip_H2O_XSec_1Dpmu_nu(std::string inputfile, FitWeight *rw, std::string  type, std::string fakeDataFile);
     196  virtual ~T2K_CC1pip_H2O_XSec_1Dpmu_nu() {};
     197
     198  void FillEventVariables(FitEvent *event);
     199  bool isSignal(FitEvent *event);
     200
     201  private:
     202};
     203
     204#endif
     205
     206
    181207=== Make NUISANCE aware of the sample ===
    182208FCN/SampleList