Skip to content

Fix to TGeoMaterial::AddElement #8900

Merged
agheata merged 1 commit intoroot-project:masterfrom
MarkusFrankATcernch:TGeoMaterial_fix_AddElement
Aug 25, 2021
Merged

Fix to TGeoMaterial::AddElement #8900
agheata merged 1 commit intoroot-project:masterfrom
MarkusFrankATcernch:TGeoMaterial_fix_AddElement

Conversation

@MarkusFrankATcernch
Copy link
Copy Markdown
Contributor

@MarkusFrankATcernch MarkusFrankATcernch commented Aug 25, 2021

This Pull request:

Fix to TGeoMaterial::AddElement to allow to add elements/materials/mixtures with weight zero

Changes or fixes:

Allow to add elements/materials/mixtures with weight zero.
If weight is negative issue Fatal .
If weight is smaller than numeric_limits<Double_t>::epsilon(), ignore additional elements.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #8892

@phsft-bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@agheata agheata merged commit 0d15e88 into root-project:master Aug 25, 2021
pzhristov pushed a commit to alisw/root that referenced this pull request Aug 27, 2021
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.

Exception in TGeoMixture::ComputeDerivedQuantities

3 participants