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.
- Timestamp:
-
Jan 5, 2017, 4:06:00 PM (8 years ago)
- Author:
-
Clarence Wret
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v19
|
v20
|
|
62 | 62 | Out 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. |
63 | 63 | |
| 64 | |
64 | 65 | '''What to do:''' |
65 | 66 | |
… |
… |
|
80 | 81 | Make 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. |
81 | 82 | |
82 | | === Placing the data === |
| 83 | === Placing the data in a directory === |
83 | 84 | |
84 | 85 | The data for the measurement goes into the `data` directory. |
… |
… |
|
88 | 89 | Furthermore, we specify another directory for the measurement topology to avoid confusion, e.g. `data/T2K/CC1pip` for our sample. |
89 | 90 | |
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. |
| 91 | 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, e.g. `data/T2K/CC1pip/H2O`. |
| 92 | |
91 | 93 | |
92 | 94 | '''What to do:''' |
| 95 | |
93 | 96 | Put 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. |
94 | 97 | |
… |
… |
|
96 | 99 | === Setting up the inheritance === |
97 | 100 | |
| 101 | Now that we have the rough structure set-up, we can finally start writing some code! :) |
| 102 | |
98 | 103 | In 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 | |
| 105 | Starting at the header we do |
99 | 106 | |
100 | 107 | {{{ |
… |
… |
|
103 | 110 | |
104 | 111 | #include "Measurement1D.h" |
| 112 | |
| 113 | class T2K_CC1pip_H2O_XSec_1Dpmu_nu : public Measurement1D |
| 114 | #endif |
105 | 115 | }}} |
106 | 116 | |
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 | | |
| 117 | to set up the inheritance. The `Measurement1D` class is implemented in `src/FitBase/Measurement1D.cxx`. |
123 | 118 | |
124 | 119 | |