Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRestAxionSolarFlux upgrades to support additional tables format and original .flux files #23

Merged
merged 43 commits into from
May 24, 2022

Conversation

jgalan
Copy link
Member

@jgalan jgalan commented Apr 21, 2022

jgalan Large: 808

This PR provides a number of updates in TRestAxionSolarFlux to read solar flux data files in different formats and the implementation of new drawing routines.

TRestAxionSolarFlux updates have been documented at: https://sultan.unizar.es/test/classTRestAxionSolarFlux.html

The first relevant change is that the fluxes.rml definitions are now directly placed at rest-for-physics/axionlib-data repository. The file will be naturally found when using the method SearchFile. Few updates were introduced at the framework to achieve this rest-for-physics/framework#184

Other updates in TRestAxionSolarFlux are:

  • Now we accept binary format tables, with extension N200f indicating 200 columns float values.

  • TRestAxionSolarFlux::ReadFluxFile has been implemented to read directly .flux files and to separate the continuum and monochromatic components.

    • TRestAxionSolarFlux::DrawFluxFile has been implemented to load and draw directly the contents of a .flux file.
  • TRestAxionSolarFlux::GetMonochromaticSpectrum/GetContinuumSpectrum/GetTotalSpectrum has been implemented to build an integrated energy spectrum using the full solar disk.

  • TRestAxionSolarFlux::DrawSolarFlux will create a plot with the total energy spectrum, and the monochromatic lines spectrum, as it is stored in the data tables data members.

  • solarFlux.py has been renamed to solarPlot.py.

In general, we can use solarPlot.py to generate a MonteCarlo test of any flux definition, using the command:

python3 solarFlux.py --fluxname LennertHoofABC_Mono

Which will generate the following plots:

jgalan added 23 commits April 11, 2022 11:58
…ted. And ReadFluxFile skeleton has been added
@jgalan jgalan changed the title Jgalan solar flux TRestAxionSolarFlux upgrades to support additional tables format and orginal .flux files Apr 21, 2022
@jgalan jgalan marked this pull request as ready for review April 24, 2022 18:07
@jgalan jgalan requested review from lenthor and sebhoof April 24, 2022 18:07
@jgalan jgalan changed the title TRestAxionSolarFlux upgrades to support additional tables format and orginal .flux files TRestAxionSolarFlux upgrades to support additional tables format and original .flux files May 6, 2022
@jgalan jgalan merged commit 4249c2d into master May 24, 2022
@jgalan jgalan deleted the jgalan_solar_flux branch May 24, 2022 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant