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

Few string and TRestAnalysisPlot enhancements #267

Merged
merged 20 commits into from
Jul 15, 2022
Merged

Conversation

jgalan
Copy link
Member

@jgalan jgalan commented Jul 13, 2022

jgalan Medium: 114

  • TRestAnalysisPlot:

    • Panel labels now allow to define a number precision. i.e. using <panel font_size="0.4" precision="4" > will allow for 4-digits after the "." in a float number.
    • Now the histogram <histo will allow an additional parameter weight that will use a branch to weight the filling of the histogram. This effect could be achieved previously by defining manually the cutString definition. Now, however we can do: <histo name="hName" weight="efficiency" /> where efficiency is a branch existing in the tree.
  • Modified methods are TRestMetadata::GetDataMemberValues and TRestRun::ReplaceMetadataMember/s. The default precision is 0 (i.e. the method will work as it was doing before).

  • REST_StringHelper::ReplaceMathematicalExpressions will allow to include a sub-expression by delimiting the sub-expression using single quotes `.

  • REST_StringHelper::CropWithPrecision method added.

@jgalan jgalan requested review from lobis, nkx111 and cmargalejo and removed request for lobis July 13, 2022 12:28
@jgalan
Copy link
Member Author

jgalan commented Jul 14, 2022

I don't understand how commit 13150b5 and commit 93e7923 could make the pipeline fail. Any insight? @juanangp @lobis @nkx111

@juanangp
Copy link
Member

I don't understand how commit 13150b5 and commit 93e7923 could make the pipeline fail. Any insight? @juanangp @lobis @nkx111

No way, REST_StringHelper::UnitConversion is not used at all right? Issue should be somewhere else

@jgalan
Copy link
Member Author

jgalan commented Jul 14, 2022

I don't understand how commit 13150b5 and commit 93e7923 could make the pipeline fail. Any insight? @juanangp @lobis @nkx111

No way, REST_StringHelper::UnitConversion is not used at all right? Issue should be somewhere else

Right, not used yet

@jgalan jgalan changed the title Replace metadata now allows introducing a floating precision value Few string and TRestAnalysisPlot enhancements Jul 14, 2022
@jgalan jgalan added the enhancement New feature or request label Jul 14, 2022
@jgalan
Copy link
Member Author

jgalan commented Jul 14, 2022

Wow! I reverted the changes and it is passing!

@jgalan
Copy link
Member Author

jgalan commented Jul 14, 2022

Perhaps the addition of TRestSystemOfUnits.h header causes problems?

@jgalan
Copy link
Member Author

jgalan commented Jul 14, 2022

I updated the description. This PR brings new really cool changes at TRestAnalysisPlot. Ready for review!

@jgalan jgalan merged commit f506f68 into master Jul 15, 2022
@jgalan jgalan deleted the jgalan_replace_metadata branch July 15, 2022 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants