-
Notifications
You must be signed in to change notification settings - Fork 2
Partial fix to HGCal hexagons position, and SimCluster proxy #131
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
base: main
Are you sure you want to change the base?
Conversation
(the hexagons are drawn in the correct location now, but they are missing a rotation around the hexagon center) Fixes partially alja#128
|
Thank you for the research on mispositioned boxsets! I looked at the REveBoxSet::AddHex interface and saw that it is not compatible with the old TEveBoxSet::AddHex interface. The REveBoxSet::AddHex expects the rotation angle in radians instead of degrees. I made a simple root macro that tests the orientation of the hexagon here: http://xrd-cache-1.t2.ucsd.edu/alja/mail/boxset_hex.C. Can you check if you check the digit position is correct if the rotation angle is set angle to TMath::Pi() * 0.5? Here is an example to test a single digit: Let me know if this solves the problem. |
|
I tried changing the angle parameter to pi/2, and it does not solve the problem. The radians-degrees issue might be a separate issue. See the screen capture below where I changed the angle of different collections (the most correct one is angle=0) The issue is that the rotation angle seems to induce a rotation around the z-axis instead of a rotation around the hexagon center. I've put in a drawing what seems to be the issue: Here is the link to the input file and geometry file in case you want to test. |
|
@tcuisset |
|
I'm using CMSSW_15_1_0_pre4_ROOT636 for fireworks & geometry |
|
The bug was in REveBoxSet, where rotation should be in local instead of the parent frame: Fixing the bug in root may also be an opportunity to switch to degrees instead of radians, as in TEve. What units in rotation should REveBoxset::AddHaxagon have, in your opinion? I will update the FireworksWeb service to include the ROOT correction next week. How do you set up a developer environment for FireworksWeb? |
|
Hi @alja To setup a developper environment I just install a CMSSW with a ROOT636 build. I guess to test the fix I can switch to the IB with ROOT master. Then I just clone the FireworksWeb repo, scram build and run (then SSH port forward). |

Hi,
I've made a temporary fix for the HGCal hexagon positions, fixing partially issue #128
Now the center of the hexagons are in the correct position (before it seems they were rotated around the origin). It is still missing the rotation around the center of the hexagon (though that is less critical).
I've also added a proxy for SimCluster (very similar to CaloParticle), and a small interface convenience for trackster layer display mode.