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

Adding IAXO sensitivity examples and updating sensitivity classes when necessary #521

Merged
merged 22 commits into from
Jun 11, 2024

Conversation

jgalan
Copy link
Member

@jgalan jgalan commented May 29, 2024

jgalan Large: 209 Powered by Pull Request Badge

Some fixes I had to add in order to properly calculate the axion helioscope sensitivity in the axionlib PR.

Some new features:

  • Now a TRestComponent may initialize parameterization nodes using initial/final values and a step. Linear o logarithmic scales are allowed.
  • TRestExperiment::GenerateMockDataSet might receive a boolean, when it is true, the number of counts of the mock dataset will be generated with the exact average from background, instead of performing a Poissonian MC-distribution.
  • Added fUseAverage member to TRestExperimentList and TRestExperiment so that we can enable/disable this feature.

This PR is related to PR rest-for-physics/axionlib#93

jgalan and others added 22 commits May 23, 2024 08:34
…might be generated with average number opf counts
@@ -231,6 +237,9 @@ void TRestComponentFormula::InitFromConfigFile() {

if (!fFormulas.empty()) return;

/// For some reason I need to do this manually. Dont understand why!
fFormulaUnits = GetParameter("formulaUnits");
Copy link
Member Author

@jgalan jgalan May 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nkx111 may be you know why I needed to use this? This line seemed to solve my problems with formulaUnits initialization from config file. However, it seems to be working properly (I don't need to implement that line) for all members inside TRestAxionHelioscopeSignal that also inherits from TRestComponent.

@jgalan jgalan marked this pull request as ready for review May 29, 2024 17:47
@jgalan jgalan requested a review from nkx111 as a code owner May 29, 2024 17:47
@jgalan jgalan merged commit 8b97d34 into master Jun 11, 2024
63 checks passed
@jgalan jgalan deleted the jgalan_bIAXO_example branch June 11, 2024 11:41
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.

3 participants