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, 3:54:43 PM (8 years ago)
- Author:
-
Clarence Wret
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v16
|
v17
|
|
51 | 51 | Some automatic processing is done on loading up the samples to set up generator scaling factors, chi2 calculations and so on. These are simple string comparisons done in the base class constructors, but do '''place responsibility on the user'''. |
52 | 52 | |
53 | | The structure is '''`Experiment_Measurement_Target_DataType_DimensionVar_Neutrino`''': |
| 53 | The structure is `Experiment_Measurement_Target_DataType_DimensionVar_Neutrino`: |
54 | 54 | |
55 | 55 | * `Experiment` is the experiment (for us T2K) |
… |
… |
|
60 | 60 | * `Neutrino` is the neutrino type (for us `nu`) |
61 | 61 | |
62 | | Out of these, string comparisons are only made on `DataType` and `DimensionVar`. The others are simply there to adhere to some standard and keep samples tidy. |
| 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 | | 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 measurements. |
| 64 | ''''What to do:'''' |
| 65 | 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.''' |
65 | 66 | |
66 | | === Placing the sample === |
| 67 | |
| 68 | === Placing the sample in a directory === |
| 69 | |
| 70 | As with many packages, NUISANCE has source code in the `src` directory. We then have a directory for each experiment inside `src`, e.g. `src/T2K`, `src/MINERvA`, and so on. |
| 71 | |
| 72 | The applications using the `src` files go in the `app` directory. However, including a new sample does not involve changing anything there, so let's ignore it for the purpose of this tutorial. |
| 73 | |
| 74 | |
| 75 | ''''What to do:'''' |
| 76 | Make the new files `src/T2K/T2K_CC1pip_H2O_XSec_1Dpmu_nu.cxx` and `src/T2K/T2K_CC1pip_H2O_1Dpmu_nu.h`. |
| 77 | |
| 78 | === Placing the data === |
| 79 | |
| 80 | The data |
| 81 | |
67 | 82 | |
68 | 83 | === Setting up the inheritance === |