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

Protect Geant4 Primary creation against negative masses. #1259

Merged
merged 5 commits into from
May 7, 2024

Conversation

MarkusFrankATcernch
Copy link
Contributor

@MarkusFrankATcernch MarkusFrankATcernch commented May 6, 2024

BEGINRELEASENOTES

  • Protect Geant4 Primary creation against negative masses.
  • See issue Protect against wrong primary particle mass #1233 for a detailed discussion of the problem.
  • Allow shapes to be defined recursively using shape creation plugin.
  • Show how to properly use CAD shapes with a non-zero origin (Issue : Using rotation in DDCAD to rotate around z axis #1200)
    examples/DDCAD/compact/DD4hep_Issue_1134_resolved.xml
    Once the CAD shape (aka volume) is placed correctly into the origin of a mother mother, the mother can then be placed
    rotated and shifted according to the the boxed mother's origin like any other volume.
    ENDRELEASENOTES

Copy link

github-actions bot commented May 6, 2024

Test Results

   14 files     14 suites   6h 31m 38s ⏱️
  363 tests   363 ✅ 0 💤 0 ❌
2 496 runs  2 496 ✅ 0 💤 0 ❌

Results for commit 86b8743.

♻️ This comment has been updated with latest results.

@MarkusFrankATcernch
Copy link
Contributor Author

@atolosadelgado Hi Alvaro,
please cross check this MR before I merge. The check is according to the example you pointed out in Geant4.
Thanks!

@@ -746,14 +746,24 @@ namespace dd4hep {
std::string refStr() const;
/// Access "module" attribute as STL string
std::string moduleStr() const;
/// Access "module" attribute as STL string
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// Access "module" attribute as STL string
/// Access "module" attribute as STL string, if not present return default_value

/// Access "readout" attribute as STL string
std::string readoutStr() const;
/// Access "readout" attribute as STL string
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// Access "readout" attribute as STL string
/// Access "readout" attribute as STL string, if not present return default_value

/// Access vis attribute as STL string. If not present empty return empty string
std::string visStr() const;
/// Access vis attribute as STL string. If not present empty return empty string
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// Access vis attribute as STL string. If not present empty return empty string
/// Access vis attribute as STL string, if not present return default_value

/// Access region attribute as STL string. If not present empty return empty string
std::string regionStr() const;
/// Access region attribute as STL string. If not present empty return empty string
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// Access region attribute as STL string. If not present empty return empty string
/// Access region attribute as STL string, if not present return default_value string

/// Access limits attribute as STL string. If not present empty return empty string
std::string limitsStr() const;
/// Access limits attribute as STL string. If not present empty return empty string
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// Access limits attribute as STL string. If not present empty return empty string
/// Access limits attribute as STL string, if not present return default_value

@MarkusFrankATcernch MarkusFrankATcernch merged commit f313522 into AIDASoft:master May 7, 2024
14 checks passed
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.

2 participants