-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ted. And ReadFluxFile skeleton has been added
…a/solarFlux/ directory
…tAxionSolarFlux::ReadFluxFile
jgalan
changed the title
Jgalan solar flux
TRestAxionSolarFlux upgrades to support additional tables format and orginal .flux files
Apr 21, 2022
…reasing histogram bin number
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 methodSearchFile
. Few updates were introduced at the framework to achieve this rest-for-physics/framework#184Other 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 tosolarPlot.py
.In general, we can use
solarPlot.py
to generate a MonteCarlo test of any flux definition, using the command:Which will generate the following plots: