Trying to display LHCb event data #274
-
Greetings,So, as discussed on the Wednesday meeting, I've been trying to display some LHCb event data that I've gathered from C++ code of the detector itself. ( of course with the help of my supervisor @sponce ) I think that the format of the file is correct ( but of course I might be wrong since nothing is being displayed ).
The ways I tried to display my file are the following:
The part of the code where I changed the file is the following: /**
* Directory Path:
* /phoenix/packages/phoenix-ng/projects/phoenix-app/src/assets/files/lhcb
* So this is the path where I added my file,
* And then on the path:
* /phoenix/packages/phoenix-ng/projects/phoenix-app/src/app/sections/lhcb
* The modified file: lhcb.component.ts
*/
// Line 60
.get("assets/files/lhcb/my_file.json") Any help with what I'm doing wrong would be appreciated, and I'll be glad to help and contribute to the phoenix project as I progress with my knowledge and all... Thank you in advance for your valuable help, All the best,Andreas |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
Hi @andrewpap22 - firstly, you cannot load this file from the GUI directly because it's not in Phoenix format. As an example of a file which is, have a look at : which is this one: We should add a LHCb loader to the GUI. #281 I'll try your second approach now. |
Beta Was this translation helpful? Give feedback.
-
Okay, this file also seems to be a completely different json format from the file provided by @bcouturi, which is what the LHCb loader understands. Here's the file Ben provided: How did you generate this JSON file? Perhaps @bcouturi can help? Otherwise, if you want to look at the ATLAS Phoenix dumper it's here: It's obviously reading in ATLAS data, but I think it shouldn't be too hard to port it to LHCb. |
Beta Was this translation helpful? Give feedback.
-
I'm very happy to have a chat over zoom or whatever, if this doesn't make sense! |
Beta Was this translation helpful? Give feedback.
-
Sorry just catching up as I was off yesterday. Andreas is redoing (cleanly) the whole chain so the idea is to abandon our custom export/import for something more standard if possible. |
Beta Was this translation helpful? Give feedback.
-
Greetings,So I managed to make the .json file proper in Phoenix format (of course with the valuable help of Dr. @sponce) and as you can see in the screenshot now we have a proper visualization for Long tracks and VPHits for the LHCb experiment as well! 😄 Now for our next steps I would like again to ask for your valuable help in trying to properly display as well the As you can see in our new created file below, ( We have inside that file our Calorimeters (ECal and HCal) and they're not like the ATLAS ones where you have eta and phi, etc... we instead have XYZ points and of course the energy deposits as you have. We could convert the XYZ points to phi I guess but that would not make sense for the LHCb Clusters. So a workaround would be I guess to write some code in the Phoenix library in the LHCb part of the project to understand and display properly our LHCb specific CaloClusters. So my question is if you could "drive" me somehow on trying to start and write that particular code (I would be grateful if you could give me some directions to try and do that inside Phoenix, because it will be a great learning journey for me and obviously far than interesting) or if there is something else we can do here and of course again I want to invest my time in doing that! 😄 Thank you very much for your time and help!!! |
Beta Was this translation helpful? Give feedback.
Greetings,
So I managed to make the .json file proper in Phoenix format (of course with the valuable help of Dr. @sponce) and as you can see in the screenshot now we have a proper visualization for Long tracks and VPHits for the LHCb experiment as well! 😄
Now for our next steps I would like again to ask for your valuable help in trying to properly display as well the
Calorimeters
andEnergy Deposits
.As you can see in our new created file below, (
remove the .txt extention when you download the file
)tracksV2.json.txt
We have inside that file our Calorimeters (ECal and HCal) and they're not like the ATLAS ones where you have eta and phi, etc... we instead have XYZ points and of course the…