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

Specific documentation on ROOT for traccc #535

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

SylvainJoube
Copy link
Contributor

Added a small ROOT documentation for traccc, as discussed on the Friday Feb 23, 2024 Acts Parallelization Meeting.

Copy link
Contributor

@beomki-yeo beomki-yeo left a comment

Choose a reason for hiding this comment

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

Can we focus on the interpretation rather than providing exhaustive tutorials on how to use ROOT?

It will be very useful to explain how the tracking efficiency and duplicate rate are calculated. Of course you are providing simple definitions but I believe there are more rooms to be clarified. For example, you can explain how to decide whether a certain pattern is matched with a truth particle. (e.g. 100 % match in the pattern? or 50 % ?)

You can also add exaplanations on track fitting result (e.g. How the pull values are calculated)

@@ -0,0 +1,167 @@
# Specific documentation on how to build and use ROOT for traccc

Last update: April 10, 2024.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can skip this


<br>

## ROOT installation / compilation
Copy link
Contributor

Choose a reason for hiding this comment

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

We can just forward people to the official link: https://root.cern/install/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the documentation, I understand that adding our own documentation on how to install ROOT is one more component to maintain, and should be left to the ROOT maintainers.


<br>

## traccc compilation
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be skipped as well because it is already described in the main README

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, I replaced those lines by saying 1) to compile preferably ROOT and traccc with the same compiler to avoid linking errors and 2) not to forget to source the ROOT script before the execution of traccc.

@SylvainJoube
Copy link
Contributor Author

Thanks for your feedback Beom Ki. I will try to explain how the tracking efficiency and duplicate rate are calculated and how the track fitting ROOT output is designed.

@stephenswat
Copy link
Member

Very minor, but some of your file names say duplucation which should be duplication.

@SylvainJoube SylvainJoube force-pushed the ROOT-performance-documentation branch from d5dd921 to 2b7f0aa Compare April 11, 2024 13:47
@SylvainJoube
Copy link
Contributor Author

Thanks Stephen! I missed that one! 😹

@SylvainJoube
Copy link
Contributor Author

A few bottles of milk later... I'm stuck, i don't know how to download / generate the "-hits.csv" files.

The bin/traccc_seq_example works fine on my machine, as long as I don't append the --check-performance flag to the command line. Adding the flag randomly creates either :

WARNING: No material in detector
WARNING: No entries in volume finder
Detector check: OK
terminate called after throwing an instance of 'std::runtime_error'
  what():  Could not open file '.../traccc/data/odd/muon100GeV-geant4/event000000000-hits.csv'
Aborted (core dumped)

or a *** Break *** segmentation violation

I think the event00000000X-hits.csv files are missing from the archive. I also tried with traccc-data-v6.tar.gz and v4 but without success.

@krasznaa
Copy link
Member

Unfortunately this is something that we discovered as well. 🤔 The current ODD files we have in in our TGZ files do not have all the necessary information for making physics performance plots. 😦

I now became a little unsure, but I believe we discussed this with @asalzburger last Monday. That he (or possibly @beomki-yeo?) would make us some new simulated files soon. Since we'll very much need those for the measurements that I'll want to have in 2 weeks from now. 😉

@beomki-yeo
Copy link
Contributor

I thought it was supposed to be Andi. I am not familiar with the ACTS core simulation

@beomki-yeo
Copy link
Contributor

beomki-yeo commented Apr 21, 2024

As a note, -hits.csv is not necessary for seq_example (we need all other additional files though) -- somehow the check-performance is designed to require -hit.csv but this will need to be fixed. Let's hope Andi hands us over the hits.csv as well so we don't have to deal with this right now :p

@SylvainJoube
Copy link
Contributor Author

Thanks a lot for your replies Attila and Beom Ki!

I will use the seeding_example to finalize this documentation then, with the data generated by the toy_detector. If I'm not mistaken, don't think I can use the seq_example with the toy_detector data, since it generates measurements.csv, measurement-simhit-map.csv, particles.csv, hits.csv, but we also need cells.csv for the seq_example full chain.

@SylvainJoube SylvainJoube force-pushed the ROOT-performance-documentation branch 2 times, most recently from 51219da to 45a2817 Compare May 5, 2024 10:52
@stephenswat stephenswat added the documentation Improvements or additions to documentation label May 5, 2024
@SylvainJoube
Copy link
Contributor Author

SylvainJoube commented May 5, 2024

Sorry for the wait, I’m mostly contributing to traccc in my free time these days, I have a lot to do on other fronts! 🫠 I have finally added documentation for the duplication and efficiency plots for the finding and ambiguity resolution algorithms. I will ask Corentin for help for the fitting algorithm plot documentation, but maybe, if you judge it appropriate, we could merge this PR and open a new one for the rest of the documentation?

@SylvainJoube SylvainJoube force-pushed the ROOT-performance-documentation branch from bf332f7 to e53fd77 Compare June 16, 2024 14:46
@SylvainJoube
Copy link
Contributor Author

Sadly, I don't think I'll have time to add a substantial documentation for the fitting algorithm in a few weeks, is there anything you would like me to change in this PR @beomki-yeo ?

I think this whole PR may became irrelevant in a few weeks due to Attila's work on the new data format for ROOT plots, so depending on you thoughts, we may merge or close this PR.

@beomki-yeo
Copy link
Contributor

beomki-yeo commented Jun 19, 2024

Can we change the directory name or document title? The contents seem to be about how to generate and interpret the performance plot, instead of how to build and use root which should not be introduced in traccc

Maybe "root -> tracking_performance" and "Specific documentation on how to build and use ROOT for traccc -> "Specific documentation on how to generate and interpret tracking performance plot"

In main README.md, there is also a very brief explanation on performance plot. I would add a link which forwards to this doc

@beomki-yeo
Copy link
Contributor

And the size of images is way too big -- I suggest to shrink them

@stephenswat
Copy link
Member

And the size of images is way too big -- I suggest to shrink them

Hi @beomki-yeo, could you please clarify if you mean the file size is too big, or if the resolution of the images are too high?

@beomki-yeo
Copy link
Contributor

I meant the spatial size :D

root [0] new TBrowser
```

The native `TBwoser` should look like this. You can open `.root` files and display the graphics they contain.
Copy link
Member

Choose a reason for hiding this comment

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

This should say TBrowser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants