-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add dumpmctree tool #170
Merged
Merged
Add dumpmctree tool #170
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
tmadlener
reviewed
Jun 12, 2023
tmadlener
reviewed
Jun 12, 2023
I did some changes in parallell while you were commenting, so please check again. |
tmadlener
reviewed
Jun 12, 2023
tmadlener
reviewed
Jun 12, 2023
tmadlener
reviewed
Jun 13, 2023
tmadlener
reviewed
Jun 13, 2023
Co-authored-by: Thomas Madlener <[email protected]>
…uld be used as a starting point
…aw image only if the dot file has been created. Remove irrelevant catch/error messages
@dudarboh you want to test whether I broke something accidentally? Otherwise I would merge this. |
Looks good to me! |
tmadlener
reviewed
May 6, 2024
tmadlener
approved these changes
May 8, 2024
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.
BEGINRELEASENOTES
dumpmctree
to draw the MC table of the event stored in the slcio file as the graphviz tree diagram, which represents parent-daughter relations visually in a easier way.dumpmctree
is a small wrapper script around the actualdumpmctree-dot
executable. The latter produces a.dot
file which is then transformed into an.svg
file via the wrapper script and thedot
executable.dot
&xdg-open
to be available on your system.ENDRELEASENOTES
This tool is just an easier visual representation of parent-daughter relations of MCParticles in the MCtable which are stored in the slcio files.
The tool has very similar interface to
dumpevent
, so it is easy to use for people who are already familiar with it.By default Overlay and CreatedInSimulation particles, as well as patron shower particles are not shown to avoid cumbresome image. In case user wants to see those, one can enable them with optional switch flags
-osp
.The script produces graphviz text file in the dot format and corresponding generated image file in the svg format.
The image contains a graph connecting particles in the parent-daughter relations, showing some additional information as their distance to the IP, pt and pz.