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


Ignore:
Timestamp:
Jan 5, 2017, 4:06:00 PM (7 years ago)
Author:
Clarence Wret
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToAddSample

    v19 v20  
    6262Out of these, string comparisons are only made on `DataType` and `DimensionVar`. The other identifiers exist to adhere to some standard and keep sample naming tidy and consistent.
    6363
     64
    6465'''What to do:'''
    6566
     
    8081Make the new files `src/T2K/T2K_CC1pip_H2O_XSec_1Dpmu_nu.cxx` and `src/T2K/T2K_CC1pip_H2O_1Dpmu_nu.h`. These are the implementation and header files for the new measurement.
    8182
    82 === Placing the data ===
     83=== Placing the data in a directory ===
    8384
    8485The data for the measurement goes into the `data` directory.
     
    8889Furthermore, we specify another directory for the measurement topology to avoid confusion, e.g. `data/T2K/CC1pip` for our sample.
    8990
    90 In some cases we might have the same topology defining the cross-section but for different targets. In this case we add another sub-directory for the target.
     91In some cases we might have the same topology defining the cross-section but for different targets. In this case we add another sub-directory for the target, e.g. `data/T2K/CC1pip/H2O`.
     92
    9193
    9294'''What to do:'''
     95
    9396Put the ROOT file from the [http://t2k-experiment.org/results/nd280data-numu-cc1pi-xs-on-h2o-2015/ data release] into the `data/T2K/CC1pip/H2O` directory.
    9497
     
    9699=== Setting up the inheritance ===
    97100
     101Now that we have the rough structure set-up, we can finally start writing some code! :)
     102
    98103In the case of our T2K CC1pi+ H,,2,,O data, we're dealing with 1D distributions. They should therefore inherit from the `Measurement1D` class.
     104
     105Starting at the header we do
    99106
    100107{{{
     
    103110
    104111#include "Measurement1D.h"
     112
     113class T2K_CC1pip_H2O_XSec_1Dpmu_nu : public Measurement1D
     114#endif
    105115}}}
    106116
    107 #include "T2K_SignalDef.h"
    108 
    109 class T2K_CC1pip_H2O_XSec_1Dpmu_nu : public Measurement1D {
    110 public:
    111   T2K_CC1pip_H2O_XSec_1Dpmu_nu(std::string inputfile, FitWeight *rw, std::string  type, std::string fakeDataFile);
    112   virtual ~T2K_CC1pip_H2O_XSec_1Dpmu_nu() {};
    113  
    114   void FillEventVariables(FitEvent *event);
    115   bool isSignal(FitEvent *event);
    116  
    117   private:
    118 };
    119  
    120 #endif
    121 }}}
    122 
     117to set up the inheritance. The `Measurement1D` class is implemented in `src/FitBase/Measurement1D.cxx`.
    123118
    124119