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:10:41 PM (8 years ago)
- Author:
-
Clarence Wret
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v20
|
v21
|
|
65 | 65 | '''What to do:''' |
66 | 66 | |
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.''' |
| 67 | Following 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. |
68 | 68 | |
69 | 69 | |
… |
… |
|
123 | 123 | |
124 | 124 | === Specifying a signal definition === |
| 125 | |
| 126 | |
| 127 | == The final implementation == |
| 128 | `T2K_CC1pip_H2O_XSec_1Dpmu_nu.cxx`: |
125 | 129 | |
126 | 130 | {{{ |
… |
… |
|
179 | 183 | }}} |
180 | 184 | |
| 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 | |
| 193 | class T2K_CC1pip_H2O_XSec_1Dpmu_nu : public Measurement1D { |
| 194 | public: |
| 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 | |
181 | 207 | === Make NUISANCE aware of the sample === |
182 | 208 | FCN/SampleList |