oliskir created page: command list authored by Oliver Kirsebom's avatar Oliver Kirsebom
......@@ -11,18 +11,22 @@ make -j N
1. If you just want to add experimental resolution to a set of simulated data:
```
./VKAdd -o output.root -r 0.06 input1.root
./VKAdd -o output.root -r input1.root
```
2. If you want add two sets of simulated data (summing), while also adding experimental resolution:
```
./VKAdd -o output.root -r 0.06 input1.root input2.root
./VKAdd -o output.root -r input1.root input2.root
```
3. If you want add a set of simulated data to itself (pile-up), while also adding experimental resolution:
```
./VKAdd -o output.root -r 0.06 -p input1.root
./VKAdd -o output.root -r -p input1.root
```
In the above examples the experimental resolution was set to sigma=6%. You can, of course, chose any value you want.
The experimental resolution is sampled according to a Gaussian distribution with,
```math
FWHM = \sqrt(p_0^2 + p_1^2 E)
```
where $`p_0 = 30.44`$ keV and $`p_1 = 4.159`$ keV$`^{-1/2}`$
\ No newline at end of file