-
Notifications
You must be signed in to change notification settings - Fork 8
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
Enhancements and modifications in the display app #44
Conversation
@mchiusi Thank you for the PR. Nice to see that the event displays we've been using for quite some time already will be part of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second review
Regarding you PR text, please fix the following:
- Please include a reply to my previous comments in this thread for future clarity
- At least some of my comments seem not to be implemented in the web app that you link; can you please update the version shared via
*.app.cern.ch
(and the plots in the PR description)? - The scintillator tiles were actually added in Scintillator geometry #26, and the geometry was already complete; what you did was to include them in the 3D visualization, which is very different from a technical point of view
- "the new coarse seeding algorithm has been implemented in the app": In reality no algorithm is implemented in the app; the app takes advantage of the existing algorithms, which are completely independent from the app. Could you please rephrase?
- "the graphic has been updated": what exactly? Same for "minor issues have been fixed", if you do not list what you did is simpler just to remove them. All your modifications can anyways always be seen in the commit diffs.
- "added the possibility to chose between bokeh and plotly" The mechanism to support more libraries was already present. You could say that you added support for plotly.
- In the first bullet point of "data handling.py", it is not clear to me from the text what you added and what was already available
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Third review
These are almost all very minor comments, and we can merge it as soon as you address them. Could you just provide an answer to previous review comments?
I have done it uploading the second set of comments. At the moment commits are organised in macro-arguments.
Thanks for the suggestion, now the slider has been set so that continuous values are excluded (
In the display code I remove every "ROI" label. Should I also change the name to
Now when pion events are displayed the CS switch is removed.
I was calculating the ROI in the display code. Now I moved everything in
If the
Now it should be clearer. |
Yes, now it has been implemented. The code has been slightly modified so that the input files are all stored in my
I think it is clear from the PR what I did.
Answer in the previous set of comments. Now the code has been moved to
Removed.
Thanks.
Previously, there was no capability to save events after processing. I have now added this feature along with the mechanism for handling post-processed data. The existing code for searching events in the parquet file has been retained. Please let me know if I have to update the PR, it seems clear to me. |
Thanks for the answers above.
I suppose you mean changing it to All the rest is good 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks like this is going to bring some great new functionality, thanks for the work! Mostly just a couple of minor comments, though I think we should discuss the minor differences between run_radii_chain and run_cluster-size because they are essentially duplicate files with minor differences. We can likely find a way to extend the functionality of the latter to include the changes included in the former.
I've just realised that I could change the name
|
I've changed the names of some files and all the variables related to the ROI. Now the two chains are called:
I have tested both my display app and the
|
All your comments are now included in the latest commit. |
Major changes in the webApp (deployed here):
display code:
geometry.py
:_display_sci_cartesian
to calculate, as it is currently done for silicon, the position of the scintillator tiles in cartesian coordinates. This allows to use the same function in the display code to plot both silicon cells and tiles.cluster.py
:data handling:
data_process.py
, added a new method to save events after processing. Currently, to speed up the event processing through the reconstruction chain, each event from.parquet
file is pre-processed and saved in a.hdf
file. When a random event is requested from the display app the.hdf
file is read. The display process lasts less than 1 second. If a particular event requested by the user is not yet pre-processed, the code finds the event in the parquet file and processes it live. The entire process lasts ~3 seconds..hdf
file using their event number as primary key and the clustering radius as secondary key, i.e. the HDF keys are in the form of <event_number> / <cluster_radius> .production:
genparticle_pt
branch in the skimming file (produce.py
).The
README.md
has been updated especially in the section 3D display appThe new look of the web application. A 0 pile-up pion is shown. Scintillator tiles are clearly visible.
![image](https://private-user-images.githubusercontent.com/67897021/246840540-860dfe5f-3b3d-4a21-b753-1efdf00b3885.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIwMjU0MDQsIm5iZiI6MTcyMjAyNTEwNCwicGF0aCI6Ii82Nzg5NzAyMS8yNDY4NDA1NDAtODYwZGZlNWYtM2IzZC00YTIxLWI3NTMtMWVmZGYwMGIzODg1LnBuZz9YLUFtei1BbGdvcml0aG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TU5MDRkODYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3Acr7t6yh4ocIxxGLf1tgUGhLMnQHbpwPk2udBfHUsQ)
![image](https://private-user-images.githubusercontent.com/67897021/246845399-4119e45b-8a9b-46cc-92b5-a7609f411d6d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIwMjU0MDQsIm5iZiI6MTcyMjAyNTEwNCwicGF0aCI6Ii82Nzg5NzAyMS8yNDY4NDUzOTktNDExOWU0NWItOGE5Yi00NmNjLTkyYjUtYTc2MDlmNDExZDZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI2VDIwMTgyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM4NzJiYjFlMGQ2OWM1NzQ5N2M3MDExYTI4NTkzMGJhYTFhNjg1YTY3NzVlNmFiNzc4NWM0MTBmYzg1OWI5ZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.SCFhuPt-uTmprmq8_5I16LMTiBzEsJLzDQs7cMqn7a0)
![image](https://private-user-images.githubusercontent.com/67897021/246845501-b449b2e1-894f-468e-8f4f-10c1880a2866.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIwMjU0MDQsIm5iZiI6MTcyMjAyNTEwNCwicGF0aCI6Ii82Nzg5NzAyMS8yNDY4NDU1MDEtYjQ0OWIyZTEtODk0Zi00NjhlLThmNGYtMTBjMTg4MGEyODY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI2VDIwMTgyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJjMTE0MTM4NDllYThlNGU4MzlmYmI0OTczYzMzMDMyN2M2YWI1OWQyYzU2MzQ3ZmRiYzlhMTRhYzA2NzUzMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dkerZt_TZPNZJye8-0WJ06_E5XiapwvCNsn3_NWIMcs)
200 pile-up photon: a large cut (in cartesian coordinates) around the generated particle has been applied. Multiple seeds in different colours shown.
The same 200 pile-up photon analysed with different clustering radii.