**Norberto Schmidt**
(278f93cf)
*
at
01 Feb 13:36
*

Added an example for testing if KDSource is working properly

*
... and
16 more commits
*

**Norberto Schmidt**
(ea69e343)
*
at
16 Jun 09:48
*

Changed the name of the t-point tally file

**Norberto Schmidt**
(20895b94)
*
at
16 Jun 09:47
*

**Norberto Schmidt**
(44a3f678)
*
at
03 Apr 08:53
*

Changed the sorted distance and the efficiency calculations for all...

After some discussions with @jingli and @schwab, we realized that the peak of the wavelength distribution `\phi(\lambda)`

was not at the same position as the energy distribution `\phi(E)`

. This was because, after the change of variables, the corresponding jacobian was missing. This was properly implemented for the angular distribution.

Consider that `|\phi(E) dE| = |\phi(\lambda) d\lambda|`

, and `\lambda [\textup{~\AA}] = \sqrt{81.82/E [\mathrm{meV}]}`

, it is possible to see that `dE = |81.82 \cdot (-2) \cdot \lambda^{-3}| d\lambda`

.

So, for each bin between `\lambda_{\mathrm{min}}`

and `\lambda_{\mathrm{max}}`

, it would be necessary to divide by the integral of the jacobian, i.e. `|81.82\cdot(\lambda^{-2}_{\mathrm{min}}-\lambda^{-2}_{\mathrm{max}})|`

.

For doing this, a new `WavelengthAxis`

class was implemented to plot the distributions with the proper normalization (same idea as `AngleAxis`

). Also, the `tracks-vs-tallies.inp`

example was changed to see the new shape of the wavelength distributions (see attached).

And, with these implementations, now the peak of both distributions is at the same position

As we discussed, no jacobian was missing, so the wavelength distribution `\phi(\lambda) d\lambda`

was calculated correctly before this merge request.

These new implementations taking care of the jacobian could be useful to plot `\lambda`

vs `\phi(E)`

, so the correlations between both peaks (in energy and wavelength) will be shown.

Maybe we could add a new plot variable (i.e. `lE`

) to show this kind of correlations, but would be not recommended to use it by default considering that is not a distribution per se.

After some discussions with @jingli and @schwab, we realized that the peak of the wavelength distribution `\phi(\lambda)`

was not at the same position as the energy distribution `\phi(E)`

. This was because, after the change of variables, the corresponding jacobian was missing. This was properly implemented for the angular distribution.

Consider that `|\phi(E) dE| = |\phi(\lambda) d\lambda|`

, and `\lambda [\textup{~\AA}] = \sqrt{81.82/E [\mathrm{meV}]}`

, it is possible to see that `dE = |81.82 \cdot (-2) \cdot \lambda^{-3}| d\lambda`

.

So, for each bin between `\lambda_{\mathrm{min}}`

and `\lambda_{\mathrm{max}}`

, it would be necessary to divide by the integral of the jacobian, i.e. `|81.82\cdot(\lambda^{-2}_{\mathrm{min}}-\lambda^{-2}_{\mathrm{max}})|`

.

For doing this, a new `WavelengthAxis`

class was implemented to plot the distributions with the proper normalization (same idea as `AngleAxis`

). Also, the `tracks-vs-tallies.inp`

example was changed to see the new shape of the wavelength distributions (see attached).

And, with these implementations, now the peak of both distributions is at the same position

**Norberto Schmidt**
(c1ce34db)
*
at
15 Nov 19:11
*

Created a column with the wavelength

*
... and
6 more commits
*

Added the export parameter into the plot function. See the pull request !29 (merged)

- Convolution implemented for the tracks files.
- Changed the way to set the bins for the tracks files.
- Added the export data parameter for the plot function.
- Optimized the MCPL format read-in function.
- Corrected some typos

**Norberto Schmidt**
(04c0d3b3)
*
at
08 Jul 08:41
*

Updated the units with the last master version

**Norberto Schmidt**
(b4c653ad)
*
at
08 Jul 08:34
*

Merge remote-tracking branch 'upstream/master' into mcpl

*
... and
3 more commits
*

**Norberto Schmidt**
(3886d5e7)
*
at
08 Jul 08:14
*

Updated the plots parameters help description

*
... and
4 more commits
*